So I did this expanding to my last question. It errors abotu this all the time, 3rd line. How can I fix it?
while true do wait(33.5) game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-99, 4.5, -10)) wait(180.9) game.Workspace.Player.Head:Destroy() end
Ok kid, you need some basics...
Workspace.Player huh?
That would only work if the player was NAMED Player XD.
So I am assuming you are doing this in a local script?
To get the players character, you do this:
game.Players.LocalPlayer.Character
replace all game.workspace.Player with the above code.
I created a teleport script a while back. Although mine activates after clicking a GUI.
Heres the link to my previous question that is sorta like yours.
https://scriptinghelpers.org/questions/45524/converting-a-teleport-script-into-a-clickable-gui