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
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)