Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lp = game.Players.LocalPlayer
- local chr = lp.Character
- local mouse = lp:GetMouse()
- local lance = function()
- for i = 1,50 do
- wait()
- for i = 1,10 do
- z = Instance.new("Part",chr)
- z.TopSurface="Smooth"
- z.BottomSurface="Smooth"
- z.Size=Vector3.new(1,1,5)
- z.CanCollide = false
- z.Touched:connect(function(hit)
- if hit.Parent'Humanoid' and hit.Parent.Name ~= lp.Name then
- hit.Parent'Humanoid':TakeDamage(10)
- end
- end)
- z.CFrame=chr.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-2.5,2.5),0)
- direction = Instance.new("BodyGyro", z)
- direction.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- direction.cframe = CFrame.new(z.Position+Vector3.new(0,0,1000))
- speed = Instance.new("BodyVelocity", z)
- speed.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- speed.velocity = direction.lookVector.unit * 50
- game.Debris:AddItem(z,5)
- end
- end
- end
- mouse.Button1Down:connect(lance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement