Events

Change the flow of your experience using the following events.

self.TouchedPlayer

Determines if an object has touched a player.

chevron-rightAssign tohashtag

A function.

Any Object's Script
self.TouchedPlayer = function(player: Player)
  player:kill()
end

world.heartbeat:Connect(function)

Determines what happens on each frame of an experience. The world has a heartbeat and every time it "beats", it will execute the function.

Any Object's Script
local score = 0

function beat(deltaTime: number)
    score = score + 1
end

world.heartbeat:Connect(beat)

Last updated