Ok, so i have this ball which is moving and is growing in size. I want it to do damage which it does. But it won't go through people it just goes on top of them. Like it hits them but wont cframe through them.

Is there a way to allow a ball to cframe through someone with a touched event and I have tried so many things and none of them work.

move script -

wait()
Part = script.Parent
c = 0.4
m = 101
n = 0
repeat
	wait()
	c = c + 0.5
Part.CFrame = Part.CFrame + Part.CFrame.lookVector * 1.3
until c >= 40

repeat
	wait()
	m = m - 20
	Part.Size = Vector3.new(c,c,c)
	Part.Transparency = Part.Transparency + 0.05
until Part.Transparency >= 1

Part.Parent:Destroy()


damage script

me = script.Parent.Parent.Parent



damage = 20


function bleh(hit)
 humanoid = hit.Parent:findFirstChild("Humanoid")
 if humanoid ~= nil then
  if humanoid.Parent ~= me then
   Ex = Instance.new("Explosion") 
   Ex.Parent = hit.Parent   Ex.BlastRadius = 8
   Ex.Position = hit.Parent.Torso.Position 
   Ex.BlastPressure = 0
   hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-5, 5), 0, math.random(-5, 5)) * CFrame.Angles(0, math.random(-3, 3), 0)
   humanoid.Sit = true
   humanoid.Health = humanoid.Health - damage
  end
 end
end
script.Parent.Touched:connect(bleh)

2 comments

0

Could you include the script? Also, if you're using Vector3, this won't work. You need to use "CFrame.new" I'll be able to help more with the actual script.

0

there