-----serverscript
game:GetService("ReplicatedStorage").Remotes.effectremote.OnServerEvent:Connect(function(player)
local function uhh()
--code
end
local function uhh2()
--code
end
end)
---local script
effectremote:FireServer(whichever function from the server script)
Is there any way to do something like this? I don’t like having a remote that has like 400 different variables
I assume you want to pass functions to the server? And yes, that is possible (however, I would rather have the functions on the server due to exploiters, unless you’re able to verify it via the client.)
I’m trying to do that but without all of this (rleg, rleg.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,5.5, 7.7, 0.5, 0.25, hrp.CFrame.lookVector * 10,“rbxassetid://281156569”,.8,1,false)
-----serverscript
game:GetService("ReplicatedStorage").Remotes.effectremote.OnServerEvent:Connect(function(player)
local function uhh()
--code
end
local function uhh2()
--code
end
end)