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

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

Asked by 2 years 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 — 2y
0
oh yeah ill try that NeoDogez 18 — 2y
0
still doesn't work NeoDogez 18 — 2y
0
Is the script portion the whole script or is the If statement in a loop? SamZeKat 28 — 2y
View all comments (3 more)
0
the script is a portion and it does something when tool is used NeoDogez 18 — 2y
0
Tip: try putting print("*insert something short here") between every line to see when it stops working. epoke466 100 — 2y
0
@epoke466 nothing works in local script NeoDogez 18 — 2y

Answer this question