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

I need help with a script?

I am trying to make a script like admin, the user whom name is in the script says start and for the amount of time set in the script a part opens like a door so people could walk through and after time closes, heres what I have so far.

Could someone help?

Hosts = {"CowLoverSecret"} -- Players who can host
open ={"start"} --Text that host says to begin letting players into the play area (DEFAULT: START)
openduration=5 --Seconds for players to get on their stands

sp=script.Parent
open=false

game.Players.ChildAdded:connect(function(plr)plr.Chatted:connect(function(Chat)if string.lower(Chat) == open thenfor i=1,#Hosts doif string.lower(Chat) == opensp.Transparency=1sp.CanCollide=falseopen=truewait(openduration)open=falsesp.Transparency=1sp.CanCollide=trueendendendend)
end)

1 comment

0

You really need to space and indent your code correctly. Also what exactly are you having trouble with?

1 answer

I don't know I wish I can answer your question.

1 comment

1

This isn't a forum. Don't post answers if they aren't actually answers.

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