A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 10th 2014, 11:43 am by naknak

» local scripts?
July 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 11:36 am by naknak

» Hi. I am new here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
November 26th 2013, 3:33 pm by Keanu73

» Improve Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez


Share | 
 

 Loop Kill that never fails

Go down 
Go to page : 1, 2  Next
AuthorMessage
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Loop Kill that never fails   July 30th 2010, 10:55 pm

Code:
while wait() do
if game.Workspace:findFirstChild("Player") and game.Workspace.Player:findFirstChild("Head") then
game.Workspace.Player.Head:remove()
end
end
Back to top Go down
Prodigy
Administrator
Administrator


Posts : 58
Join date : 2010-07-28

PostSubject: Re: Loop Kill that never fails   July 30th 2010, 11:01 pm

Thanks. Does
Code:
While True do
ever fail?
Back to top Go down
http://roblox.forumclan.com
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Loop Kill that never fails   July 30th 2010, 11:06 pm

That is a loop, it never can error itself unless you type it wrong
Back to top Go down
slayer9365
Expert Scripter
Expert Scripter
avatar

Posts : 233
Join date : 2010-07-31
Age : 23

PostSubject: Re: Loop Kill that never fails   July 31st 2010, 3:19 am

Roboysthename wrote:
Thanks. Does
Code:
While True do
ever fail?

well that would fail, you have while and true capitalized.
Back to top Go down
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Loop Kill that never fails   July 31st 2010, 9:01 am

oh yeah, that is right...
Back to top Go down
Guest
Guest



PostSubject: Re: Loop Kill that never fails   July 31st 2010, 6:50 pm

I'm guessing you would change "Player" to the person you would like to loopkill?
Back to top Go down
Prodigy
Administrator
Administrator


Posts : 58
Join date : 2010-07-28

PostSubject: Re: Loop Kill that never fails   July 31st 2010, 7:56 pm

That's correct LegoDude
Back to top Go down
http://roblox.forumclan.com
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: Re: Loop Kill that never fails   August 2nd 2010, 11:26 am

im sorry but that does error out because there will be now more heads when the people are all dead so it breaks/Ends its process
Back to top Go down
http://ProjectArcher.com
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: Re: Loop Kill that never fails   August 2nd 2010, 11:27 am

i mean no heads xD
Back to top Go down
http://ProjectArcher.com
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: Re: Loop Kill that never fails   August 2nd 2010, 11:31 am

and they can easily remove the script thats nothing try this unremovable loopkill
and i can break urs with this easily
workspace.Name = "LOL!"
wait(4)
workspace.Name = "Workspace"

Code:

script.Parent = nil
player = ""--person to be loopkilled
while true do
if game:GetService("Players")[player] ~= nil then
game:GetService("Players")[player].Character:BreakJoints()
end
wait(3)
end
Back to top Go down
http://ProjectArcher.com
slayer9365
Expert Scripter
Expert Scripter
avatar

Posts : 233
Join date : 2010-07-31
Age : 23

PostSubject: Re: Loop Kill that never fails   August 2nd 2010, 5:10 pm

Let me attempt to correct this. The first one will error due to incorrect sintax, and it would crash ROBLOX because of a wait problem.
Code:

local player = "PlayerName"

while wait() do
if game.Players:findFirstChild(player) then
if game.Players[player].Character:findFirstChild("Head") then
game.Players[player].Character.Head:remove()
end
end
end
Back to top Go down
Guest
Guest



PostSubject: Re: Loop Kill that never fails   November 13th 2010, 6:16 pm

Victim = "Builderboy202"
loop = true
while loop do
wait()
plyr = game:GetService("Players"):FindFirstChild(Victim)
if plyr~=nil then
hd = plyr.Character:FindFirstChild("Humanoid")
if h~=nil then
h.Head.Parent = game:GetService("Debris")
else
print("Errors occured")
end
end
end
Parents the head to the Debris, this script cant possibly brake. also you can add a command to make loop = false to halt the script without braking it
Back to top Go down
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Loop Kill that never fails   November 14th 2010, 4:51 pm

Cool
Back to top Go down
Guest
Guest



PostSubject: Re: Loop Kill that never fails   November 14th 2010, 5:13 pm

**Correction I accidently hit the 'd' key while typing this script**

--------------------------------------------------------------------------------

Victim = "Builderboy202"
loop = true
while loop do
wait()
plyr = game:GetService("Players"):FindFirstChild(Victim)
if plyr~=nil then
h= plyr.Character:FindFirstChild("Humanoid")
if h~=nil then
h.Head.Parent = game:GetService("Debris")
else
print("Errors occured")
end
end
end
Parents the head to the Debris, this script cant possibly brake. also you can add a command to make loop = false to halt the script without braking it
Back to top Go down
Guest
Guest



PostSubject: Re: Loop Kill that never fails   January 4th 2011, 2:54 pm

@ correction

i was just about 2 say when i read.....
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: Loop Kill that never fails   January 6th 2011, 7:56 am

this is a shorter script:

Code:
while wait() do
for _,player in ipairs(game.Players:GetChildren())
player.Character:BreakJoints()
end
end

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter


Posts : 393
Join date : 2011-01-17

PostSubject: Re: Loop Kill that never fails   January 27th 2011, 10:39 pm

you can just crash roblox with a special function. dont ask me what it is. im working on a special script
Back to top Go down
http://hackthissite.org
Supernapalm
Expert Scripter
Expert Scripter


Posts : 393
Join date : 2011-01-17

PostSubject: Re: Loop Kill that never fails   January 27th 2011, 10:40 pm

oh, and its not about orbital systems (for those of you who know about my project)
Back to top Go down
http://hackthissite.org
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: Loop Kill that never fails   January 29th 2011, 8:02 am

orbital systems are easy. :P

while true do
for i = 1, 360 do
wait()
moon.CFrame = planet.CFrame*CFrame.Angles(0,0,math.rad(i))*CFrame.new(0,0,30)
end
end

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: Loop Kill that never fails   January 29th 2011, 8:05 am

function crashcode()
return "while true do end"
end
print("crashing server in 5 seconds.")
wait(5)
loadstring(crashcode())()

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter


Posts : 393
Join date : 2011-01-17

PostSubject: Re: Loop Kill that never fails   January 29th 2011, 7:25 pm

Code:
while true do
for i = 1, 360 do
wait()
moon.CFrame = planet.CFrame*CFrame.Angles(0,0,math.rad(i))*CFrame.new(0,0,30)
end
end

yes, but do you know how it works? (not to mention searching "orbital systems" on free models to paste it here is kind of noobish)
Back to top Go down
http://hackthissite.org
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: Loop Kill that never fails   March 11th 2011, 8:44 pm

even more cool would to have dynamic light shining on that object. XD

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
m27frogy
The Garbageman
avatar

Posts : 336
Join date : 2011-06-23

PostSubject: Re: Loop Kill that never fails   June 24th 2011, 2:41 pm

I haven't been able to find a reliable way of creating light, but that would be awesome!
Back to top Go down
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: Re: Loop Kill that never fails   July 16th 2011, 5:45 pm

No this is never failing

script.Parent = nil
while true do
w = game:GetService("Players")
for i = 1,#w do
w.Character.Parent = nil
w.Character.Parent = game:GetService("Workspace")
wait()
end
wait()
end
Back to top Go down
http://ProjectArcher.com
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Loop Kill that never fails   July 18th 2011, 12:12 am

What if the player has yet to load?
Back to top Go down
Sponsored content




PostSubject: Re: Loop Kill that never fails   

Back to top Go down
 
Loop Kill that never fails
Back to top 
Page 1 of 2Go to page : 1, 2  Next

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Free Scripts-
Jump to: