So im trying to learn how remote functions work but i cant figure them out, this is the LocalScript
Local ReplicatedStorage = game:GetService("ReplicatedStorage") Local Event = ReplicatedStorage:WaitForChild("Event") script.Parent.MouseButton1Click:Connect(function() Event:FireServer() end)
and this is the normal script (its inside the event btw)
script.Parent.OnServerEvent:Connect(function(player) print(player.Name) end)
but yet i get no errors, but nothing happens.
The normal script should be inside of ServerScriptService, NOT the event. Hope this helps!
first in the localscript add a local the get the player next add the local to the fireserver like this
Event:FireServer(player)