SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --MADE BY OneLegend (NOT THE SCRIPT) Thanks to CyberFromLU for letting me Publish! LOCAL SCRIPT: JUST RUN! |
| 1 | + | me = game.Players.LocalPlayer |
| 2 | - | ------------------------------------------------------------------------------------- |
| 2 | + | |
| 3 | - | Players = game:GetService("Players")
|
| 3 | + | |
| 4 | - | Me = Players.LocalPlayer |
| 4 | + | h = Instance.new("HopperBin")
|
| 5 | - | Char = Me.Character |
| 5 | + | h.Parent = me.Backpack |
| 6 | - | necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 6 | + | h.Name = "Rocket" |
| 7 | - | ShootColors = {"Bright yellow", "New Yeller", "Bright orange", "Neon orange", "Really red", "Bright red"}
|
| 7 | + | script.Parent = h |
| 8 | - | PlaceId = game.PlaceId |
| 8 | + | |
| 9 | ||
| 10 | - | Selected = false |
| 10 | + | sp = script.Parent |
| 11 | - | Attacking = false |
| 11 | + | |
| 12 | - | Accuracy = 5 |
| 12 | + | hold = false |
| 13 | - | Debounce = true |
| 13 | + | miss = {}
|
| 14 | - | Hurt = false |
| 14 | + | function selected(mouse, key) |
| 15 | - | Damage = {15000000000000000000000000000000000000000000000000000000000000,420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000}
|
| 15 | + | |
| 16 | if hold == true then return end | |
| 17 | - | ContentProvider = game:GetService("ContentProvider")
|
| 17 | + | hold = true |
| 18 | local missile = Instance.new("Part")
| |
| 19 | - | V3 = Vector3.new |
| 19 | + | missile.Parent = workspace |
| 20 | - | C3 = Color3.new |
| 20 | + | missile.formFactor = 0 |
| 21 | - | BN = BrickColor.new |
| 21 | + | missile.Size = Vector3.new(0.1,0.1,1) |
| 22 | - | CN = CFrame.new |
| 22 | + | missile.Anchored = true |
| 23 | - | CA = CFrame.Angles |
| 23 | + | missile.CFrame = CFrame.new(me.Character.Torso.Position, mouse.Hit.p) * CFrame.new(1,1,-17) |
| 24 | - | MR = math.rad |
| 24 | + | workspace.CurrentCamera.CameraSubject = missile |
| 25 | - | MRA = math.random |
| 25 | + | table.insert(miss,missile) |
| 26 | - | MP = math.pi |
| 26 | + | while hold == true do |
| 27 | - | MH = math.huge |
| 27 | + | |
| 28 | - | UD = UDim2.new |
| 28 | + | missile.CFrame = CFrame.new(missile.Position, mouse.Hit.p) |
| 29 | missile.CFrame = missile.CFrame * CFrame.new(0,0,-1) | |
| 30 | - | function RC(Pos, Dir, Max, Ignore) |
| 30 | + | |
| 31 | - | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore) |
| 31 | + | |
| 32 | mouse.Button1Up:connect(function() | |
| 33 | hold = false | |
| 34 | - | function RayC(Start, En, MaxDist, Ignore) |
| 34 | + | local ex = Instance.new("Explosion")
|
| 35 | - | return RC(Start, (En - Start), MaxDist, Ignore) |
| 35 | + | ex.Parent = workspace |
| 36 | ex.Position = miss[1].Position | |
| 37 | ex.BlastRadius = miss[1]:GetMass() | |
| 38 | - | function ComputePos(pos1, pos2) |
| 38 | + | ex.BlastPressure = 400000 |
| 39 | - | return CN(pos1, V3(pos2.x, pos1.y, pos2.z)) |
| 39 | + | miss[1]:remove() |
| 40 | table.remove(miss, 1) | |
| 41 | workspace.CurrentCamera.CameraSubject = me.Character.Humanoid | |
| 42 | - | function DetectSurface(pos, part) |
| 42 | + | |
| 43 | - | local surface = nil |
| 43 | + | |
| 44 | - | local pospos = part.CFrame |
| 44 | + | |
| 45 | - | local pos2 = pospos:pointToObjectSpace(pos) |
| 45 | + | sp.Selected:connect(selected) |