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: Ragdoll (no humanoid) people when dey touch me?

Previous Thread :: Next Thread 
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:21 PM
function onTouched(hit)
if (hit.Parent:findFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid:remove()
end
end
d = game.Players.McChicken72.Character:GetChildren()
for i = 1, #c do
if (c[i].className == "Part") then c[i].Touched:connect(onCrushed)
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
20 Apr 2014 08:22 PM
onTouched* not onCrushed
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:23 PM
I never learned how to ragdoll, after almost a year of scripting. This is sad ;l
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:25 PM
Azir, just remove humanoid.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
20 Apr 2014 08:27 PM
#d
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:28 PM
How do you make them fling tho
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:28 PM
Like their arms and legs spaze out
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:30 PM
CFrame,Welds
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:30 PM
I want to jump out the window right now
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:32 PM
>.<

CFrame*EularAngles or whatever they do.

An auto weld script.

lol
get a free auto weld and parent to the plr character from free models >.<
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:41 PM
Here's my updated script, and it aint working still.



function onTouched(hit)
if (hit.Parent:FindFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid:remove()
end
end
d = game.Players.McChicken72.Character:GetChildren()
for i = 1, #d do
if (d[i].ClassName == "Part") then d[i].Touched:connect(onTouched)
end
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:43 PM
Bump
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:44 PM
Omg cmon guys

I got pecked by TWO chicken's!
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:47 PM
I don't see errors, but try :Destroy()
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
20 Apr 2014 08:51 PM

function onTouched(hit)
if (hit.Parent:findFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid:remove()
end
end
d = game.Players.McChicken72.Character:GetChildren()
for i = 1, #c do
if (c[i].className == "Part") then
if c[i].Touched:wait() then
onTouched(part)
end
end

i'm asian
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:52 PM
for i,v in pairs(game.Players.Mcchicken72.Character:GetChildren()) do
v.Touched:connect(function(t)
if t.Parent:findFirstChild("Humanoid") then
t.Parent:findFirstChild("Humanoid"):Destroy()
end
end)
end
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
20 Apr 2014 08:55 PM
for i,v in pairs(game.Players.Mcchicken72.Character:GetChildren()) do
if v:IsA("Part") then
v.Touched:connect(function(t)
if t.Parent:findFirstChild("Humanoid") then
t.Parent:findFirstChild("Humanoid"):Destroy()
end
end)
end
end
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 08:59 PM
None work, BUMPIDY

I got pecked by TWO chicken's!
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
20 Apr 2014 09:01 PM
function onTouched(hit)
if (hit.Parent:findFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid:remove()
end
end
c = game.Players.McChicken72.Character:GetChildren()
for i = 1, #c do
if (c[i].className == "Part") then
if c[i].Touched:wait() then
onTouched(part)
end
end


i'm asian
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