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

Cloning part not working. it clones like 400 times?

game.Workspace.Hat:Clone().Parent = char

Please Help I try to clone this part 1 time but it doesent let me. it clones it but like 500 times.

a little bit more code:


local weld = Instance.new("WeldConstraint")
local hat = game.Workspace.Hat
local ClonedOBject = game.Workspace.Hat:Clone()
local char = plr.Character

	ClonedOBject.Parent = char
	weld.Parent = char
	weld.Part0 = char.Head
	weld.Part1 = game.Workspace.Hat.Handle
	hat.Handle.Position = char.Head.Position
	game.Workspace.Hat.Handle.Anchored = false

5 comments

0

Why is it doing this?

0

Make sure you've defined a max limit if you're doing this in a "for" loop. If this is in a while loop make sure you replace "while true do" with "while clonetimes<1 do" or something like that.

0

add some script so we can figure it out

0

That's odd. Are you on mac? Studio is known to be buggy on Mac, this might be one.

0

no im on windows

1 answer

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