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 » Scripting Helpers
Home Search
 

Re: Firball damage

Previous Thread :: Next Thread 
Jupiturd is not online. 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
AMDevelopment is not online. AMDevelopment
Joined: 09 Sep 2013
Total Posts: 84
16 Oct 2013 05:45 PM
"Does anyone know how to make the fireball take damage?"


I do.


Cya.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Oct 2013 05:47 PM
Could you please help me?
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Oct 2013 05:53 PM
Can anyone please help???

Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
16 Oct 2013 06:47 PM
So you want to create a furball?
Report Abuse
InternetGuy is not online. InternetGuy
Joined: 28 Apr 2010
Total Posts: 3385
16 Oct 2013 06:51 PM
Just grab the Humanoid and :TakeDamage()..
Report Abuse
Jupiturd is not online. 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
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
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 is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
17 Oct 2013 04:43 PM
Like I said I watched a tutorial.
Report Abuse
Jupiturd is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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