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

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

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago
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)
Ad

Answer this question