glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 01 Aug 2015 06:22 AM |
Hi it would be great if someone knows some scripts like that or could script it for me : I need a script which inserts 6 particle effects in to the 6 body parts of every player and also npc , so 1 particle effect for each body part -->the effects are called b1,b2,....b6, ;b1 should be in the head ,b2 in the torso,b3 in the right arm,b4 -left arm, b5 -right leg ,b6 -left leg.
and then i need a sceond script : If a part called blade touches a specific body part of a player and or npc . the particle effect that was impelemented with the first script , should get enabled and then after a short waittime (0.2) disabled --> a debounce would also be very usefull .
thanks for reading. ps. i could only pay upto 30 robux ..But i could build ya an very high detailed melee weapon model (: |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:25 AM |
If you were aware of this forum...
Nobody helps anyone with code unless they've written the code Anybody who helps for robux steals This isn't even a forum for asking for help
Also... 30 robux and a very high detailed melee weapon model is nothing unless someone were to actually use the melee weapon. |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 01 Aug 2015 06:28 AM |
thanks for these tips .
but no further replys like this pls.! |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 01 Aug 2015 06:29 AM |
If you were aware of this forum...
Nobody helps anyone with code unless they've written the code Anybody who helps for robux steals This isn't even a forum for asking for help
Also... 30 robux and a very high detailed melee weapon model is nothing unless someone were to actually use the melee weapon. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:31 AM |
Greetings glurbman, I'm a fan of your weapons
Group the blade parts into a model called "Blade" and insert this script into the weapon You'll need to customize the particle emitter though
local blade = script.Parent.Blade
-- You should use as few parts as possible for collision but this will work for all your weapons -- Won't work if you hit a hat
for i,v in pairs(blade:GetChildren()) do if v:IsA("BasePart") then v.Touched:connect(function(hit) if hit and hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then -- Hit a character local pe = Instance.new("ParticleEmitter", hit) -- Remove the ParticleEmitter after 0.2 seconds game.Debris:AddItem(pe, 0.2) end end) end end |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:33 AM |
@BothAngles Don't use debris, as it will :Remove() stuff and not :Destroy() stuff.
|
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:34 AM |
Fixed to work with npcs
local blade = script.Parent.Blade local lp = game.Players.LocalPlayer
-- You should use as few parts as possible for collision but this will work for all your weapons -- Won't work if you hit a hat
for i,v in pairs(blade:GetChildren()) do if v:IsA("BasePart") then v.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= lp.Name then -- Hit a character
local pe = Instance.new("ParticleEmitter", hit)
-- Remove the ParticleEmitter after 0.2 seconds game.Debris:AddItem(pe, 0.2) end end) end end |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:35 AM |
| if roblox wants to be an ass and not update it then thats their problem |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 06:35 AM |
The Debris service will remove the object in the same manner the Destroy method does. ? |
|
|
| Report Abuse |
|
|
| |
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 01 Aug 2015 10:46 AM |
hi Bothangeles youre awesome ! (: its always good to have fans ^^ ill try it out . |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 11:53 AM |
Ok, put a ParticleEmitter in ReplicatedStorage and name it "BloodEmitter"
local lp = game.Players.LocalPlayer local blade = script.Parent.Blade local BloodEmitter = game.ReplicatedStorage:WaitForChild("BloodEmitter")
for i,v in pairs(blade:GetChildren()) do if v:IsA("BasePart") then v.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= lp.Name then local pe = BloodEmitter:Clone() pe.Parent = hit game.Debris:AddItem(pe, 0.2) end end) end end |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 01 Aug 2015 01:56 PM |
| hi (: thanks that you edited it !! but i have problems to get the script to work.... |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 01:58 PM |
"could script it for me"
Stopped reading there, get out. |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 02 Aug 2015 02:04 AM |
| stop scamming me get out ^^ |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 02 Aug 2015 05:03 AM |
| stop that crap bothangles is already helping me you rude kiddis. |
|
|
| Report Abuse |
|
|
doodle435
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 43 |
|
|
| 02 Aug 2015 05:17 AM |
| Get out and write your own code kid |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
| |
|
doodle435
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 43 |
|
|
| 03 Aug 2015 04:01 AM |
Oh and btw scamming is you making a deal with someone and when he gives you the thing/Item you don't pay/give something back
^True
Kid |
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 03 Aug 2015 09:56 AM |
Wow . ps iam19 years old you b
i
t
.
.
|
|
|
| Report Abuse |
|
|
glurbman
|
  |
| Joined: 02 Nov 2010 |
| Total Posts: 1903 |
|
|
| 03 Aug 2015 09:56 AM |
| and pps. you guys are now on my blacklist . an if ya post somethin here ill report ya. |
|
|
| Report Abuse |
|
|
banman45
|
  |
| Joined: 10 Jun 2011 |
| Total Posts: 24 |
|
| |
|
|
| 03 Aug 2015 10:20 AM |
This forum is making me laugh, :)
It's simple physics |
|
|
| Report Abuse |
|
|