Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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.

3 comments

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

0

thank you that helped

0

also your missing an end

1 answer

✓ Accepted answer

vector3_zero helped so thanks :DD

This discussion is preserved as it was. New answers, comments, and votes are closed.