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

how to fix this remote event from not working?

Asked by
hokyboy 270 Moderation Voter
4 years ago
wait(1)
---- Services ----
local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Varibles --
local Remote = ReplicatedStorage:WaitForChild("QuirkActivate")

Remote.OnServerEvent:Connect(function(player)
    local Character = player.Character
    local RootPart = Character:WaitForChild("HumanoidRootPart")
    warn("Quirk Activation Request Recieved")
    if player.leaderstats.Quirk.Value == 1 then
    ReplicatedStorage:WaitForChild("Steam"):Clone().Parent =  RootPart
    print("Event done")
    end
    end)

I made sure the event is fired i get the warn but it wont go further why not

this is in a normal script in serverscriptservice

0
you should use proper indentation. It helps make errors easier to spot and the code easier to understand for other people. proqrammed 285 — 4y
0
Well, when the event is fired. Is the quirk value of the player equal to 1? killerbrenden 1537 — 4y
0
put something like print("test") after the if statement to see if its just that your leaderstats value wasnt 1 epicgnomer 15 — 4y

Answer this question