flame210
|
  |
| Joined: 28 Dec 2007 |
| Total Posts: 186 |
|
|
| 08 Oct 2012 11:05 AM |
| So this has had me stumped for a while now. I am unsure how to script it however here is what I have been looking for. When i start the game and the players are teleported to the game they start earning 'Gold' every 2 seconds. But if they die they stop earning 'Gold'. If needed I can post the script i have am currently using to run my game. The point system is not in this script. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 11:14 AM |
What? If you want the Gold(point) system to work then give us that script.
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 08 Oct 2012 11:15 AM |
Have the script check who's alive (Tables would be useful) when you teleport the players to the game. Then, when they die, remove them from the table.
All you need after that is to go through the table every two seconds, and award gold to everyone in the table.
If you don't know what tables are / don't know how to use them, then look at this wiki article that explains them: http://wiki.roblox.com/index.php/Tables |
|
|
| Report Abuse |
|
|
flame210
|
  |
| Joined: 28 Dec 2007 |
| Total Posts: 186 |
|
|
| 08 Oct 2012 11:16 AM |
Ok here ya go... This is what currently runs my whole game (basically lol)
local Game = game.Lighting.Games local Play = Game:GetChildren() local GameFloor = game.Lighting.GameFloor while true do wait(5) local message = Instance.new('Hint', Workspace) -- Insert a new message in the Workspace. message.Text = "Next Game Begins in 30 seconds" -- Set the text of the message to "Hello World!". wait(30) message.Text = "Teleporting players to field" wait(2) for i,v in pairs(game.Players:GetPlayers()) do v.Character:MoveTo(Vector3.new(math.random(-116.2,63.57),15,76.48))----insert location here end message.Text = "Players Teleported" wait(2) message.Text = "Inserting building Materials" wait(1) local rand = Play[math.random(1, #Play)] local rand = rand:Clone() rand.Parent = Workspace print("inserting" ..rand.Name.. "model")
message.Text = "Start building! Games starts in 30 seconds" wait(25) message.Text = "Game begins in 5" wait(1) message.Text = "Game begins in 4" wait(1) message.Text = "Game begins in 3" wait(1) message.Text = "Game begins in 2" wait(1) message.Text = "Game begins in 1" wait(1) message.Text = "SURVIVE THE TOXIC " ..rand.Name.. "!" wait(60) message.Text = "Game over!" wait(3) Workspace.GameFloor:Remove() Workspace[rand.Name]:Destroy() message:Remove() wait(3) local GameFloor = GameFloor:Clone() GameFloor.Parent = Workspace wait(2)
end
|
|
|
| Report Abuse |
|
|