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

the Part doesn't clone but it moves to the new position after i press the button 4 seconds. help?

local button = script.Parent --the button local Part = game.Workspace.Part2 button.ClickDetector.MouseClick:Connect(function(click) if click then Part:Clone() print("i was cloned")

end wait(4) Part.Position = Vector3.new(0,15,0) end)

1 answer

local button = script.Parent --the button 
local Part = game.Workspace.Part2 
button.ClickDetector.MouseClick:Connect(function(click)
local copy = Part:Clone()
print("i was cloned")
wait(4) 
copy.Position = Vector3.new(0,15,0)
end)

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