My own personal LUAU utility module I use in almost all of my games, It's very bare bones atm and I plan to add on to it overtime.
This module uses some open source modules on roblox from other creators of the community which will NOT have their code included on this github page, they will be in the module on the roblox site
You can get the Module here
local ConikkUtills = require(game:GetService("ReplicatedStorage").ConikkUtills)
local Player = game:GetService("Players").LocalPlayer
local Decal = workspace.Part.Decal
Decal.Texture = ConikkUtills:GetPlayerThumbnail(Player, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
print(ConikkUtills:TurnPositive(-8)) --> 8
print(ConikkUtills:TurnPositive(27)) --> 27
print(ConikkUtills:NumbersMagnitude(1, 80)) --> 79
print(ConikkUtills:NumbersMagnitude(34, 130)) --> 96
print(ConikkUtills:NumbersMagnitude(-17, 421)) --> 438
print(ConikkUtills.Round:ToNearestInteger(0.365)) --> 0
print(ConikkUtills.Round:ToNearestInteger(0.683)) --> 1
print(ConikkUtills.Round:ToNearestInteger(0.975)) --> 1
print(ConikkUtills.Round:ToFarthestInteger(0.365)) --> -0
print(ConikkUtills.Round:ToFarthestInteger(0.683)) --> 1
print(ConikkUtills.Round:ToFarthestInteger(0.975)) --> 1
local Num = math.random(1, 2)
if num == 1 then
print("I print in both RobloxPlayer and Roblox Studio :)")
else
ConikkUtills.StudioOnly:Print("I only print in Studio >:)")
end
local Num = math.random(1, 2)
if num == 1 then
warn("I warn in both RobloxPlayer and Roblox Studio :D")
else
ConikkUtills.StudioOnly:Warn("I only warn in Studio >:D")
end
local Num = math.random(1, 2)
if num == 1 then
error("I error in both RobloxPlayer and Roblox Studio :3", 1)
else
ConikkUtills.StudioOnly:Error("I only error in Studio >:3")
end
- If
InSpeed
is set tonil
, the fade in will instantly make the screen black, then fade out - If
OutSpeed
is set tonil
, then it will instantly get rid of the fade once it completes - If
DisplayOrder
isnil
, its set to 99999 by default
local fade = ConikkUtills:ScreenEffects:Fade():Start(1, 1)
You can call RBXScriptSignals and/or read TweenBase read only properties from fade.In
and/or fade.Out
if InSpeed and/or OutSpeed are not nil
-- Method 1:
local fade = ConikkUtills.ScreenEffects:Fade():Start(0.5, 1)
fade.In.Completed:Wait()
print("Fade In Completed")
fade.Out.Completed:Wait()
print("Fade Out Completed")
-- Method 2:
local fade = ConikkUtills.ScreenEffects:Fade()
fade:Start(0.5, 1)
fade.Fading.In.Completed:Wait()
print("Fade In Completed")
fade.Fading.Out.Completed:Wait()
print("Fade Out Completed")
RbxScriptConnect that can be used when any key is pressed, works on all devices and excludes non touch and keycode type inputs and keycodes resigned for roblox's escape menu, this includes:
- Escape Key
- Pause Key
- Thumbstick1
- Thumbstick2
- Mouse Movement
- Gyro
- Accelermeter
local AnyKey = ConikkUtills.Input:AnyKey
function Pressed()
print("Pressed a key")
end
AnyKey:Wait()
print("Pressed a key for the first time")
AnyKey:Connect(Pressed)
Tries to get aproximate platform, sadly can't tell if player is on PlayStation or Xbox, but will say they are a console user
local Platform = ConikkUtills.Input:GetPlatform()
if Platform == "Mobile" then
print("User is on mobile")
else
print("User is not mobile")
end
local IsController = ConikkUtills.Input:IsController()
if IsController == true then
print("Controller connected")
else
print("No controller connected")
end
local IsVR = ConikkUtills.Input:IsVR()
if IsVR == true then
print("User is in VR")
else
print("User is not in VR")
end
- KeyboardEnabled : "Keyboard"
- GamepadEnabled : "Gamepad"
- TouchEnabled : "Touch"
For in depth documentation and other infomation vist this devfourm post
ConikkUtills.ContextActionUtility:BindAction(actionName : string, functionToBind : any , createTouchButton : boolean, ...)
ConikkUtills.ContextActionUtility:UnbindAction(actionName : string)
ConikkUtills.ContextActionUtility:BindActionAtPriority(actionName : string, functionToBind : any , createTouchButton : boolean, priorityLevel : any, ...)
ConikkUtills.ContextActionUtility:DisableAction(actionName : string, effectList)
ConikkUtills.ContextActionUtility:SetImage(actionName : string, image : string)
ConikkUtills.ContextActionUtility:SetTitle(actionName : string, title : string)
ConikkUtills.ContextActionUtility:GetButton(actionName : string)
ConikkUtills.ContextActionUtility:MakeButtonRound(actionName : string, amount : number)
ConikkUtills.ContextActionUtility:MakeButtonSquare(actionName : string)
ConikkUtills.ContextActionUtility:SetPressedColor(actionName : string, color : Color3)
ConikkUtills.ContextActionUtility:SetReleasedColor(actionName : string, color : Color3)
local Equipped = ConikkUtills.ContextActionUtility.LocalToolEquipped()
local Unequipped = ConikkUtills.ContextActionUtility.LocalToolUnequipped()
Equipped:Connect()
Equipped:Wait()
Equipped:ConnectParallel()
Equipped:Once()
- For in depth documentation and other infomation vist this github repository
- This was made by my friend Hexa and I integraded it into my system, it's really good for changing lighting in game very easily
ConikkUtills.LightingProfile:ApplyProfile()
ConikkUtills.LightingProfile:CreateProfileInstanceFromCurrentLighting()
Want to contribute? Send a pull request if there are any bugs!
MIT