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

how to fix a serverscript not cloning something in a humanoidrootpart?

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 == 1 then 
    ReplicatedStorage:WaitForChild("Steam"):Clone().Parent =  RootPart
    print("Event done")
    end
    end)

So the issue is in the line where it says if player.leaderstats.Quirk.Value == true then it is 1 but it does nothing idk why not can someone help me fix this issue There is not output error wich is weird

0
is Quirk a value? if so it should be player.leaderstats.Quirk.Value as assuming that an object can't be a character. DollorLua 235 — 4y
0
its a value hokyboy 270 — 4y
0
its a number value hokyboy 270 — 4y

Answer this question