try removing the player parameter
I did it my way, and it worked!
Itās very simple and there are better ways to do it
-
Local script:
-
ServerScriptService:
-
Explorer:
-
Output:
test it in the real game
Plublish go play and press F11 then click on server
How about you change the local script to:
script.Parent.Screen.Frame.Button.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Hello:FireServer()
print("hello from client")
end)
this should work
I used to have this problem, make sure the script isnt in replicated storage
i am having the same issue, but thereās a strange behavior whenever i move the local script inside a screengui, it just doesnāt work and this is for team test
hereās a video of it working normally
and hereās a video of it being tested regularly and then team test
hereās a video to show that the script is parented to gui and it doesnāt work then it works when i unparent the script
The reason is because you changed the scriptās Parent. Another way around this is using player.PlayerGui. Can you show me the code and the explorer? If you do I can solve your problem.
it works normally when you test it, but if you team test it then the remote event wonāt fire
but i was messing around and put the script outside of the screen gui and it works like normal, but the exception i canāt use the screen gui
i donāt know what i did, but its fixed now
i just find it strange that it broke like that in the first place and not only that it worked when testing regularly but when i team test it broke
Did you test on a local server or just via play? if you tested via a local server then the output wont be in the local player but in the server