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 » Scripters
Home Search
 

Re: I need a more efficient method

Previous Thread :: Next Thread 
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
04 May 2015 09:19 AM
local p = game.Players.TheNewChicken
local char = p.Character
char.Torso.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char.Head.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char['Left Arm'].Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char['Right Arm'].Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char['Left Leg'].Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char['Right Leg'].Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end)
char.Humanoid.WalkSpeed = 100
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
DSiAddict is not online. DSiAddict
Joined: 11 Apr 2015
Total Posts: 316
04 May 2015 09:19 AM
Ever heard of a loop?
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
04 May 2015 09:21 AM
Oh wow thanks for being very very rude to someone who isnt sure what to do

Thanks, i have very low self esteem and im going to cut myself somemore

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
04 May 2015 09:21 AM
local p = game.Players.TheNewChicken
local char = p.Character
function GetShrekt(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:Destroy()
end
end
char.Torso.Touched:connect(GetShrekt)
char.Head.Touched:connect(GetShrekt)
char['Left Arm'].Touched:connect(GetShrekt)
char['Right Arm'].Touched:connect(GetShrekt)
char['Left Leg'].Touched:connect(GetShrekt)
char['Right Leg'].Touched:connect(GetShrekt)
char.Humanoid.WalkSpeed = 100
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
04 May 2015 09:22 AM
thanks edono

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
04 May 2015 09:26 AM
OOO change the GetSkrekt to this!
function GetShrekt(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit:IsDescendantOf(Char)==false then
hit.Parent.Humanoid:Destroy()
end
end
otherwise you'll be killing yourself!
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
04 May 2015 09:26 AM
Actually its not killing me.. dunno why lol

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
04 May 2015 09:27 AM
Ah, ok. Just a quick fix if it start to :) Does it work properly?
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
04 May 2015 09:30 AM
dunno, no ones in da server :(

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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