LocalScript:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
ReplicatedStorage:WaitForChild("RemoteFunction").OnClientInvoke = function(i)
return i()
end
Server:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
ReplicatedStorage.RemoteFunction:InvokeClient(player, function()
print("I like my cheese drippy bruh")
end)
end)
When I run the code, it just errors “attempt to call a nil value”
Does anyone know a workaround?