(please don't censor)
---------
--Script:
---------
--RemoteFunction Example
game.ReplicatedStorage.RemoteFunction.OnServerInvoke = function(Plr, ...)
local Args = {...}
print(Args[1]) >Yaa
return "Nice"
end
--RemoteEvent Example
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Plr, ...)
local Args = {...}
print(Args[1]) >Yaa
end)
--------------
--LocalScript:
--------------
--RemoteFunction Example
local WaitForResponse = game.ReplicatedStorage.RemoteFunction:InvokeServer("Yaa")
print(WaitForResponse) >Nice
--RemoteEvent Example
game.ReplicatedStorage.RemoteFunction:FireServer("Yaa")
|