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

How do i make a door when you have enough points a text goes away and the door opens?

I need a GUI on a brick for the text like someone has 3 points text goes away and a door opens but not for the persons that have less than 3 points... how to do that?

1 answer

Please don't ask for full scripts. We can't make a full script out of thin air based on nothing. No one will ever do that here.

That you can do is ask for the information needed in order to make this work. How the script would work is that you would first need to check if they have enough points, lets call it "A". You would first need to define what A is and if A is >= 3 then open the door.

function onTouched(hit)
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("leaderstats")
local a = stats:findFirstChild("Points")

if a >= 3 then
script.Parent.CanCollide = false
print("Door has Opened")
wait(5)
Print("Door has Closed")
else
print("Not enough points")
end
end

This is what the script would look like to open the door. This may not fully work for your door, but this is what a script would look like in order to open the door.

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