stupid = true script.Parent.Touched:Connect(function(player) if stupid == true then do stupid = false script.Parent.Position = Vector3.new(-65.597, 0.36, 1.5) wait(4) script.Parent.Position = Vector3.new(-65.597, 0.672, 1.5) stupid = true wait(1) end end)
This is my button script with a reset and it doesn't work? The event doesn't sense an end and the end) has a red line under it and nothing works... I might look stupid but I'm a new member of this community.
use it as you have your code in the lua block also here is the working version
local stupid = true script.Parent.Touched:Connect(function(player) if stupid == true then stupid = false script.Parent.Position = Vector3.new(-65.597, 0.36, 1.5) wait(4) script.Parent.Position = Vector3.new(-65.597, 0.672, 1.5) wait(1) stupid = true end end)