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
 

Gui problem.

Previous Thread :: Next Thread 
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
31 Oct 2011 05:33 PM
if _G.numplayers == 2 then
pointsone = 15
end

if _G.numplayers == 3 then
pointsone = 25
end

if _G.numplayers == 4 then
pointsone = 35
end

while wait() do
pcall(function()
if #_G.time[1] < _G.highscore then
pointsone = pointsone + 25
if #_G.touched > 0 and #_G.time > 0 then
script.Parent.Text = "First ".._G.touched[1].." ".._G.time[1].." "..pointsone
else
script.Parent.Text = "The player didn't finish or didn't play! D:"
end
end
end)
end

Can't get that to work, it should change the text. All table and variables are defined and have values.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
31 Oct 2011 05:41 PM
[ Content Deleted ]
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
31 Oct 2011 05:44 PM
Oh wow.. I had declared pointsone but I deleted it and didn't notice. Thanks, I'll give it a try.
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