This was for my upcoming game and the door wouldnt work in robloxplayer but working in studio?

v = script.Parent.Parent.Value
click = script.Parent.ClickDetector

function wat(player)
	
		if v.Value == true then
			v.Value = false
			
			script.Parent.Parent.Door.Transparency = 1
			script.Parent.Parent.Door.CanCollide = false

		elseif v.Value == false then
			script.Parent.Parent.Door.Transparency = 0
			script.Parent.Parent.Door.CanCollide = true
			
		end
	end

script.Parent.ClickDetector.MouseClick:connect(wat)

2 comments

0

Is this a normal script?

0

yes