Advertisement
kendredprince101

Post

Aug 16th, 2020
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. local p = Player.Humanoid-Health 1236
  2. local d = Player.Humanoid-Damage 32
  3.  
  4. local function shockwaveEffect(plr, size, time, color)
  5.     local character = plr.Character or plr.CharacterAdded:Wait()
  6.     local hrp = character:WaitForChild("HumanoidRootPart")
  7.    
  8.     local effect = script.Parent.Effects.Shockwave:Clone()
  9.     effect.Transparency = 0.25
  10.     effect.Parent = workspace
  11.     effect.CFrame = hrp.CFrame
  12.     effect.BrickColor = BrickColor.new(color)
  13.    
  14.     local tweenService = game:GetService("TweenService")
  15.     local tweenInfo = TweenInfo.new(time, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  16.     local goal = {}
  17.     goal.Transparency = 1
  18.     goal.Size = effect.Size * size
  19.  
  20. end
  21.   end
  22.      end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement