Fire
Fires a BindableEvent (any arguments) or a ProximityPrompt (defaults the player argument to the local player).
Syntax
:Fire() -> nil
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
Fire is part of the Instances library. Instances are live proxies backed by game memory. Property reads and method calls go through Roblox's own objects.
The operation is performed immediately using the arguments supplied at the call site.
Example
local event = Instance.new("BindableEvent")
event.Event:Connect(function(value)
print(value)
end)
event.Event:Fire("hello")
Notes
- Instance proxies are backed by live game memory.