Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Door error works in studio but not in player and gives no errors when looking in dev console??

Asked by 8 years ago

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)
0
Is this a normal script? TheDeadlyPanther 2460 — 8y
0
yes GimmeWaffleBruh 18 — 7y

Answer this question