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: Why is my script not looping right!!!!!!!

Previous Thread :: Next Thread 
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:14 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")
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

ye so it the round should happen every 2 minutes or when the murderer dies but it only happens every 2 minutes and ive tested it a lot

help pls

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:19 PM
fsda

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:20 PM


Thread By, Coinman001
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
06 Apr 2015 04:20 PM
scripters: ' we wont help murder games'
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:21 PM
xd ikr

Thread By, Coinman001
Report Abuse
Terintino is not online. Terintino
Joined: 27 Oct 2014
Total Posts: 3662
06 Apr 2015 04:21 PM
cuz ur weak and u started not posting on lmad as much

HaHa +12,122 Posts- 9Millionaire, mxgos, 9MiIIi
Report Abuse
Vuxz is not online. Vuxz
Joined: 23 Dec 2011
Total Posts: 7217
06 Apr 2015 04:22 PM
Honestly, I'm not going to help, I hate murder games.
If you want to make a murder game, use Stickmasterluke's template. (lol)
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:23 PM
no vux it a test

i not legit making 1

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:26 PM
adfs

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:27 PM
sdfa

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:28 PM

sdfa
Thread By, Coinman001
Report Abuse
CookingCereal is not online. CookingCereal
Joined: 10 Nov 2010
Total Posts: 663
06 Apr 2015 04:29 PM
cool nice limited
the script limited
how about 2014 valentines day cap for it


Cereal is just a simple matter of it being cooked ~CookingCereal
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:30 PM
wat

Thread By, Coinman001
Report Abuse
Foliant is not online. Foliant
Joined: 13 Dec 2014
Total Posts: 9515
06 Apr 2015 04:32 PM
dubstep is good  
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:32 PM
not when u listen to ti

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 04:37 PM
web help im calling upon u

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 05:16 PM
bump
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 06:59 PM

adsf
Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 07:03 PM
asdf

Thread By, Coinman001
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
06 Apr 2015 07:17 PM
dfas

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