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
 

I need help with a starting for beta minigames

Previous Thread :: Next Thread 
monsterMrMcMan is not online. monsterMrMcMan
Joined: 20 Jun 2010
Total Posts: 463
28 Jul 2014 02:56 PM
I have a countdown Gui in side of this script here

function added(player)
GUI = script.CountDown:clone()
GUI.Parent = player:WaitForChild("PlayerGui")
repeat wait() until player.Character
end


game.Players.PlayerAdded:connect(added)

then the script for the acual gui count down whos parent is a frame and that parent is a Screen Gui then the script and a text label are children of the frame

local text = "Game starting in: "
local msg = script.Parent.Countdown
local delay = 0.1
local cur_time = 5
local max_time = 6
function newGame()
for i=1, #text do
msg.Text = msg.Text .. string.sub(text, i, i)
wait(delay)
end
while(cur_time > -1)do
msg.Text = text .. cur_time
cur_time = cur_time - 1
wait(1)
if cur_time == 0 then
msg.Text = text.."0"
wait(1)
msg.Parent.Parent:Destroy()
end
end
end

newGame()

it works fine exept for the fact that the is to G's so it says

GGame Starting in but once it finishes it says
Game Starting in : NUMBER HERE
Report Abuse
monsterMrMcMan is not online. monsterMrMcMan
Joined: 20 Jun 2010
Total Posts: 463
28 Jul 2014 02:57 PM
Please help me
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