Saved Location Script Tutorial!
This is a script where if you press a specific button (Eg. Y On Controller) it saves your location & if you press the button (In This Case Y) again it teleports you straight to that location! Here's the script!
If
HasHistory (S) (player) (true)
Then
History (S) (player) (delete)
Var (cx) = (history:c1)
Var (cy) = (history:c2)
Var (cz) = (history:c3)
Wait (1000)
----- Add any particles affects or tint colours you want here! -----
Wait (1000)
Teleport (player) (cx,cy,cz)
History (c1) (player) (delete)
History (c2) (player) (delete)
History (c3) (player) (delete)
ElseIf
HasHistory (S) (player) (false)
Then
MessageBox (Location Has Been Saved)
History (S) (player)
Var (cx) = (prel:x)
Var (cy) = (prel:y)
Var (cz) = (prel:z)
History (c1) (player) (cx)
History (c2) (player) (cy)
History (c3) (player) (cz)
Ask me if you have any questions!