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)
Is 'c' a model? You cannot do position for a model.