sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 15 May 2014 02:50 PM |
I want a script that does this in order:
Display message at the top saying "Use this time to get a cookie" Wait 50 seconds Remove message Put 1 random player on a team called "The Ghost" Put everyone else in the lobby on a team called "Snipers" Teleport "Snipers" to a specific location (eg. 834,362,26) and give them a sniper. Teleport "The Ghost" to a specific location (eg. 834,252,23) and make body transparency 0.5 Set timer for 100 seconds ------------------------------------------------------ If "The Ghost" dies before the timer ends, display message saying "Snipers win". If "The Ghost" reaches a block called "End" before 100 seconds ends, display message saying "The Ghost wins". If "The Ghost" doesn't reach a block called "End" or die before 100 seconds, display message saying "Snipers win". After any of these messages have displayed, kill everyone. -------------------------------------------------------- Repeat.
I see a TLDR coming on... |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:10 PM |
Nope, no TLDR, however
Nobody is going to MAKE it for you. That isn't what this forum does. We fix script failiures |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:11 PM |
You've posted this twice. Nobody will make a whole game for you. Stop trying. |
|
|
| Report Abuse |
|
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 15 May 2014 03:23 PM |
Islandmaker2012 is making it for me right now.
|
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:25 PM |
--note that your gonna have to edit some of this, also youll need to add more to make it a real game, but this is functional--
--[[game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) c.Humanoid.Changed:connect(function() c.Humanoid.Jump = false c.Torso.Velocity = Vector3.new(c.Torso.Velocity.X,0,c.Torso.Velocity.Z) end) end) end)--]] --create the neutral team-- lobbyTeam = Instance.new("Team",game:GetService("Teams")) lobbyTeam.Name = "Lobby" lobbyTeam.AutoAssignable = true
function ChangeTeam(plr) plr.TeamColor = BrickColor.Random() wait(1.5) plr.TeamColor = lobbyTeam.TeamColor end game.Players.PlayerAdded:connect(ChangeTeam)
--create a model to hold the spawns in-- spawns = Instance.new("Model",Workspace) spawns.Name = "Spawns" --Create a lobby-- lobby = Instance.new("Model",Workspace) lobby.Name = "Lobby" spawn = Instance.new("SpawnLocation",lobby) spawn.Name = "Spawn" spawn.Neutral = true spawn.TeamColor = BrickColor.new("Really black") spawn.CFrame = CFrame.new(0,100,0) base = Instance.new("Part",lobby) base.Size = Vector3.new(500,1,500) base.Anchored = true base.CFrame = CFrame.new(0,99,0) --Create the teams-- wait() teams = game:GetService("Teams") gt,st = Instance.new("Team",teams),Instance.new("Team",teams) gt.Name,st.Name = "Ghost","Snipers" gt.TeamColor,st.TeamColor = BrickColor.new("Really white"),BrickColor.new("Really red") --time to start the game-- repeat wait() until game.Players.NumPlayers>=3 while wait(50) do
pcall(function() spawns:ClearAllChildren() end)
--Create the spawns-- spawn1 = Instance.new("Part",spawns) spawn1.Anchored = true spawn1.Size = Vector3.new(3,1,3) spawn1.CFrame = CFrame.new(NUMBERXHERE,1,NUMBERZHERE)--edit this,keep the y at 1 spawn2 = Instance.new("Part",spawns) spawn2.Anchored = true spawn2.Size = Vector3.new(3,1,3) spawn2.CFrame = CFrame.new(NUMBERXHERE,1,NUMBERZHERE)--edit this,keep the y at 1 --Time to set the plrs teams--
for I,plr in pairs(game.Players:GetPlayers()) do plr.TeamColor = game.Teams.Snipers.TeamColor c = plr.Character or plr.CharacterAdded:wait() c:MoveTo(spawn1.Position) game.Lighting.Sniper:clone().Parent = plr.Backpack end
Plrs = game.Players:GetPlayers() Ghost = Plrs[math.random(1,#Plrs)] Ghost.TeamColor = game.Teams.Ghost.TeamColor gc = Ghost.Character or Ghost.CharacterAdded:wait() gc:MoveTo(spawn2.Position) gc.Torso.Transparency = 0.5 gc.Died:connect(function() local m = Instance.new("Message",Workspace) m.Text = "Snipers win!" game.Debris:AddItem(m,5) for I,plr in pairs(game.Players:GetPlayers()) do plr.TeamColor = game.Teams.Lobby.TeamColor plr:LoadCharacter() c = plr.Character or plr.CharacterAdded:wait() c:MoveTo(lobby.Spawn.Position) end waiting = false end) Time = 30 repeat wait(1) Time=Time-1 until Time == 0 or not waiting if not waiting then else for I,plr in pairs(game.Players:GetPlayers()) do plr.TeamColor = game.Teams.Lobby.TeamColor plr:LoadCharacter() c = plr.Character or plr.CharacterAdded:wait() c:MoveTo(lobby.Spawn.Position) end end end |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:25 PM |
| island what the hell are you doing ... |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:27 PM |
oh @sarim
add repeat until Workspace==nil to the top to make sure it doesn't error |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:28 PM |
island, please stop this... you're encouraging more lazy idiots to come here and have a game made for them.
|
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:28 PM |
| Dont, it crashes the game. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:29 PM |
@sensei
don't ruin my moment qq
and @ver
idk, I was bored? |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:30 PM |
Sensei, what are you talking about? I'm pretty sure it opens up the debug console and checks for errors before continuing with the script. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 May 2014 03:30 PM |
@phys
exactly, it waits until workspace is not nil, =--IS equal to ==--is NOT equal to |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:32 PM |
You are correct island. I am appreciative that you are helping him, however it is encouraging people to come here if they want scripts made for them, just as VerifiedName mentioned. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:33 PM |
== is checking if it's not nil/there.
~= is checking if it's nil/not there. |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:33 PM |
Sensei, you're talking about regular terms here. We're talking about the debug term. It does open the debug console. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:34 PM |
| And exactly how do you open up the 'debug console'. Explains how and why it makes sense. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:35 PM |
sensei, you obviously dont know what you're doing....
(3000th post i think?)
|
|
|
| Report Abuse |
|
|
| |
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:36 PM |
I agree with verified. It's a secret command which was encoded in an extreme debug scripting language handcrafted by Shedletsky himself. It opens the magical debug console and checks for errors before continuing with the script. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 03:38 PM |
magical debug console extreme debug scripting language handcrafted by Shedletsky himself
If @OP doesnt think this is a troll, then that's.. well, stupid. |
|
|
| Report Abuse |
|
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
| |
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
|
| 15 May 2014 03:44 PM |
Yes. I am very mad at this current moment. I can not even comprehend the stupidity you would need to possess to not know the secret debug command. |
|
|
| Report Abuse |
|
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 16 May 2014 03:57 PM |
The script doesnt work?
At the start I wrote print "hello" At the end of it, before it says end, i wrote print "hello2"
I waited 1 minute and it only said hello in the output bar.
|
|
|
| Report Abuse |
|
|