if script.Parent.Transparency == .5 then
	if not hi then
		hi = true
	print("opendoor")
	wait(.5)
	  tweenEopen:Play()
wait(10.6)
hi = false
	end
end
--if u dont have a keycard this happens
--start
hi = false
if script.Parent.Transparency == 1 then
if not hi then
hi = true
print("openhatch")
	wait(1)
    tween1open:Play()
 tween2open:Play()
  wait(7)
    tween1close:Play()
  tween2close:Play()
wait(7.6)
hi = false
end
end

2 comments

0

You never defined "hi"

0

Fr lol