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
 

Re: Why the...

Previous Thread :: Next Thread 
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 03:37 AM

end


while wait(50)do
GameClockrun()
end

Why can't I *********** put a while wait() do or a function after a end without getting a error?

HELP ME PLEASE!

☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Apr 2014 03:45 AM
MAYBE BECAUSE THE END DOESNT BELONG
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 03:49 AM
wazap

Scripting Helpers

more like scream at the ppl your suppose to help.
Can you explain...

☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 03:53 AM
While wait(50) do -- had to do 3 ends...
-- 100 lines of code
end
end
end


wait(50)


☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
lama321 is not online. lama321
Joined: 18 Dec 2011
Total Posts: 300
20 Apr 2014 04:17 AM
wait ... why do u need three ends?

ends serve to indicate a finish point of functions or loops. Every loop and every function must have its own end.

If you have start a while loop you must close it with One end
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 04:31 AM
Ok so I got:

wait(1)

function ChooseMod()
local P = game.Players:GetChildren()
for i=1, 1 do
local RP = P[math.random(5,#P)]
if RP.Character ~= nil and RP ~= nil then
RP.Character.Name = "Mod"
RP.Neutral = false
RP.TeamColor.TeamColor.new("Really Blue")
RP.Character.Humanoid.Health = 0
end






function ChooseTroll()
local T = game.Players:GetChildren()
for i=1, 1 do
local TP = T[math.random(5,#T)]
if TP.Character ~= nil and RP ~= nil then
TP.Character.Name = "Troll"
TP.Neutral = false
TP.TeamColor.TeamColor.new("New Yeller")
TP.Character.Humanoid.Health = 0
end


while wait(50) do
Map1 = game.Lighting.MapByHandsomebob10
Map1Clone = Map1:clone()
Map1Clone.Parent = Workspace

Spawn1 = game.Workspace.SpawnLocation
Spawn1:remove()

wait(1)

Sword1 = game.Lighting.Swordlol
SwordClone = Sword1.clone()
SwordClone.Parent = StarterPack

game.Lighting.FogEnd = 100

ChooseMod()
ChooseTroll()


Start = Instance.new("Hint")
Start.Parent = Workspace
Start.Text = "200 seconds till next game."

wait(10)

Start:remove()

wait(200)

End2 = Instance.new("Hint")
End2.Parent = Workspace
End2.Text = "50 seconds till next game."

wait(5)

End2:remove()

Spawn2 = game.Lighting.SpawnLocation
Spawn2.Position = 815.2, 434.6, -207.4
Spawn2Clone = Spawn2:clone()
Spawn2Clone.Parent = Workspace

game.StarterPack.Swordlol:remove()

game.Workspace.MapByHandsomebob10:remove()

game.Lighting.FogEnd = 100000,000
end




☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
20 Apr 2014 04:36 AM
3 ends for the functions. Not at the while loop.
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 04:38 AM
If it works I will give you a pot of gold but! you have to follow the end of the rainbow...

☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
20 Apr 2014 04:39 AM
Things that need end:

if .. do
end

for .. do
end

function ..()
end

while .. do
end
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 04:40 AM
Thx! YOUR AWESOME!

☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 04:46 AM
Oh god...
It's something wrong with my choose functions.

I want them to choose a guy then make them in a team then kill them...

But if there must be 5 ppl



☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
20 Apr 2014 04:49 AM
"if .. do
end"
o3o
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
20 Apr 2014 05:00 AM
How to fix this now...

☣ ~ You better make it quick! Or I will rip off your head... ~ ☣
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