0% found this document useful (0 votes)
6 views1 page

Hook

The document outlines a script that listens for player chat messages and executes a series of teleport commands when the message '?start' is received. It includes a loop that continuously heals the player and processes events from a queue. The teleportation occurs at specified coordinates with a wait time of 5 seconds between each teleport.

Uploaded by

kmalikov142
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Hook

The document outlines a script that listens for player chat messages and executes a series of teleport commands when the message '?start' is received. It includes a loop that continuously heals the player and processes events from a queue. The teleportation occurs at specified coordinates with a wait time of 5 seconds between each teleport.

Uploaded by

kmalikov142
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

ListenForPlayer

ListenForChat
ListenForInstantiation
OpenConsole

OnChatMessage = function(args)
message = args.message
sender = args.sender

if message == "?start" then


PlayerTeleport({"x": -44.45, "y": 1.84, "z": -54.7})
wait(5)
PlayerTeleport({"x": -60.06, "y": 0.91, "z": -58.25})
wait(5)
PlayerTeleport({"x": -47.38, "y": -1.34, "z": 39.56})
wait(5)
PlayerTeleport({"x": -50.24, "y": 9.63, "z": 38.99})
wait(5)
PlayerTeleport({"x": -31.38, "y": 1.23, "z": 96.23})
wait(5)
PlayerTeleport({"x": 113.18, "y": 4.9, "z": 82.87})
wait(5)
PlayerTeleport({"x": 66.68, "y": 1.62, "z": -3.83})
wait(5)
PlayerTeleport({"x": 98.81, "y": 15.27, "z": -84.97})
wait(5)
PlayerTeleport({"x": -9.02, "y": 0.85, "z": 35.29})
wait(5)
PlayerTeleport({"x": -17.45, "y": 42.9, "z": -3.27})
end if
end function
while true
PlayerHeal
while _events.len > 0
_nextEvent = _events.pull
_nextEvent.invoke(_nextEvent.args)
end while
yield
end while

You might also like