dont use this its bad
jjjjjjjjjjjjjjj
I don’t see what the point of the resource is, the code is very messy and filled with deprecated stuff, not type safe, some weird symbols and more, also I can read what you provided just fine…
I think you should add more functionality since a lot of the functions in the module are just wrappers.
For example, there’s two functions for halting code for X amount of seconds, however, it would be much quicker and efficient to just use the global:
local EF = require(game.ReplicatedStorage.ExtraFunctions)
EF.Wait.TaskWaitX(3)
-- VS
task.wait(3)
A few of your functions can also be condensed:
-- Tween
ExtraFunctions.Tween = function(...) : Tween
return game:GetService("TweenService"):Create(...)
end
-- WaitForInput
ExtraFunctions.Client.WaitForInput = function(input,delay)
if input then
local isInput = false
while not isInput do
local inputObject, gameProcessed = game:GetService("UserInputService").InputBegan:Wait()
if(gameProcessed) then
-- the user is likely typing in a textbox
continue
end
isInput = (inputObject.KeyCode == input) or (inputObject.UserInputType == input);
end
-- since `delay` is optional, it will still yield either way
task.wait(delay)
else
warn("Input needs to be a Enum.KeyCode value - Extra Functions - WaitForInput")
end
end
-- WaitForLeftClick/WaitForRightClick
ExtraFunctions.Client.WaitForLeftClick=function(delay)
ExtraFunctions.Client.WaitForInput(Enum.UserInputType.MouseButton1, delay)
end
ExtraFunctions.Client.WaitForRightClick=function(delay)
ExtraFunctions.Client.WaitForInput(Enum.UserInputType.MouseButton2, delay)
end
I think you get the point
Hints have been deprecated for well over a decade and really shouldn’t be used
I don’t say any of this to be mean or rude, just that if you want to provide a community resource for others to use, it should have a more efficient purpose
I’ll take your tips and try to improve it as much as i can thanks for the feedback!
Noticed there is a function for arithmetic math, like multiplication.
Here is a better way to multiply numbers without using this module:
local Number = 2 * 3 -- Makes the number 6. Works like a charm.
What’s cool about this obscure, weird thing that Roblox hides is that you can even stack it!
local Number = 2 * 3 + 5 - 2 / 2 -- Makes 10, which is correct. Yay!
Using a value object! I have something even more obscure to show:
leaderstatValue.Value *= 5 -- Multiplies by five, cool
Hope this says enough