Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
|
| 16 Oct 2013 05:40 PM |
Does anyone know how to make the fireball take damage? (I watched friaza's tutorial to make this script)
Target = script.Parent.Target Me = script.Parent.Parent RS = script.Parent["Right Shoulder"] Punching = false LL = script.Parent["Left Hip"] RL = script.Parent["Right Hip"]
function Walk(Part) for repetitions = 1, 5 do for pose1 = 1, 10 do LL.C0 = LL.C0 *CFrame.Angles(0, 0, 0.3) RL.C0 = RL.C0 *CFrame.Angles(0, 0, 0.3) wait(0.1) end for pose2 = 1, 10 do LL.C0 = LL.C0 *CFrame.Angles(0, 0, -0.3) RL.C0 = RL.C0 *CFrame.Angles(0, 0, -0.3) wait(0.1) end end end
function Chase(Part) if Part.Parent:FindFirstChild("Humanoid") ~= nil then Target.Value = Part.Parent.Name walkcount = 0 for chasing = 1,80 do if chasing == 40 then x = Instance.new("Part") game.Debris:AddItem(x, 5) x.TopSurface = "Smooth" x.BottomSurface = "Smooth" x.Shape = "Ball" x.Size = Vector3.new(3, 3, 3) x.BrickColor = BrickColor.new("Bright red") x.Transparency = 0.5 f = Instance.new("Fire", x) z = Instance.new("PointLight", x) xv = Instance.new("BodyVelocity", x) xv.velocity = Me.Torso.CFrame.lookVector *60 xv.maxForce = Vector3.new(math.huge, math.huge, math.huge) x.Parent = Workspace x.CFrame = Me.Torso.CFrame *CFrame.new(0, 0, -9) end if Punching == false then Me.Humanoid:MoveTo(Part.Parent.Torso.Position,Part.Parent.Torso) end wait(0.05) end end end
function Punch(Part) if Punching == false and Part.Parent:FindFirstChild("Humanoid") ~= nil then Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health -15 v = Instance.new("BodyVelocity", Part.Parent.Torso) game.Debris:AddItem(v, 1) Part.Parent.Humanoid.Sit = true v.velocity = Me.Torso.CFrame.lookVector *50 v.maxForce = Vector3.new(math.huge, math.huge, math.huge) punching = true for RSLOOP = 1, 10 do RS.C0 = RS.C0 *CFrame.Angles(0, 0, 0.25) wait(0.1) end for RSLOOP = 1, 10 do RS.C0 = RS.C0 *CFrame.Angles(0, 0, -0.25) wait(0.1) end Punching = false end end
script.Parent.Touched:connect(Punch) script.Parent.Touched:connect(Chase) script.Parent.Touched:connect(Walk) |
|
|
| Report Abuse |
|
|
| 16 Oct 2013 05:45 PM |
"Does anyone know how to make the fireball take damage?"
I do.
Cya. |
|
|
| Report Abuse |
|
Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
| |
Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
| |
|
| 16 Oct 2013 06:47 PM |
| So you want to create a furball? |
|
|
| Report Abuse |
|
|
| 16 Oct 2013 06:51 PM |
Just grab the Humanoid and :TakeDamage()..
|
|
|
| Report Abuse |
|
Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
|
| 17 Oct 2013 04:01 PM |
| I know the humanoid damage line but were do I put it? |
|
|
| Report Abuse |
|
|
| 17 Oct 2013 04:11 PM |
| lol theres no way you made that script if you dont know where to put a takedamage line |
|
|
| Report Abuse |
|
Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
|
| 17 Oct 2013 04:43 PM |
| Like I said I watched a tutorial. |
|
|
| Report Abuse |
|
Jupiturd
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
|
| 17 Oct 2013 04:43 PM |
| The tutorial was by friaza in youtube it's called "Battle NPC" |
|
|
| Report Abuse |
|