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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do I stop this script?

Previous Thread :: Next Thread 
manofarmy12 is not online. manofarmy12
Joined: 15 Mar 2010
Total Posts: 7313
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 is not online. 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
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
12 Jan 2014 08:26 AM
^ wont change anything
Report Abuse
PrinceKallie is not online. PrinceKallie
Joined: 01 Aug 2008
Total Posts: 344
12 Jan 2014 08:29 AM
put //
it makes a comment so the code doesn't run
Report Abuse
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
12 Jan 2014 08:30 AM
^Because I'm sure that the solution he wanted
Report Abuse
NiceCoder is not online. 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 is not online. 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
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
12 Jan 2014 08:34 AM
^wont work either
Report Abuse
PrinceKallie is not online. PrinceKallie
Joined: 01 Aug 2008
Total Posts: 344
12 Jan 2014 08:34 AM
void if it doesn't work give him a solution
Report Abuse
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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