Advertisement
MisterH_t

powerEffect | Script

Aug 11th, 2022
2,710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. Qualquer problema me contacte no Discord mistr#2399.
  2. ----------------------------------------------------
  3.  
  4. local event = game:GetService("ReplicatedStorage")
  5.  
  6. event.OnServerEvent:connect(function(plr, mouse)
  7.     local char = plr.Character
  8.     local part = game:GetService("ServerStorage").powerPart:Clone()
  9.     local hrp = char.HumanoidRootPart
  10.    
  11.     part.Position = hrp.Position
  12.     part.Parent = workspace
  13.    
  14.     local vel = Instance.new("BodyVelocity", part)
  15.     vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  16.     vel.Velocity = CFrame.new(hrp.Position, mouse).LookVector * 100
  17.  
  18.     wait(.4)
  19.     part.Touched:connect(function(hit)
  20.         if hit.Parent:FindFirstChild("Humanoid") then
  21.             hit.Parent:FindFirstChild("Humanoid").Health -= 100
  22.         end
  23.     end)
  24.     wait(2)
  25.     part:Destroy()
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement