Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why is the parent feature locked?

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

1 comment

0

Can't you simply place the tool in Starterpack?

1 answer

✓ Accepted answer

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?

3 comments

0

no

0

its a tool in replicated storage

0

anything spelled wrong?

This discussion is preserved as it was. New answers, comments, and votes are closed.