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

How would I get this cloning peice to work?

Asked by 9 years ago

I am trying to create a time travel script. As you can see my c in the code won't work and I cannot figure out why. I tried everything.

local c = game.ReplicatedStorage.House2:Clone()
c.Parent = game.Workspace
c.Position = Vector3.new(-16.4,2.47,-59.5)

local button = workspace.place11
local teleport = workspace.TP.Head
local back = workspace.back.Head
function onClick()
    teleport.Enabled.Value = '1'
    c
    back.Enabled.Value = '0'
    if workspace.House1.ChildAdded then 
        workspace.House1:Destroy()
    end
end
button.ClickDetector.MouseClick:connect(onClick)

function onTouch(part)
    wait(1) 
    teleport.Enabled.Value = '0'
    wait(20)
    back.Enabled.Value = '1'
    wait(1)


end
teleport.Touched:connect(onTouch)

1 answer

Log in to vote
1
Answered by 9 years ago

Is 'c' a model? You cannot do position for a model.

0
Yes Conmmander 479 — 9y
0
You can use c:MoveTo(Vector3.new()), that's how you do it for models. DoctorDarkMagic 25 — 9y
Ad

Answer this question