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

why is the parent feature locked?

Asked by 6 years ago
local Dweapon = game:GetService("ReplicatedStorage").Dagger
local Dclone = Dweapon:Clone()
local TSweapon = game:GetService("ReplicatedStorage").TrainingSword
local TSclone = TSweapon:Clone()





game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
local D = player:WaitForChild("StarterGear"):FindFirstChild("Dagger")   
local TS = player:WaitForChild("StarterGear"):FindFirstChild("TrainingSword")
    if D then 
        D:Destroy()
        wait(10)
        Dclone.Parent = player.StarterGear
    end
    if TS then
        TS:Destroy()
        wait(10)
        TSclone.Parent = player.StarterGear
    end
end)
end)

Error The Parent property of Dagger is locked, current parent: NULL, new parent StarterGear

0
Can't you simply place the tool in Starterpack? Aimarekin 345 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Parent feature locked means they cannot be deleted or the game would stop working, like when you try deleting workspace with a script. Maybe you're deleting something you shouldn't?

0
no EpicAshtonTheBoy 33 — 6y
0
its a tool in replicated storage EpicAshtonTheBoy 33 — 6y
0
anything spelled wrong? ootheboss 32 — 6y
Ad

Answer this question