What happening?
script.Parent.MouseClick:connect(function()
game:GetService("ReplicatedStorage"):FindFirstChild("OnEat"):FireClient("eat")
end)
What happening?
script.Parent.MouseClick:connect(function()
game:GetService("ReplicatedStorage"):FindFirstChild("OnEat"):FireClient("eat")
end)
The function “:FireClient(playerToSendTo, additionalArguments)” starts with the player, not the arguments.
RemoteEvent:FireClient(Player,”eat”)
It gives “unable to cast value to object” because its expecting the “Player” object but gets the string “eat” in its place.
Now it does nothing
How are you getting the player?l
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
script/local script?