So I did this expanding to my last question. It errors abotu this all the time, 3rd line. How can I fix it?
1 | while true do |
2 | wait( 33.5 ) |
3 | game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector 3. new(- 99 , 4.5 , - 10 )) |
4 | wait( 180.9 ) |
5 | game.Workspace.Player.Head:Destroy() |
6 | 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:
1 | 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