Hello guys, i have made a remote event that will, print"hello" when you press a button on the client side.
Server side script:
local brickclone = game.ReplicatedStorage:WaitForChild("RemoteEvent")
brickclone.OnServerEvent:connect(function(func)
print"hello"
end)
Client side script for button:
local clone = game.ReplicatedStorage:WaitForChild("RemoteEvent")
script.Parent.ScreenGui.TextButton.MouseButton1Click:Connect(function(gui)
warn"Return message from server"
clone:FireServer()
end
When i run a server and client side test two players, i click the button, but the warning shows on the person who clicked the button, but no message, and no warn for server and no message saying"hello"
Why is this happening? if i do a test with just the client then it works both of it. I even downloaded a RemoteEvent test place that has valid code but it does the same thing, no print message shows up saying who clicked a button.
ANSWER SOLVED FIGURED IT OUT
outputs aren't shared, there's the client output, for every player, and the server output, only the creator can access

5 comments
your OnServerEvent doesnt have an end, and your MouseButton1Click function is missing a ")"
It does im just new to the text editor, didn't know how to put the full code it but it does.
warn("Return message from server")
Try renaming the variable in the server script that defines the RemoteEvent "clone" and see if it makes a difference.
I figured it out thanks guys.