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 » Game Design
Home Search
 

Re: Trying to insert something into humanoid model

Previous Thread :: Next Thread 
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 11:05 AM
I've got a script that I made and I can't make it so the new ParticleEmmiter will go inside the humanoid while it hits the part.

function onTouched(hit)
local h = Instance.new("ParticleEmitter")
h.Color.Start = ("255, 0, 0")
h.Color.End = ("255, 140, 0")
h.Texture = "rbxgameasset://Images/Speck_Particle"
h.Rate = 10
h.Speed = ("5, 6")
h.Parent = hit
end
script.Parent.Touched:connect(onTouched)

Any help on how to make it go into the player's model while it hits?

Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 11:07 AM
I tried it with h.Parent = hit ;-;

Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 11:22 AM
Ping!

Report Abuse
Uzil is not online. Uzil
Joined: 02 Jun 2014
Total Posts: 366
23 Apr 2016 11:32 AM
tell me exactly what you are trying to do and I can help you
Report Abuse
War_Force is not online. War_Force
Joined: 15 Apr 2016
Total Posts: 2611
23 Apr 2016 11:34 AM
You need to check if the touched object is linked to humanoid, then parent it into the torso.
Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 06:39 PM
When a Player touches the part it's suppose to go inside the Players torso. I want that result to happen, and I can't script that part.

Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 06:41 PM
When you help me, give me the script line(s) so I can copy and paste lol

Report Abuse
Noiretop is not online. Noiretop
Joined: 04 Sep 2012
Total Posts: 7
23 Apr 2016 06:52 PM
so just replace h.Parent = hit by

if hit.Parent.Torso ~= nil then -- means if there is a torso
h.Parent = hit.Parent.Torso
else -- if not then it ends
end
end
Report Abuse
Noiretop is not online. Noiretop
Joined: 04 Sep 2012
Total Posts: 7
23 Apr 2016 06:54 PM
Because if you make the parent "hit", it will be in the model and not in the torso so i made if there is a torso then it will be in
Report Abuse
Noiretop is not online. Noiretop
Joined: 04 Sep 2012
Total Posts: 7
23 Apr 2016 07:02 PM
--here is the full script :)'
--You can just copy and past all even the text at top!



function onTouched(hit)
if hit.Parent.Torso ~= nil and hit.Parent.Humanoid ~= nil then
local h = Instance.new("ParticleEmitter")
h.Color.Start = ("255, 0, 0")
h.Color.End = ("255, 140, 0")
h.Texture = "rbxgameasset://Images/Speck_Particle"
h.Rate = 10
h.Speed = ("5, 6")

h.Parent = hit.Parent.Torso
end
end
script.Parent.Touched:connect(onTouched)
Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 08:12 PM
It's still not working :(

Report Abuse
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
23 Apr 2016 08:13 PM
Wouldn't the scripts be similar to one of a morph?
Report Abuse
FelixTheWo1f is not online. FelixTheWo1f
Joined: 30 Jan 2013
Total Posts: 320
23 Apr 2016 08:21 PM
Maybe, I'm on to something right now so I'll try it later. Thanks!

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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