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
 

Script Builder - Share your epic scripts!

Previous Thread :: Next Thread 
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
11 Aug 2012 05:52 PM
Nope :P
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
11 Aug 2012 06:08 PM
I think i just got owned, and no, thats the script to the whole of my first game xD
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
11 Aug 2012 06:10 PM
Why got owned?
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
11 Aug 2012 06:12 PM
>I think i just got owned
I Lol'd. who owned you...?
Report Abuse
ginahop1 is not online. ginahop1
Joined: 18 Feb 2012
Total Posts: 8
22 Aug 2012 10:43 PM
....
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
23 Aug 2012 05:01 PM
Thanks for bumping xD
Report Abuse
ginahop1 is not online. ginahop1
Joined: 18 Feb 2012
Total Posts: 8
05 Oct 2012 07:26 AM
1. The mod is always right. What the mod says, goes.

2. If you have a question about any of these rules, or if you have a question about your ban, PM a mod or contact info@roblox.com. Do not post about your ban on the forum. If you post about your ban on the forum, you may get banned again.

3. You are expected to abide by the spirit of these rules. What does that mean? That means that if the rule says "Do not talk about purple things" and you post talking about violet things, or lavender things, then you will get banned. (No, you are not being forbidden from talking about purple things. That was just an example). Do not try to find loopholes in the rules. You will be banhammered if you do.

4. Don't cuss.
Period. It has no place in our community. Attempts to disguise bad language or bypass the language filters will not be tolerated.

5. Don't be a jerk.
You’re welcome to disagree with another member’s opinion but attacking (flaming) and insulting another member is not acceptable. Intentionally starting flame wars WILL cause you to be banned for a while.

You can say "I disagree, and here is why". You can NOT say "I disagree and I think you suck". You can say "I do not like racing games". You can NOT say "This player has built a racing game and I hate it".

5a. What is a personal attack? A personal attack is when you post about a Roblox player on the forum and talk about them in a negative way. This includes announcing that somebody scammed you, or that somebody is a hacker. DO NOT NAME NAMES. Linking to their profile is the same as naming their name.

6. No degrading racial comments are allowed.
I shouldn't even have to say this. Seriously, you guys. Don't hate.

7. No inappropriate references.
There’s no question that Internet is full of degrading inappropriate material and comments. Roblox is fully G-rated, it must be KEPT that way. This will get you instantly banned. If you are not sure if the thing you want to talk about it okay to talk about, PM a mod and ask. This means no talking about anything R-rated, drugs, or any dating topic (including furries).

7a. Do not respond to threads with inappropriate topics. If you do find an inappropriate thread, report it and then ignore it.

8. No Politics. No Religion.
We prefer that members not get involved in political or religious discussions because they often result in flaring tempers and flame wars. Yes, you may make a religious or political shirt. Yes, you may make a religious or political game. No, you may not talk about your political views or religious ideals on the forum. No exceptions.

9. No “this vs. that” posts (ie Ford vs Chevy).
These types of threads invoke strong opinions, flaring tempers, and often result in flame wars and mass penalties. These threads will ultimately end up being deleted.

10. No whining about moderation
This mostly applies to the operation and moderation of the online community. Members will be banned, threads removed, and so on based on the clearly defined rules. Publicly bemoaning the operation of the community and the way the rules are enforced will not put you in good favor with the moderators. If you have a legitimate concern or suggestion, PM a moderator. This also includes "pity threads", meaning ones proclaiming you're leaving, my cat died, etc.

10a. Do not post or discuss your ban history.

11. No spamming.
akdjfaskhj is spam. Posting the same thing over and over is spam. Responding to somebody with a short pointless comment like tl;dr or inb4b& is spam AND it's rude. Don't do this. If you are going to take the time to post on the forum, make sure that you actually have something to say.

11a. Post things on the appropriate forum. Scripting questions go on Scripting Help. Discussion about TV shows (including My Little Pony) goes on Movies/Books/TV. If you are not certain which forum you should post on, PM a mod and ask. Posts posted on the wrong forum may be moved or deleted without warning. Repeat posts may be flagged as spam.

12. No dangerous or harmful posts.
Posts that encourage members to participate in real-world activities that we deem to be harmful or dangerous to members will be deleted (i.e. lighting things on fire, jumping cars over people, deleting necessary computer files, etc.).

13. [REDACTED] You may talk about directly competing games.

14. No dating topics.
This isn't a dating help site. Keep topics about dating and relationships, be it online or not, out of here. Do not post asking for girlfriend advice. Do not post asking for a boyfriend. Do not post talking about the cute girl or boy in your class. Do not post asking how to ask somebody out. There are a lot of places online where you can talk about dating: Roblox is not one of those places. If you are not sure if it's okay to post, do not post it.

15. No Trading.
Use the RoblEX for currency trades (My ROBLOX --> Money --> Trade Currency) and the Trade System for item trades. No other trading is permitted.
THIS INCLUDES RAFFLES, PLAYER-RUN CONTESTS, GIVE-AWAYS, ETC. These are NOT allowed.

16. No offsite links. At all. None. No wikipedia, no YouTube, no fan sites. If the address does not start with http://www.roblox.com/, then you may not post it here. No exceptions.

17. Just because you know somebody who broke a rule and didn't get banned does not mean that you get to break that rule, too. Instead of complaining how unfair the mods are, go report the person who got away with breaking the rule.

18. Do not talk about 2012/the end of the world/Armageddon.
Some people get scared at the thought of the end of the world. There are little kids on this game - don't scare them.

19. These rules are not complete. They will be updated from time to time. Make sure you check back every few days to see if a new rule has been added.

RULES to Scripting xD i made up
1. No pwning others that say "STOP dont do that PLEASE"

2. Scripting is part Hacking too.

3. Dont ask for forom scripting as to hacking, admin, scripting xD, pwning, anything
WARNING: Ignore Rule #3 xD some noob made that up xD

bai
Report Abuse
ginahop1 is not online. ginahop1
Joined: 18 Feb 2012
Total Posts: 8
05 Oct 2012 07:27 AM
Can you give me a actual script please i need some scripting scripts.
I'm a scripting begginer and i think you are a pro at this.
i don't trust anyone else but you
so can you at-least give me a assassin, hammer, knife, ninja script please.
thank you
bye.
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
06 Oct 2012 01:56 AM
Troll much? :P
Thx for bumping AGAIN :D
Report Abuse
SoldierKiller111 is not online. SoldierKiller111
Joined: 26 Sep 2012
Total Posts: 5
24 Mar 2013 02:38 PM
game.Workspace:Destroy()

thats all i got...
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
25 Mar 2013 10:50 PM
Ok
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
06 Aug 2013 02:51 AM
Bawmp
Report Abuse
BK001 is not online. BK001
Joined: 23 Jul 2013
Total Posts: 1
22 May 2014 02:30 PM
p = game.Players:GetChildren()
s = game.Workspace.Spawnbrick
dead = 0

function winner()
dead = 0
for _, Player in pairs(game.Players:GetPlayers()) do
local Bux1 = Player.Alive
Bux1.Value = true
end
if game.Workspace.hardness.Value == "easy" then
game.Workspace.hardness.Value = "medium"
elseif game.Workspace.hardness.Value == "medium" then
game.Workspace.hardness.Value = "hard"
elseif game.Workspace.hardness.Value == "hard" then
game.Workspace.hardness.Value = "easy"
else
game.Workspace.hardness.Value = "easy"
end
print("Winner")
wait(1)
print("CONGRATULATIONS")
game.Workspace.Round.Value = 0
game.Workspace.Time.Value = 30
game.Workspace.TimeLeft.Value = 60
if game.Workspace:findFirstChild("Terrain1") then
game.Workspace.Terrain1:remove()
elseif game.Workspace:findFirstChild("Terrain2") then
game.Workspace.Terrain2:remove()
elseif game.Workspace:findFirstChild("Terrain3") then
game.Workspace.Terrain3:remove()
elseif game.Workspace:findFirstChild("Terrain4") then
game.Workspace.Terrain4:remove()
elseif game.Workspace:findFirstChild("Terrain5") then
game.Workspace.Terrain5:remove()
else
end
end

function death()
game.Workspace.hardness.Value = "easy"
if game.Workspace:findFirstChild("Terrain1") then
game.Workspace.Terrain1:remove()
elseif game.Workspace:findFirstChild("Terrain2") then
game.Workspace.Terrain2:remove()
elseif game.Workspace:findFirstChild("Terrain3") then
game.Workspace.Terrain3:remove()
elseif game.Workspace:findFirstChild("Terrain4") then
game.Workspace.Terrain4:remove()
elseif game.Workspace:findFirstChild("Terrain5") then
game.Workspace.Terrain5:remove()
else
end
game.Workspace.Round.Value = 0
local p = game.Players:GetChildren()
for k, v in pairs(p) do
if not v then return end
if not v.Character then return end
if not v.Character.Humanoid then return end
v.Character.Humanoid.Health = 0
wait(1)
for _, Player in pairs(game.Players:GetPlayers()) do
local Bux1 = Player.Alive
Bux1.Value = true
dead = 0
end
end
end

----------------------------------------------------------------------------
function round10()
game.Workspace.Won.Value = false
game.Workspace.TimeLeft.Value = 150
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 10
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude10:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude10:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 1000)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude10:remove()
print("Death")
death()
else
print("Winnerzzzzzzzzzz")
winner()
end
end
---------------------------------------------------------------------------------------------------------------
function round9()
game.Workspace.TimeLeft.Value = 100
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 9
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude9:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude9:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 900)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude8:remove()
print("Death")
death()
else
round10()
print("run round 10")
end
end

---------------------------------------------------------------------------------------------------------------
function round8()
game.Workspace.TimeLeft.Value = 95
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 8
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude8:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude8:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 800)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude8:remove()
print("Death")
death()
else
round9()
print("run round 9")
end
end

---------------------------------------------------------------------------------------------------------------

function round7()
game.Workspace.TimeLeft.Value = 90
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 7
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude7:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude7:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 700)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude7:remove()
print("Death")
death()
else
round8()
print("run round 8")
end
end
---------------------------------------------------------------------------------------------------------------

function round6()
game.Workspace.TimeLeft.Value = 85
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 6
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude6:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value -
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude6:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 600)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude6:remove()
print("Death")
death()
else
round7()
print("run round 7")
end
end


----------------------------------------------------------------------------------------------------------------
function round5()
game.Lighting.Terrain.Terrain5:clone().Parent = game.Workspace
game.Workspace.TimeLeft.Value = 80
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 5
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude5:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude5:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 500)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude5:remove()
print("Death")
if game.Workspace:findFirstChild("Terrain5") then
game.Workspace.Terrain5:remove()
end
death()
else
if game.Workspace:findFirstChild("Terrain5") then
game.Workspace.Terrain5:remove()
end
round6()
print("run round 6")
end
end


---------------------------------------------------------173 SECONDS

function round4()
game.Lighting.Terrain.Terrain4:clone().Parent = game.Workspace
game.Workspace.TimeLeft.Value = 75
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 4
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude4:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude4:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 400)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude4:remove()
print("Death")
if game.Workspace:findFirstChild("Terrain4") then
game.Workspace.Terrain4:remove()
end
death()
else
if game.Workspace:findFirstChild("Terrain4") then
game.Workspace.Terrain4:remove()
end
round5()
print("run round 5")
end
end


------------------------------------------------
function round3()
game.Lighting.Terrain.Terrain3:clone().Parent = game.Workspace
game.Workspace.TimeLeft.Value = 70
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 3
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude3:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude3:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 300)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude3:remove()
print("Death")
death()
if game.Workspace:findFirstChild("Terrain3") then
game.Workspace.Terrain3:remove()
end
else
if game.Workspace:findFirstChild("Terrain3") then
game.Workspace.Terrain3:remove()
end
round4()
print("run round 4")
end
end
--------------------------------------------------
function round2()
game.Lighting.Terrain.Terrain2:clone().Parent = game.Workspace
game.Workspace.TimeLeft.Value = 65
game.Workspace.Time.Value = 10
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 2
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude2:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude2:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 200)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude2:remove()
print("Death")
if game.Workspace:findFirstChild("Terrain2") then
game.Workspace.Terrain2:remove()
end
death()
else
if game.Workspace:findFirstChild("Terrain2") then
game.Workspace.Terrain2:remove()
end
round3()
print("run round 3")
end
end
--------------------------------------------------

function round1()
game.Lighting.Terrain.Terrain1:clone().Parent = game.Workspace
game.Workspace.TimeLeft.Value = 60
game.Workspace.Time.Value = 20
game.Workspace.Gui.Value = 0
game.Workspace.Round.Value = 1
game.Workspace.Won.Value = false
wait(1)
game.Workspace.Gui.Value = 1
wait(1)
game.Workspace.Gui.Value = 0
repeat
wait(1)
game.Workspace.Time.Value = game.Workspace.Time.Value - 1
until game.Workspace.Time.Value == 0
for _, Player in pairs(game.Players:GetPlayers()) do
local Bux1 = Player.Alive
Bux1.Value = true
end
----------------------------------------------------- TELEPORT
p = game.Players:GetChildren()
for i = 1, #p do
if game.Workspace:findFirstChild(p[i].Name) then
p[i].Character.Torso.CFrame = s.CFrame * CFrame.new(math.random(-3,3),8,math.random(-3,3))
wait(5)
end
end
------------------------------------------------------ TELEPORT
game.Workspace.Gui.Value = 2
wait(1)
game.Workspace.Gui.Value = 0
----------------------------
clone = game.Lighting:findFirstChild(game.Workspace.hardness.Value).Dude1:clone()
clone.Parent = game.Workspace
clone:MakeJoints()
repeat
wait(1)
game.Workspace.TimeLeft.Value = game.Workspace.TimeLeft.Value - 1
Players = game.Players:GetChildren()
for i = 1, #Players do
if Players[i]:findFirstChild("Alive").Value ~= true then
print("Dead")
dead = dead + 1
end
if dead == #Players then
game.Workspace.TimeLeft.Value = 0
dead = 0
else
end
end
if game.Workspace.Won.Value == true then
game.Workspace.Dude1:remove()
game.Workspace.TimeLeft.Value = 0
-------------------------------------------------------MODIFY BELOW
for i,v in pairs(game.Players:GetPlayers()) do
if v.Alive.Value == true then
game.Workspace.TimeLeft.Value = 0
local Bux = v.leaderstats.Bux
Bux.Value = (Bux.Value + 100)
end
end
end
---------------------------------------------------- MODIFY ABOVE
until game.Workspace.TimeLeft.Value == 0
if game.Workspace.TimeLeft.Value == 0 and game.Workspace.Won.Value == false then
game.Workspace.Dude1:remove()
print("Death")
if game.Workspace:findFirstChild("Terrain1") then
game.Workspace.Terrain1:remove()
end
death()
else
if game.Workspace:findFirstChild("Terrain1") then
game.Workspace.Terrain1:remove()
end
round2()
print("run round 2")
end
end



while true do
wait(1)
if game.Workspace.Round.Value == 0 then
round1()
else
wait()
end
end
Report Abuse
Manulife is not online. Manulife
Joined: 16 Oct 2013
Total Posts: 238
19 Sep 2014 11:37 PM
k
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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