Ad
Log in to vote
0

Why is my local script not doing anything when remote event is fired?

Asked by 19 days ago

local script

local RS = game:GetService("ReplicatedStorage")
local doges = 0
RS:WaitForChild("dogecaptured").OnClientEvent:Connect(function(player, sus)
    local doges = doges + 1
    player.PlayerGui.Doges.ImageLabel.TextLabel.Text = doges
    print(doges.. " " .."Doges")
end)

script

if sus.Parent.Humanoid.Health == 0 then
    sus.Parent.Head.Wow.Playing = true
    RS.dogedamageclone:FireClient(player, sus)
end
0
do you mean :FireAllClients ()? RAFA1608 543 — 18d
0
oh yeah ill try that NeoDogez 18 — 18d
0
still doesn't work NeoDogez 18 — 18d
0
Is the script portion the whole script or is the If statement in a loop? SamZeKat 28 — 18d
View all comments (3 more)
0
the script is a portion and it does something when tool is used NeoDogez 18 — 17d
0
Tip: try putting print("*insert something short here") between every line to see when it stops working. epoke466 100 — 17d
0
@epoke466 nothing works in local script NeoDogez 18 — 14d

Answer this question