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

Cloning part not working. it clones like 400 times? [closed]

Asked by 3 years ago
Edited 3 years ago
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
0
Why is it doing this? TeaWithMee 76 — 3y
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. Bob4koolest 78 — 3y
0
add some script so we can figure it out Not_prototype 50 — 3y
0
That's odd. Are you on mac? Studio is known to be buggy on Mac, this might be one. ElevateTheSecond 11 — 3y
0
no im on windows TeaWithMee 76 — 3y

Closed as Non-Descriptive by Dovydas1118, nekosiwifi, and imKirda

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 3 years ago

Are you doing this in a while or for loop?

0
No TeaWithMee 76 — 3y
Ad