Skip to content

Commit

Permalink
Update deadly-lava.md (#940)
Browse files Browse the repository at this point in the history
## Changes

<!-- Please summarize your changes. -->

<!-- Please link to any applicable information (forum posts, bug
reports, etc.). -->

## Checks

By submitting your pull request for review, you agree to the following:

- [ ] This contribution was created in whole or in part by me, and I
have the right to submit it under the terms of this repository's open
source licenses.
- [ ] I understand and agree that this contribution and a record of it
are public, maintained indefinitely, and may be redistributed under the
terms of this repository's open source licenses.
- [ ] To the best of my knowledge, all proposed changes are accurate.

---------
  • Loading branch information
collisins authored Dec 12, 2024
1 parent 2b7e9a6 commit 2ccb97d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Use an **event** to detect when a user touches the lava. Every part has a `Touch

1. Declare a new function called `kill`.
2. Access the `Touched` event on the lava object using a dot, just like a property: `lava.Touched`.
3. Call the `Connect` function on the `Touched` event, passing the `kill` function.
3. Call the `Connect` function on the `Touched` event, passing `kill()` as the function to call when the part is touched.

```lua
local lava = script.Parent
Expand Down

0 comments on commit 2ccb97d

Please sign in to comment.