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

The stuff which has to be cloning isn't cloning. Why?

Hello! I've got the following script but the stuff which has to be cloning doesn't clone. Any help?

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Script2.ParachuteLeft:Clone()
	script.Parent.Script2.ParachuteRight:Clone()
	script.Parent.Script2.ParachuteForward:Clone()
	script.Parent.Script2.ParachuteBackward:Clone()
	game.Players.LocalPlayer.Backpack["Parachute (left)"]:Destroy()
	game.Players.LocalPlayer.Backpack["Parachute (right)"]:Destroy()
	game.Players.LocalPlayer.Backpack["Parachute (forward)"]:Destroy()
	game.Players.LocalPlayer.Backpack["Parachute (backward)"]:Destroy()
	script.Parent.Text = "Get parachutes"
	script.Parent.Script2.Disabled = false
	script.Disabled = true
end)

1 answer

Each Instance was Cloned, the problem is that their Parent property was never issued, meaning they don’t have any assigned location. :Clone() automatically returns the duplicated Object, so you can call the Parent property directly.

script.Parent[Instance]:Clone().Parent = Location

2 comments

0

Thank you!

1

Robloximario952 Please accept this mans answer. You can't just say thank you and leave, That's against the rules and could get your account banned.

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