QsScripts, free to use functions
i have create QsScripts
this is the asset
i have created for public use
so feel free to use it
how to use it
use
local QsScripts = require(8077512798)
to require the asset
function 1 ‘incrementAsyncWithRandomObject(current,random)’
this function uses a math to increase the number it accepts the current value and a random object
print(QsScripts:incrementAsyncWithRandomObject(50,Random.new() ) )
function 2 ‘incrementAsyncWithFinityResult(current,repeatcount)’
this function uses a math to increase the number as many thimes as you give in repeatcount
print(QsScripts:incrementAsyncWithFinityResult(50,10) )--gives 10 values
function 2.5 NextInteger()
this function is returnd by function 2
and gives the next number
print(QsScripts:incrementAsyncWithFinityResult(50,10):NextInteger() )--gives 10 values
function 3 ‘INcrementAsync(current)’
this is a direct function of incrementAsync what is used
function 4 ‘SimpleincrementAsync(current)’
very simple
print(QsScripts:SimpleincrementAsync(50) == 50*2 )
function 5 ‘GetBindableFunctionForincrementAsync(parent)’
trhis function is the same as function 3 only it gives a BindableFunction that onInvoke is the save as function 3
function 6 and 7 ‘GetWorkers()’ and ‘GetInfo()’
this is the only real use for them
print(QsScripts:GetWorkers(),QsScripts:GetInfo() )
function 8 ‘GetBindableFunctionForOtherAsync(parent,functiontoset)’
this function gives a BindableFunction the parameter ‘parent’ is the parent the parameter “functiontoset” is the function to set
QsScripts: GetBindableFunctionForOtherAsync(game.ReplicatedStorage,print):Invoke('this gets printed')
function 9 ‘GetBindableEventForOtherAsync(parent,functiontoset)’
same as above but it gives a bindable event
QsScripts: GetBindableEventForOtherAsync(game.ReplicatedStorage,print):Fire('this gets printed')
function 10 and 11 ‘PrintAndReturn(…)’ and ‘warnAndReturn(…)’
source
function module:PrintAndReturn(...)
print(...)
return ...
end
function module:warnAndReturn(...)
warn(...)
return ...
end
more use full functions
function 12 ‘findFirstDescendant(instance,name)’
i dont know if roblox already made it but i do
it loops through add Descendant of instance and return if the names match else it returns nil
QsScripts :findFirstDescendant(scr,'Humanoid')
function 13 ‘WaitForDescendant(instance,name,timeout)’
same as above but it waits
modulescript 2
accessible using
local QsScripts = require(8077512798).Module2
function 14 ‘addCampFire(parent)’
this function adds a simple campfire
require(8077512798).Module2:addCampFire(workspace)--for the command bar
function 15 ‘WaitForAncestor(instance,name)’
this lets you wait for an Ancestor
QsScripts:WaitForAncestor(script,'Workspace')
function useless 16 ‘return_nil’
that is all it does; return nil
function 17 ‘kickPlayerByUserId(UserIdToKick,message)’
this kicks a Player By UserId
function 18 ‘call(functiontocall,…)’
source
function module:call(functiontocall,...)
return true,functiontocall(...)
end
function 19 ‘KillPlayerByUserId(UserIdToKill)’
source
function module:KillPlayerByUserId(UserIdToKill)
if self.RunService:IsServer() then
print(pcall(function()
game.Players:GetPlayerByUserId(UserIdToKill).Character.Humanoid.Health = 0
end))
end
end
function 20 ‘createInstanceWithLimit(className,maxAllowed)’
creates a instance with a limit
source
function module:createInstanceWithLimit(className,maxAllowed)
if #game:GetDescendants() < maxAllowed then
local instance = Instance.new(className)
return true,instance
else
return false,'limit reachd'
end
end
function 21 ‘GetBindableFunctionForQFunctionAsync(parent,name)’
returns a BindableFunction that can be invoked right away
default it goes to ReplicatedStorage
possible names
. bindablefunction 21.1 ‘intToString(int)’
transforms an int to an string 1000 to 1,000’
. bindablefunction 21.2 ‘getAlphabet’
returns the Alphabet
function
- yes
- no
0 voters
i also want feed back
other sources i keep prive