of     1   

nicevsmean123
#215589437Saturday, April 29, 2017 10:04 PM GMT

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
Soybeen
#215589652Saturday, April 29, 2017 10:07 PM GMT

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)
Adrian12094
#215589848Saturday, April 29, 2017 10:09 PM GMT

workspace.Block.Touched:connect(function(hit) -- code -- end)
NovaPrimus
#215589850Saturday, April 29, 2017 10:09 PM GMT

u froob u beat me to it
nicevsmean123
#215590728Saturday, April 29, 2017 10:21 PM GMT

Thank you so much!!

    of     1