I have a simple keycard script that was just working and stopped. I tried both local and server script. There is no errors:

script.Parent.Touched:Connect(function(hit)
	if hit.Parent.Name == "Ticket" then
		script.Parent.Parent.Closed1.Transparency = 1
		script.Parent.Parent.Closed2.Transparency = 1
		script.Parent.Parent.Closed1.CanCollide = false
		script.Parent.Parent.Closed2.CanCollide = false
		script.Parent.Parent.Open1.Transparency = 0.6
		script.Parent.Parent.Open2.Transparency = 0.6
		wait(2)
		script.Parent.Parent.Open1.Transparency = 1
		script.Parent.Parent.Open2.Transparency = 1
		script.Parent.Parent.Closed1.Transparency = 0.6
		script.Parent.Parent.Closed2.Transparency = 0.6
		script.Parent.Parent.Closed1.CanCollide = true
		script.Parent.Parent.Closed2.CanCollide = true
	end
end)

2 comments

0

where is the script, is it under the handle of the tool?

0

it is in a union within a gate