reav85

Hero Academia: Final Ember normal

Jan 28th, 2020
1,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local HRP = player.Character.HumanoidRootPart
  3. local mastery = player.Data.QuirkMastery.Value
  4. game:GetService('RunService').Stepped:connect(function()
  5. player.Character.Humanoid:ChangeState(11)
  6. end)
  7. while wait() do
  8. for i,v in pairs(workspace.Mobs:GetChildren()) do
  9. if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") then
  10. HRP.CFrame=v.HumanoidRootPart.CFrame+Vector3.new(0,-10,0)
  11. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "z", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  12. if mastery <= 25 and mastery > 49 then
  13. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  14. end
  15. if mastery <= 50 and mastery > 99 then
  16. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  17. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "c", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  18. end
  19. if mastery == 100 then
  20. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  21. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "c", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  22. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "v", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
  23. end
  24. end
  25. end
  26. end
Add Comment
Please, Sign In to add comment