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 » Club Houses » Let's Make a Deal
Home Search
 

Re: LMAD SCRIPTERS I CALL UPON U

Previous Thread :: Next Thread 
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Apr 2015 11:26 AM
---[[ DECLARING FUNCTIONS ---]]
local isnotgame = true
local gametime = script.Value
local gun = game.ReplicatedStorage.Revolver
local knife = game.ReplicatedStorage.Knife
local car = true
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(wher)
if wher == "lobby" then
for i,v in pairs(game.Players:GetChildren()) do
v.Character:MoveTo(Vector3.new(4.6 + math.random(5), 12, (26.6 + math.random(10))))
wait()
end
elseif wher == "game" then
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
end
local function killAll()
local b = game.Players:GetChildren()
for i = 1,#b do
wait()
b[i].Character.Humanoid.Health = 0
end
end
--[[ ACTUAL CODE ]]--
while wait() do
if isnotgame then
if game.Players.NumPlayers > 1 then
isnotgame = false
wait(13)
gametime.Value = 120
moveAll("game")
local murderer, sheriff = getspecial()
gun:Clone().Parent = sheriff.Backpack
knife:Clone().Parent = murderer.Backpack
for i= 120, 0, -1 do
wait(1)
gametime.Value = i
--[[gametime.Changed:connect(function()
game.StarterGui.ScreenGui.TextLabel.Text = "time left:"..i
end)]]

if murderer ~= nil and murderer.Character.Humanoid.Health <= 0 then
killAll()
isnotgame = true
gametime.Value = nil
murderer, sheriff = nil, nil
i = 0
local int = Instance.new("Hint", workspace)
int.Text = "Murderer has died!"
wait(5)
int:Destroy()
elseif gametime.Value<=0 then
print('game is over!')
moveAll("lobby")
murderer, sheriff = nil,nil
gametime.Value=nil
isnotgame=true
local swg = Instance.new("Hint", workspace)
swg.Text = "Game time is up!"
wait(5)
swg:Destroy()
end
end
end
end
end

its not looping like it supposed to

it happens every 120 seconds but it can either can happen every 120 seconds or when murder dies but when murder dies it doesnt restart

Thread By, Coinman001
Report Abuse
BlockworkOrange is not online. BlockworkOrange
Joined: 22 Dec 2012
Total Posts: 11467
11 Apr 2015 11:28 AM
from what im reading its not an effective trade or snipe bot
Report Abuse
JDrax is not online. JDrax
Joined: 19 Feb 2010
Total Posts: 2140
11 Apr 2015 11:29 AM
".Players:GetChildren()"


I've said too much
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Apr 2015 11:35 AM

thats not the problem and what r u even saying
Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Apr 2015 11:39 AM
noone here knows how to script

Thread By, Coinman001
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 11:40 AM
'while wait() do'

I've said too much
Report Abuse
JDrax is not online. JDrax
Joined: 19 Feb 2010
Total Posts: 2140
11 Apr 2015 11:42 AM
yeah give me my siggy back


I've said too much
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 11:42 AM
just make a boolvalue inside the script called 'game'



local game = script.game

game.Changed:connect(function(isgame)
if isgame then
...
end
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 11:43 AM
forgot an end

end)
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 11:55 AM
---[[ DECLARING FUNCTIONS ---]]
local isnotgame = true
local gametime = script.Value
local gun = game.ReplicatedStorage.Revolver
local knife = game.ReplicatedStorage.Knife
local car = true
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(wher)
if wher == "lobby" then
for i,v in pairs(game.Players:GetChildren()) do
v.Character:MoveTo(Vector3.new(4.6 + math.random(5), 12, (26.6 + math.random(10))))
wait()
end
elseif wher == "game" then
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
end
local function killAll()
local b = game.Players:GetChildren()
for i = 1,#b do
wait()
b[i].Character.Humanoid.Health = 0
end
end
--[[ ACTUAL CODE ]]--
while wait() do
if isnotgame then
if game.Players.NumPlayers > 1 then
isnotgame = false
wait(13)
gametime.Value = 120
moveAll("game")
_G.murderer, sheriff = getspecial()
gun:Clone().Parent = _G.sheriff.Backpack
knife:Clone().Parent =_G.murderer.Backpack
for i= 120, 0, -1 do
wait(1)
checkmurderer()
gametime.Value = _G.i
end
end



checkmurderer = function()
if _G.murderer ~= nil and murderer.Character.Humanoid.Health <= 0 then
killAll()
isnotgame = true
gametime.Value = nil
murderer, sheriff = nil, nil
_G.i = 0
local int = Instance.new("Hint", workspace)
int.Text = "Murderer has died!"
wait(5)
int:Destroy()
elseif gametime.Value<=0 then
print('game is over!')
moveAll("lobby")
murderer, sheriff = nil,nil
gametime.Value=nil
isnotgame=true
local swg = Instance.new("Hint", workspace)
swg.Text = "Game time is up!"
wait(5)
swg:Destroy()
end
end
end
end
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 11:58 AM
mb

and I make checkmurderer a function that runs every loop



---[[ DECLARING FUNCTIONS ---]]
local isnotgame = true
local gametime = script.Value
local gun = game.ReplicatedStorage.Revolver
local knife = game.ReplicatedStorage.Knife
local car = true
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(wher)
if wher == "lobby" then
for i,v in pairs(game.Players:GetChildren()) do
v.Character:MoveTo(Vector3.new(4.6 + math.random(5), 12, (26.6 + math.random(10))))
wait()
end
elseif wher == "game" then
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
end
local function killAll()
local b = game.Players:GetChildren()
for i = 1,#b do
wait()
b[i].Character.Humanoid.Health = 0
end
end
--[[ ACTUAL CODE ]]--
while wait() do
if isnotgame then
if game.Players.NumPlayers > 1 then
isnotgame = false
wait(13)
gametime.Value = 120
moveAll("game")
_G.murderer, sheriff = getspecial()
gun:Clone().Parent = _G.sheriff.Backpack
knife:Clone().Parent =_G.murderer.Backpack
for i= 120, 0, -1 do
wait(1)
checkmurderer()
gametime.Value = _G.i
end
end



checkmurderer = function()
if _G.murderer ~= nil and _G.murderer.Character.Humanoid.Health <= 0 then
killAll()
isnotgame = true
gametime.Value = nil
_G.murderer, sheriff = nil, nil
_G.i = 0
local int = Instance.new("Hint", workspace)
int.Text = "Murderer has died!"
wait(5)
int:Destroy()
elseif gametime.Value<=0 then
print('game is over!')
moveAll("lobby")
_G.murderer, sheriff = nil,nil
gametime.Value=nil
isnotgame=true
local swg = Instance.new("Hint", workspace)
swg.Text = "Game time is up!"
wait(5)
swg:Destroy()
end
end
end
end

Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
11 Apr 2015 12:10 PM
---[[ DECLARING FUNCTIONS ---]]
local isnotgame = true
local gametime = script.Value
local gun = game.ReplicatedStorage.Revolver
local knife = game.ReplicatedStorage.Knife
local car = true
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(wher)
if wher == "lobby" then
for i,v in pairs(game.Players:GetChildren()) do
v.Character:MoveTo(Vector3.new(4.6 + math.random(5), 12, (26.6 + math.random(10))))
wait()
end
elseif wher == "game" then
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
end
local function killAll()
local b = game.Players:GetChildren()
for i = 1,#b do
wait()
b[i].Character.Humanoid.Health = 0
end
end
--[[ ACTUAL CODE ]]--
while wait() do
if isnotgame then
if game.Players.NumPlayers > 1 then
isnotgame = false
wait(13)
gametime.Value = 120
moveAll("game")
_G.murderer, sheriff = getspecial()
gun:Clone().Parent = _G.sheriff.Backpack
knife:Clone().Parent =_G.murderer.Backpack
for i= 120, 0, -1 do
wait(1)
if (checkmurderer()) then
break;
gametime.Value = _G.i
end
end



checkmurderer = function()
if _G.murderer ~= nil and _G.murderer.Character.Humanoid.Health <= 0 then
return true
killAll()
isnotgame = true
gametime.Value = nil
_G.murderer, sheriff = nil, nil
_G.i = 0
local int = Instance.new("Hint", workspace)
int.Text = "Murderer has died!"
wait(5)
int:Destroy()
elseif gametime.Value<=0 then
print('game is over!')
moveAll("lobby")
_G.murderer, sheriff = nil,nil
gametime.Value=nil
isnotgame=true
local swg = Instance.new("Hint", workspace)
swg.Text = "Game time is up!"
wait(5)
swg:Destroy()
end
end
end
end
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Apr 2015 12:19 PM

local isnotgame = true
local gametime = script.Value
local gun = game.ReplicatedStorage.Revolver
local knife = game.ReplicatedStorage.Knife
local car = true
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(wher)
if wher == "lobby" then
for i,v in pairs(game.Players:GetChildren()) do
v.Character:MoveTo(Vector3.new(4.6 + math.random(5), 12, (26.6 + math.random(10))))
wait()
end
elseif wher == "game" then
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
end
local function killAll()
local b = game.Players:GetChildren()
for i = 1,#b do
wait()
b[i].Character.Humanoid.Health = 0
end
end
--[[ ACTUAL CODE ]]--
while wait() do
if isnotgame then
if game.Players.NumPlayers > 1 then
isnotgame = false
wait(13)
gametime.Value = 120
moveAll("game")
local murderer, sheriff = getspecial()
gun:Clone().Parent = sheriff.Backpack
knife:Clone().Parent = murderer.Backpack
for i= 120, 0, -1 do
wait(1)
gametime.Value = i
--[[gametime.Changed:connect(function()
game.StarterGui.ScreenGui.TextLabel.Text = "time left:"..i
end)]]

if murderer ~= nil and murderer.Character.Humanoid.Health <= 0 then
killAll()
isnotgame = true
gametime.Value = nil
murderer, sheriff = nil, nil
local int = Instance.new("Hint", workspace)
int.Text = "Murderer has died!"
wait(5)
int:Destroy()
break;
elseif gametime.Value<=0 then
print('game is over!')
moveAll("lobby")
murderer, sheriff = nil,nil
gametime.Value=nil
isnotgame=true
local swg = Instance.new("Hint", workspace)
swg.Text = "Game time is up!"
wait(5)
swg:Destroy()
end
end
end
end
end

Thread By, Coinman001
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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