Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Remote Event Output Message Not Showing For Other Players?

Asked by 5 years ago
Edited 5 years ago

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

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

1 answer

Log in to vote
0
Answered by 5 years ago

I figured it out outputs aren't shared, there's the client output, for every player, and the server output, only the creator can access.

Ad

Answer this question