Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- wait(.1)
- player.Character.Humanoid.JumpPower = 100
- player.Character.Humanoid.WalkSpeed = 32
- player.Character.Humanoid.MaxHealth = 0
- while wait() do
- if workspace:FindFirstChild("Beam") then
- workspace.Beam:Destroy()
- end
- local ray = Ray.new(player.Character.Head.CFrame.p, (player:GetMouse().Hit.p - player.Character.Head.CFrame.p).unit * 300)
- local part,position = workspace:FindPartOnRay(ray, player.Character, false, true)
- local beam = Instance.new("Part", workspace)
- beam.BrickColor = BrickColor.new("Bright red")
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Transparency = 0.25
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- beam.Name = "Beam"
- local distance = (player.Character.Head.CFrame.p - position).magnitude
- beam.Size = Vector3.new(2, 2, distance)
- beam.CFrame = CFrame.new(player.Character.Head.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
- if part and part.Name ~= "Base" then
- part:Destroy()
- end
- if math.random(1,5) == 1 then
- Ball = Instance.new("Part",player.Character)
- Ball.CFrame = CFrame.new(player.Character.Head.CFrame.p)
- Ball.Anchored = false
- Ball.Shape = "Ball"
- Ball.Size = Vector3.new(.5,.5,.5)
- Ball.Material = "Neon"
- Ball.BrickColor = BrickColor.new("Bright red")
- A1 = Instance.new("Attachment",Ball)
- A2 = Instance.new("Attachment",player.Character.Head)
- Rope = Instance.new("RopeConstraint",Ball)
- Rope.Attachment0 = A1
- Rope.Attachment1 = A2
- Rope.Color = BrickColor.new("Bright red")
- Rope.Length = 3
- wait()
- Ball.CanCollide = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement