Hello Guys i need a bit help,
I wanted to aks if somebody knows how to make a Part disappearing for a Player if the Boolvalue inside this Player is true
local plr = game.Players.LocalPlayer
local value = plr:WaitForChild("Doors4"):WaitForChild("DoorzweiVierzig").Value
if value == true then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
else
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
plr.Doors4.DoorzweiVierzig.Changed:Connect(function(change)
wait(0.5)
print(change)
if plr.Doors4.DoorzweiVierzig.Value == true then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
elseif plr.Doors4.DoorzweiVierzig.Value == false then
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end)
This is the actual Script i use in the Part, i hope you can help me pls