|
| 01 Jul 2017 09:05 AM |
any idea how i would destroy the Ball after it hit something?.
here the script :
local ten = true elec.Touched:connect(function(hit) if not ten then return end ten = false local ehum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid") if ehum and ehum ~= hum then for i = 1,10 do local part = elec:clone() part.Size = Vector3.new(0.5,0.5,0.5) part.CFrame = elec.CFrame part.ParticleEmitter.LockedToPart = false part.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) part.Parent = game.Workspace game.Debris:AddItem(part,1) end ehum:TakeDamage(10) elseif hit.Anchored == true and hit.CanCollide == true then for i = 1,10 do local part = elec:clone() part.Size = Vector3.new(0.5,0.5,0.5) part.CFrame = elec.CFrame part.ParticleEmitter.LockedToPart = false part.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) part.Parent = game.Workspace game.Debris:AddItem(part,1) end end wait() ten = true end) |
|
|
| Report Abuse |
|
| |
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 01 Jul 2017 09:48 AM |
| Which parts the ball? XD Can you not just call Destroy() on it? |
|
|
| Report Abuse |
|
|
| 03 Jul 2017 08:28 AM |
| the script is just to hard... NOT ABLE |
|
|
| Report Abuse |
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 03 Jul 2017 08:32 AM |
Ball.Touched:Connect(function() Ball:Destroy() end) |
|
|
| Report Abuse |
|
| |
| |