Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

*help* How do I have something disabled enabled through a script? Mines not working

Asked by 10 years ago

Hi. I have a part that has fire in it, and i have the fire disabled.

this is the script

local brick = Workspace.Part

function onTouch(part) brick.Fire.Enabled = true wait(3) brick.Fire.Enabled = false end

when i touch it, it does nothing. Help?

0
Use code formatting. BlueTaslem 18071 — 10y

2 answers

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

You never connected anything to a Touched event, so nothing would happen if you did touch any brick.

0
Oh wow how'd I miss that. xd Thanks PepperpwniPizza 5 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

You forgot Workspace.Part.Touched:connect

Answer this question