generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Issue with ends

Previous Thread :: Next Thread 
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
03 Sep 2014 08:43 PM
specialadmins = {"omada99", "WoundedSoul", "TheBenSquare"}
game.Players.PlayerAdded:connect(function(plyr)
for i,v in pairs(specialadmins) do
if plyr.Name == v
then
plyr.Chatted:connect(function(msg)
if msg == "enable/age"
then
a = Instance.new("Hint", game.Workspace)
a.Text = "The age requirement has been enabled."
wait(5)
for i,b in pairs(game.Workspace:GetChildren()) do
if b:IsA("Hint")
then
b:Destroy()

elseif msg == "disable/age"
then
c = Instance.new("Hint", game.Workspace)
c.Text = "The age requirement has been disabled."
wait(5)
for i,d in pairs(game.Workspace:GetChildren()) do
if d:IsA("Hint")
then
d:Destroy()

elseif msg == "shutdown"
then
e = Instance.new("Hint", game.Workspace)
e.Text = "A server shutdown has been activated by an authorized user. Beginning in a moment."
wait(3)
game.Players:ClearAllChildren()
game.Workspace:ClearAllChildren()
end
end
end
end
end
end
end)


The final end with end) says this:

')' expected(to close '(' at line 6) near 'end'
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image