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

Part Clone() not working properly?

Asked by
iivSnooxy 248 Moderation Voter
4 years ago

Hello, why isn’t this working?

local Part = game.Workpace.Part
local t = 5

wait(t)
local Part2 = Part:Clone()
Part2.Position = Vector3.new(1,100,1)

1 answer

Log in to vote
1
Answered by 4 years ago

You need to define the clone's parent, or else it will not work.

Possible fix:

local Part = workpace.Part
local t = 5

wait(t)
local Part2 = Part:Clone()
Part2.Position = Vector3.new(1,100,1)
Part2.Parent = workspace
0
If you need any more help, just reply to this answer! YelloMynamesZak 85 — 4y
Ad

Answer this question