Advertisement
Caldona

EnergyBlast

Apr 2nd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. -- Written By LordDracius
  2. local remotes=game:GetService("ReplicatedStorage"):WaitForChild("Remotes")
  3. local physicsService = game:GetService("PhysicsService")
  4.  
  5. remotes.FireBlast.OnServerInvoke = function(player)
  6. local character then
  7. local humanoid = character:FindFirstChild("Humanoid")
  8. local rightArm = character:FindFirstChild("Right Arm")
  9. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  10. if humanoid and humanoid:FindFirstChild("Animator") and rightArm and humanoidRootPart then
  11. local animation = Instance.new("Animation")
  12. animation.AnimationId = "rbxassetid://904178122"
  13. animation = humanoid:LoadAnimation(animation)
  14.  
  15. animation:Play()
  16. animation:KeyframeReached:Wait()
  17.  
  18. local energyBall = Instance.new("Part")
  19. energyBall.Material = "Neon"
  20. energyBall.BrickColor = BrickColor.new("Cyan")
  21. energyBall.CanCollide = true
  22. energyBall.Shape = "Ball"
  23. energyBall.Size = Vector3.new(2.5, 2.5, 2.5)
  24.  
  25. energyBall.CFrame = rightArm.CFrame * CFrame.new(0, -2.4, 0)
  26.  
  27. local velocity = Instance.new("BodyVelocity")
  28. velocity.MaxForce = Vector3.new(marh.huge, math.huge, math.huge)
  29. velocity.Velocity = humanoidRootPart.CFrame.lookVector * 100
  30. velocity.Parent = energyBall
  31.  
  32. energyBall.Parent = workspace
  33. game.Debris:AddItem(energyBall)
  34.  
  35. energyBall:SetNetworkOwner(nil)
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement