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: Paintball script help!

Previous Thread :: Next Thread 
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 10:44 AM
Hint = Instance.new("Hint")
Hint.Parent = Workspace
repeat Hint.Text = "Two or more players needed to play Paintball!" until #game.Players:GetChildren() >= 1

Hint.Text = "Welcome to paint ball, Loading..."
wait(2)
for i = 0, 100, math.random(1, 7) do
wait(math.random(0.5, 1))
Hint.Text = "Welcome to paint ball, Loading "..i.."% Done."
Ready = true
end

while true do
if Ready = true then
Map = game.Lighting.Maps:GetChildren(math.random(1, %game.Lighting.Maps))
Map.Parent = Workspace
Map:MakeJoints()
for i, v in ipairs (game.Players:GetChildren(IsAlive) do
v.Value = true
else
end
end
end

for i, v in ipairs (game.Players:GetChildren(IsAlive) do
Ready = false
Alive = i
if v.Value = false then
Alive = Alive - 1
if Alive = 0 then
Hint.Text = "No players are alive, All players have failed"
end
end
end




I cant get an output as I cant open Test and it would not be possible.
But could you please fix all the problems.
And add some things I forgot that might be needed,


Thanks, Ford.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
16 Feb 2012 10:55 AM
And what are the problems?
Report Abuse
TheMaleScripter is not online. TheMaleScripter
Joined: 08 Nov 2009
Total Posts: 164
16 Feb 2012 10:56 AM
He can't get an output to test what's wrong/debug, I guess.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 11:14 AM
It just errors, Can anyone test it and debig it?
Then fix it?
Report Abuse
TheMaleScripter is not online. TheMaleScripter
Joined: 08 Nov 2009
Total Posts: 164
16 Feb 2012 11:16 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
16 Feb 2012 11:21 AM
What is the point of fake loads?
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 11:23 AM
I dont know… I probbaly shall remove them.
But I nee help!
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
16 Feb 2012 11:28 AM
What does the output say?
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 11:30 AM
I managed to get output!;
Thu Feb 16 17:29:54 2012 - Workspace.Script:14: 'then' expected near '='
Thu Feb 16 17:29:54 2012 - Workspace.Leaderboard:6: 'end' expected (to close 'function' at line 1) near ''
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 11:59 AM
Bump.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 12:14 PM
BUMP!
Report Abuse
CorruptStudios is not online. CorruptStudios
Joined: 20 Jul 2011
Total Posts: 17
16 Feb 2012 12:19 PM
Simple enough to fix.

put a then
add an end
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
16 Feb 2012 12:38 PM
Hint = Instance.new("Hint", game.Workspace)
repeat Hint.Text = "Two or more players needed to play Paintball!" until #game.Players:GetChildren() >= 1

Hint.Text = "Welcome to paint ball, Loading..."
wait(2)
for i = 0, 100, math.random(1, 7) do
wait(math.random(0.5, 1))
Hint.Text = "Welcome to paint ball, Loading "..i.."% Done."
Ready = true
end

while true do
if Ready == true then
Map = game.Lighting.Maps:GetChildren(math.random(1, #game.Lighting.Maps))
Map.Parent = game.Workspace
Map:MakeJoints()
for i, v in ipairs (game.Players:GetChildren(IsAlive) do
v.Value = true
else
-- did you want to put any code here? ;O
end
end
wait(1)
end

for i, v in ipairs (game.Players:GetChildren(IsAlive) do
Ready = false
Alive = i
if v.Value == false then
Alive = Alive - 1
if Alive == 0 then
Hint.Text = "No players are alive, All players have failed"
end
end
end
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 01:09 PM
Bump, Still error's
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
16 Feb 2012 01:31 PM
Try:

Hint = Instance.new("Hint")
Hint.Parent = Workspace
repeat Hint.Text = "Two or more players needed to play Paintball!" until game.Players.NumPlayers ​>= 1
Hint.Text = "Welcome to paint ball, Loading..."
wait(2)
for i = 0, 100, math.random(1, 7) do
wait(math.random(0.5, 1))
Hint.Text = "Welcome to paint ball, Loading "..i.."% Done."
Ready = true
end
while true do
if Ready then
Map = game.Lighting.Maps:GetChildren(math.random(1, %game.Lighting.Maps))
Map.Parent = Workspace
Map:MakeJoints()
for i, v in ipairs (game.Players:GetChildren(IsAlive) do
v.Value = true
else
end
end
end
for i, v in ipairs (game.Players:GetChildren(IsAlive) do
Ready = false
Alive = i
if not v.Value then
Alive = Alive - 1
if Alive == 0 then
Hint.Text = "No players are alive, All players have failed"
end
end
end

?

† KMXD †
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 02:01 PM
Error's

Unexpeted symbol near ? bad arguement.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
16 Feb 2012 02:04 PM
Did you add the question mark...?

† KMXD †
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
16 Feb 2012 02:37 PM
No why?
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
18 Feb 2012 08:38 AM
Bump!
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
18 Feb 2012 09:25 AM
[ Content Deleted ]
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
18 Feb 2012 09:38 AM
Did you write this script yourself? If you did, then you should be able to use the output to easily fix the problems yourself. It describes the problems for you.
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