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

How would I get this cloning peice to work?

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

✓ Accepted answer

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

2 comments

0

Yes

0

You can use c:MoveTo(Vector3.new()), that's how you do it for models.

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