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 5 years ago
Edited 5 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 — 5y
3
where is the server script located, and is it disabled Gey4Jesus69 2705 — 5y

1 answer

Log in to vote
4
Answered by 5 years ago

Gosh, I feel so stupid.

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

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

Answer this question