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

im making a door with a bool value and its not working please help??

Asked by 4 years ago

this is the script i have

bool = script.Parent.Parent.Value
door = script.Parent.Parent

function openclose()
    bool.Value = true
    door.Transparency = 0.5
    wait()
    door.CanCollide = false
    print("lol")
    wait()
    while bool.Value == true do
        door.Transparency = 1
        door.CanCollide = true
        bool.Value = false
        print("lol2")
end

script.Parent.ClickDetector.MouseClick:Connect(openclose)

do i need a bool value or another value? i'm confused help if you want.

0
Check that you're referencing the bool and door correctly. If script.Parent.Parent is a BoolValue, then bool is correct and door isn't, and vice versa vector3_zero 1056 — 4y
0
thank you that helped EllaTheFloofyFox 106 — 4y
0
also your missing an end Benbebop 1049 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

vector3_zero helped so thanks :DD

Ad

Answer this question