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

RemoteEvent is not firing?

Asked by 6 years ago
Edited 6 years ago

Hello,

I am having some weird issues. My RemoteEvents are not firing in my game.

--Client
local ClothesEvent = ReplicatedStorage.RemoteEvents:WaitForChild("ClothesEvent")


UI.Button.MouseButton1Down:Connect(function()
    print("Body")
    ClothesEvent:FireServer()
end)
--Server
local ClothesEvent = ReplicatedStorage.RemoteEvents:WaitForChild("ClothesEvent")

ClothesEvent.OnServerEvent:Connect(function(player)
    print("Clothes Event is G")
end)

So "Body" prints but the print in the Server Script does not...serious confused. No errors in output display either. Also to note, these lines work in my other game but not the current one.

Anyone know?

0
You don't need WaitForChild on the server. User#25115 0 — 6y
3
where is the server script located, and is it disabled Gey4Jesus69 2705 — 6y

1 answer

Log in to vote
4
Answered by 6 years ago

Gosh, I feel so stupid.

@guioni01, you are a winner kid. You are going places.

1
its gioni01 WideSteal321 773 — 6y
0
lol Gey4Jesus69 2705 — 6y
0
lol LoganboyInCO 150 — 6y
0
lol starmaq 1290 — 6y
0
i like the fact you got 4 upvotes starmaq 1290 — 6y
Ad

Answer this question