Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SETTINGS
- local size = Vector3.new(3,3,3)
- local color = BrickColor.new("White")
- local transparency = 0.5
- local lifetime = 7
- local material = "Neon"
- -- SCRIPT
- function Use(...)
- local args = {...}
- for i = 1, 10, 1 do
- local part = Instance.new("Part", workspace)
- part.CanCollide = false
- part.Size = size
- part.BrickColor = color
- part.Transparency = transparency
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.Material = material
- part.Shape = "Block"
- part.CFrame = args[1].Character.Torso.CFrame * CFrame.new(Vector3.new(0, 0, -7))
- local bv = Instance.new("BodyVelocity", part)
- bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv.velocity = args[3]
- local bg = Instance.new("BodyGyro", part)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.cframe = CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Stats = require(game:GetService("ServerScriptService"):WaitForChild("Stats"))
- local DamageMod = require(game.ServerScriptService.Libraries.DamageService)
- DamageMod:RegisterWeaponPart(args[1], {part}, 0, function(hit)
- if hit:IsA("Player") then
- print("kkkkk")
- if hit.Character:FindFirstChild("BaseSpeed") and hit.Character:FindFirstChild("Humanoid") and hit.Character:FindFirstChild("BaseStat") then
- hit.Character.BaseSpeed.Value = 70
- hit.Character.Humanoid.WalkSpeed = 1
- hit.Character.Humanoid.JumpPower = 50
- hit.Character.BaseSpeed:GetPropertyChangedSignal("Value"):Connect(function() hit.Character.BaseSpeed.Value = 70 end)
- end
- end
- end)
- game:GetService("Debris"):AddItem(part, lifetime)
- wait(0.01)
- end
- end
- return Use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement