|
| 12 Jan 2014 08:06 AM |
while true do wait(5) game.Workspace.manofarmy12.Torso.Velocity = Vector3.new(0, 9999, 0) wait(10) game.Workspace.manofarmy12.Head:remove() end
After awhile I keep dieing; when I leave the server and join back I keep dieing again after awhile...
Anyways to stop it? |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 12 Jan 2014 08:08 AM |
val = true
while val do wait(5) game.Workspace.manofarmy12.Torso.Velocity = Vector3.new(0, 9999, 0) wait(10) game.Workspace.manofarmy12.Head:remove() end
val = false |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jan 2014 08:29 AM |
put // it makes a comment so the code doesn't run |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2014 08:30 AM |
| ^Because I'm sure that the solution he wanted |
|
|
| Report Abuse |
|
|
NiceCoder
|
  |
| Joined: 15 Oct 2012 |
| Total Posts: 6593 |
|
|
| 12 Jan 2014 08:33 AM |
while true do wait(5) game.Workspace.manofarmy12.Torso.Velocity = Vector3.new(0, 9999, 0) wait(10) game.Workspace.manofarmy12.Head:remove() end
wait(100) -- change 100 to the amount of time you want the script to run in seconds game.Workspace.NameOfThisScript:Destroy()
--Idk if that will work, but yolo |
|
|
| Report Abuse |
|
|
NiceCoder
|
  |
| Joined: 15 Oct 2012 |
| Total Posts: 6593 |
|
|
| 12 Jan 2014 08:33 AM |
ALSO, wouldn't it not be game.Players.manofarmy12.Torso ... etc ? |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jan 2014 08:34 AM |
| void if it doesn't work give him a solution |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2014 08:37 AM |
Fine
brue was closest
local killhim = true
coroutine.resume(coroutine.create(function() while killhim do
wait(5) if workspace:findFirstChild("manofarmy12") then game.Workspace.manofarmy12.Torso.Velocity = Vector3.new(0, 9999, 0) end wait(10) if workspace:findFirstChild("manofarmy12") then game.Workspace.manofarmy12.Head:remove() end end end))
wait(200) killhim = false --should stop after 200 seconds. |
|
|
| Report Abuse |
|
|