|
| 29 Apr 2017 05:04 PM |
I'm trying to gather information about scripting, but I'll give a brief description of what I'm trying to do:
A player steps on a block which triggers another block with spotlight to turn on
I'm completely new to this and I don't know what to do |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 29 Apr 2017 05:07 PM |
local deb = true
script.Parent.Touched:connect(function() if deb then deb = false workspace.OtherPart.SpotLight.Enabled = not workspace.OtherPart.SpotLight.Enabled wait(1) deb = true end end) |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2017 05:09 PM |
workspace.Block.Touched:connect(function(hit) -- code -- end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|