Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = Player.Humanoid-Health 1236
- local d = Player.Humanoid-Damage 32
- local function shockwaveEffect(plr, size, time, color)
- local character = plr.Character or plr.CharacterAdded:Wait()
- local hrp = character:WaitForChild("HumanoidRootPart")
- local effect = script.Parent.Effects.Shockwave:Clone()
- effect.Transparency = 0.25
- effect.Parent = workspace
- effect.CFrame = hrp.CFrame
- effect.BrickColor = BrickColor.new(color)
- local tweenService = game:GetService("TweenService")
- local tweenInfo = TweenInfo.new(time, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local goal = {}
- goal.Transparency = 1
- goal.Size = effect.Size * size
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement