|
| 04 Apr 2015 07:04 PM |
---[[ DECLARING FUNCTIONS ---]] local function getspecial() local p = game.Players:GetPlayers() local rndom1 = table.remove(p,math.random(1,#p)) local rndom2 = table.remove(p,math.random(1,#p)) return rndom1,rndom2 end local function moveAll() for i,v in pairs(game.Players:GetChildren()) do v.Character:MoveTo(Vector3.new(46.2 + math.random(5), 75, (-42.6 + math.random(10)))) wait() end end
--[[[ VARIABLE DECLARATIONS ---]] local isnotgame = true local gametime = script.Value local gun = game.ReplicatedStorage.Revolver local knife = game.ReplicatedStorage.Knife local car = true
--[[ ACTUAL CODE ]]-- repeat if isnotgame then if game.Players.NumPlayers > 1 then isnotgame = false wait(3) gametime.Value = 120 moveAll() local murderer, sheriff = getspecial() gun:Clone().Parent = sheriff.Backpack knife:Clone().Parent = murderer.Backpack for i= gametime, 0, -1 do wait(1) gametime.Value = i gametime.Changed:connect(function() game.StarterGui.ScreenGui.TextLabel.Text = "time left:"..i end) if gametime.Value == 0 or murderer.Character.Humanoid.Health == 0 then for i,v in pairs(game.Players.NumPlayers) do v.Character.Humanoid.Health = 0 end isnotgame = true end end end end wait(5) until car == false
Thread By, Coinman001 |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 04 Apr 2015 07:07 PM |
#1, stop trying to make a murderer game
#2, the last thing we need is a script to handpick problems from without an output
#3, stop wearing that dreaded shaggy
#4, did you seriously remake the thread just to fix the title and include the variable declaration instead of doing this the first time?
#5, nothing, I just like #5, its kinky |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2015 07:08 PM |
murder game is a test
no output errors noob
shaggys 4 lief
Thread By, Coinman001 |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
| |
|
|
| 04 Apr 2015 07:10 PM |
ok im sorry shaggy is bad
Thread By, Coinman001 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
Bobbrige
|
  |
| Joined: 27 Jul 2010 |
| Total Posts: 411 |
|
|
| 04 Apr 2015 08:19 PM |
| try replacing 'repeat' with 'while true do' |
|
|
| Report Abuse |
|
|
| |
|