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 | + | function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f) |
| 2 | - | ------------------------------------------------------------------------------------- |
| 2 | + | local funcw = Instance.new("Weld")
|
| 3 | - | Players = game:GetService("Players")
|
| 3 | + | funcw.Name = zName |
| 4 | - | Me = Players.LocalPlayer |
| 4 | + | funcw.Parent = zParent |
| 5 | - | Char = Me.Character |
| 5 | + | funcw.Part0 = zPart0 |
| 6 | - | necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 6 | + | funcw.Part1 = zPart1 |
| 7 | - | ShootColors = {"Bright yellow", "New Yeller", "Bright orange", "Neon orange", "Really red", "Bright red"}
|
| 7 | + | if (zCoco == true) then |
| 8 | - | PlaceId = game.PlaceId |
| 8 | + | funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f) |
| 9 | else | |
| 10 | - | Selected = false |
| 10 | + | funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f) |
| 11 | - | Attacking = false |
| 11 | + | end |
| 12 | - | Accuracy = 5 |
| 12 | + | return funcw |
| 13 | - | Debounce = true |
| 13 | + | |
| 14 | - | Hurt = false |
| 14 | + | function fun(n1, n2) |
| 15 | - | Damage = {15,42}
|
| 15 | + | pcall(function() |
| 16 | t1 = game.Players[n1].Character.Torso | |
| 17 | - | ContentProvider = game:GetService("ContentProvider")
|
| 17 | + | t2 = game.Players[n2].Character.Torso |
| 18 | t2.Parent.Humanoid.PlatformStand = true | |
| 19 | - | V3 = Vector3.new |
| 19 | + | t1["Left Shoulder"]:Remove() |
| 20 | - | C3 = Color3.new |
| 20 | + | ls1 = Instance.new("Weld")
|
| 21 | - | BN = BrickColor.new |
| 21 | + | ls1.Parent = t1 |
| 22 | - | CN = CFrame.new |
| 22 | + | ls1.Part0 = t1 |
| 23 | - | CA = CFrame.Angles |
| 23 | + | ls1.Part1 = t1.Parent["Left Arm"] |
| 24 | - | MR = math.rad |
| 24 | + | ls1.C0 = CFrame.new(-1.5,0,0) |
| 25 | - | MRA = math.random |
| 25 | + | ls1.Name = "Left Shoulder" |
| 26 | - | MP = math.pi |
| 26 | + | t1["Right Shoulder"]:Remove() |
| 27 | - | MH = math.huge |
| 27 | + | rs1 = Instance.new("Weld")
|
| 28 | - | UD = UDim2.new |
| 28 | + | rs1.Parent = t1 |
| 29 | rs1.Part0 = t1 | |
| 30 | - | function RC(Pos, Dir, Max, Ignore) |
| 30 | + | rs1.Part1 = t1.Parent["Right Arm"] |
| 31 | - | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore) |
| 31 | + | rs1.C0 = CFrame.new(1.5,0,0) |
| 32 | rs1.Name = "Right Shoulder" | |
| 33 | t2["Left Shoulder"]:Remove() | |
| 34 | - | function RayC(Start, En, MaxDist, Ignore) |
| 34 | + | ls2 = Instance.new("Weld")
|
| 35 | - | return RC(Start, (En - Start), MaxDist, Ignore) |
| 35 | + | ls2.Parent = t2 |
| 36 | ls2.Part0 = t2 | |
| 37 | ls2.Part1 = t2.Parent["Left Arm"] | |
| 38 | - | function ComputePos(pos1, pos2) |
| 38 | + | ls2.C0 = CFrame.new(-1.5,0,0) |
| 39 | - | return CN(pos1, V3(pos2.x, pos1.y, pos2.z)) |
| 39 | + | ls2.Name = "Left Shoulder" |
| 40 | t2["Right Shoulder"]:Remove() | |
| 41 | rs2 = Instance.new("Weld")
| |
| 42 | - | function DetectSurface(pos, part) |
| 42 | + | rs2.Parent = t2 |
| 43 | - | local surface = nil |
| 43 | + | rs2.Part0 = t2 |
| 44 | - | local pospos = part.CFrame |
| 44 | + | rs2.Part1 = t2.Parent["Right Arm"] |
| 45 | - | local pos2 = pospos:pointToObjectSpace(pos) |
| 45 | + | rs2.C0 = CFrame.new(1.5,0,0) |
| 46 | - | local siz = part.Size |
| 46 | + | rs2.Name = "Right Shoulder" |
| 47 | - | local shaep = part.Shape |
| 47 | + | t2["Left Hip"]:Remove() |
| 48 | - | if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then |
| 48 | + | lh2 = Instance.new("Weld")
|
| 49 | - | surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
|
| 49 | + | lh2.Parent = t2 |
| 50 | - | else |
| 50 | + | lh2.Part0 = t2 |
| 51 | - | if pos2.Y > ((siz.Y/2)-0.04) then |
| 51 | + | lh2.Part1 = t2.Parent["Left Leg"] |
| 52 | - | surface = {"Top", CA(0, 0, 0)}
|
| 52 | + | lh2.C0 = CFrame.new(-0.5,-2,0) |
| 53 | - | elseif pos2.Y < -((siz.Y/2)-0.04) then |
| 53 | + | lh2.Name = "Left Hip" |
| 54 | - | surface = {"Bottom", CA(-MP, 0, 0)}
|
| 54 | + | t2["Right Hip"]:Remove() |
| 55 | - | elseif pos2.X > ((siz.X/2)-0.04) then |
| 55 | + | rh2 = Instance.new("Weld")
|
| 56 | - | surface = {"Right", CA(0, 0, MR(-90))}
|
| 56 | + | rh2.Parent = t2 |
| 57 | - | elseif pos2.X < -((siz.X/2)-0.04) then |
| 57 | + | rh2.Part0 = t2 |
| 58 | - | surface = {"Left", CA(0, 0, MR(90))}
|
| 58 | + | rh2.Part1 = t2.Parent["Right Leg"] |
| 59 | - | elseif pos2.Z > ((siz.Z/2)-0.04) then |
| 59 | + | rh2.C0 = CFrame.new(0.5,-2,0) |
| 60 | - | surface = {"Back", CA(MR(90), 0, 0)}
|
| 60 | + | rh2.Name = "Right Hip" |
| 61 | - | elseif pos2.Z < -((siz.Z/2)-0.04) then |
| 61 | + | local d = Instance.new("Part")
|
| 62 | - | surface = {"Front", CA(MR(-90), 0, 0)}
|
| 62 | + | d.TopSurface = 0 |
| 63 | - | end |
| 63 | + | d.BottomSurface = 0 |
| 64 | - | end |
| 64 | + | d.CanCollide = false |
| 65 | - | return surface |
| 65 | + | d.BrickColor = BrickColor.new("Medium stone grey")
|
| 66 | d.Shape = "Ball" | |
| 67 | d.Parent = t1 | |
| 68 | - | function Compute(pos1, pos2) |
| 68 | + | d.Size = Vector3.new(1,1,1) |
| 69 | - | local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z) |
| 69 | + | local dm = Instance.new("SpecialMesh")
|
| 70 | - | return CN(pos1, pos3) |
| 70 | + | dm.MeshType = "Sphere" |
| 71 | dm.Parent = d | |
| 72 | dm.Scale = Vector3.new(0.4,0.4,0.4) | |
| 73 | - | function waitChild(n, p) |
| 73 | + | fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
|
| 74 | - | local c = p:findFirstChild(n) |
| 74 | + | d2 = d:Clone() |
| 75 | - | if c then return c end |
| 75 | + | d2.Parent = t1 |
| 76 | - | while true do |
| 76 | + | fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
|
| 77 | - | c = p.ChildAdded:wait() |
| 77 | + | local c = Instance.new("Part")
|
| 78 | - | if c.Name == n then return c end |
| 78 | + | c.TopSurface = 0 |
| 79 | - | end |
| 79 | + | c.BottomSurface = 0 |
| 80 | c.CanCollide = false | |
| 81 | c.BrickColor = BrickColor.new("Pastel brown")
| |
| 82 | - | function Notime(func) |
| 82 | + | c.Parent = t1 |
| 83 | - | coroutine.resume(coroutine.create(function() |
| 83 | + | c.formFactor = "Custom" |
| 84 | - | func() |
| 84 | + | c.Size = Vector3.new(0.4,1.3,0.4) |
| 85 | - | end)) |
| 85 | + | cm = Instance.new("CylinderMesh")
|
| 86 | cm.Parent = c | |
| 87 | a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
| |
| 88 | - | Torso = waitChild("Torso", Char)
|
| 88 | + | c2 = d:Clone() |
| 89 | - | Head = waitChild("Head", Char)
|
| 89 | + | c2.BrickColor = BrickColor.new("Medium stone grey")
|
| 90 | - | Rarm = waitChild("Right Arm", Char)
|
| 90 | + | c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4) |
| 91 | - | Larm = waitChild("Left Arm", Char)
|
| 91 | + | c2.Parent = t1 |
| 92 | - | Rleg = waitChild("Right Leg", Char)
|
| 92 | + | fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
|
| 93 | - | Lleg = waitChild("Left Leg", Char)
|
| 93 | + | local bl = Instance.new("Part")
|
| 94 | - | Neck = waitChild("Neck", Torso)
|
| 94 | + | bl.TopSurface = 0 |
| 95 | - | Hum = waitChild("Humanoid", Char)
|
| 95 | + | bl.BottomSurface = 0 |
| 96 | bl.CanCollide = false | |
| 97 | - | RSH = waitChild("Right Shoulder", Torso)
|
| 97 | + | bl.BrickColor = BrickColor.new("Pastel brown")
|
| 98 | - | LSH = waitChild("Left Shoulder", Torso)
|
| 98 | + | bl.Shape = "Ball" |
| 99 | - | RH = waitChild("Right Hip", Torso)
|
| 99 | + | bl.Parent = t2 |
| 100 | - | LH = waitChild("Left Hip", Torso)
|
| 100 | + | bl.Size = Vector3.new(1,1,1) |
| 101 | local dm = Instance.new("SpecialMesh")
| |
| 102 | - | RSH.Part0 = Torso |
| 102 | + | dm.MeshType = "Sphere" |
| 103 | - | LSH.Part0 = Torso |
| 103 | + | dm.Parent = bl |
| 104 | - | RH.Part0 = Torso |
| 104 | + | dm.Scale = Vector3.new(1.2,1.2,1.2) |
| 105 | - | LH.Part0 = Torso |
| 105 | + | fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
|
| 106 | local br = Instance.new("Part")
| |
| 107 | - | Add = {
|
| 107 | + | br.TopSurface = 0 |
| 108 | - | Mesh = function(P, ID, Scale, Tex) |
| 108 | + | br.BottomSurface = 0 |
| 109 | - | local m = Instance.new("SpecialMesh")
|
| 109 | + | br.CanCollide = false |
| 110 | - | m.MeshType = "FileMesh" |
| 110 | + | br.BrickColor = BrickColor.new("Pastel brown")
|
| 111 | - | m.MeshId = ID or "" |
| 111 | + | br.Shape = "Ball" |
| 112 | - | m.Scale = Scale or V3(1, 1, 1) |
| 112 | + | br.Parent = t2 |
| 113 | - | m.TextureId = Tex or "" |
| 113 | + | br.Size = Vector3.new(1,1,1) |
| 114 | - | m.Parent = P |
| 114 | + | local dm = Instance.new("SpecialMesh")
|
| 115 | - | return m |
| 115 | + | dm.MeshType = "Sphere" |
| 116 | - | end, |
| 116 | + | dm.Parent = br |
| 117 | - | Sphere = function(P, Scale) |
| 117 | + | dm.Scale = Vector3.new(1.2,1.2,1.2) |
| 118 | - | local m = Instance.new("SpecialMesh")
|
| 118 | + | fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
|
| 119 | - | m.MeshType = "Sphere" |
| 119 | + | local bln = Instance.new("Part")
|
| 120 | - | m.Scale = Scale or V3(1, 1, 1) |
| 120 | + | bln.TopSurface = 0 |
| 121 | - | m.Parent = P |
| 121 | + | bln.BottomSurface = 0 |
| 122 | - | return m |
| 122 | + | bln.CanCollide = false |
| 123 | - | end |
| 123 | + | bln.Shape = "Ball" |
| 124 | - | } |
| 124 | + | bln.Parent = t2 |
| 125 | bln.Size = Vector3.new(1,1,1) | |
| 126 | - | Sounds = {
|
| 126 | + | local dm = Instance.new("SpecialMesh")
|
| 127 | - | Shoot = {Id = "http://www.roblox.com/asset/?id=2697431", Pitch = 0.3, Volume = 0.5},
|
| 127 | + | dm.MeshType = "Sphere" |
| 128 | - | Boom = {Id = "http://www.roblox.com/asset/?id=2692806", Pitch = 0.55, Volume = 0.4},
|
| 128 | + | dm.Parent = bln |
| 129 | - | Slash = {Id = "rbxasset://sounds//swordslash.wav", Pitch = 0.5, Volume = 0.5},
|
| 129 | + | dm.Scale = Vector3.new(0.2,0.2,0.2) |
| 130 | - | Hit = {Id = "http://www.roblox.com/asset/?id=2801263", Pitch = 0.85, Volume = 0.35},
|
| 130 | + | fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
|
| 131 | - | Reload = {Id = "rbxasset://sounds\\metal.ogg", Pitch = 1, Volume = 0.45},
|
| 131 | + | local brn = Instance.new("Part")
|
| 132 | - | } |
| 132 | + | brn.TopSurface = 0 |
| 133 | brn.BottomSurface = 0 | |
| 134 | - | for _,v in pairs(Sounds) do |
| 134 | + | brn.CanCollide = false |
| 135 | - | ContentProvider:Preload(v.Id) |
| 135 | + | brn.Shape = "Ball" |
| 136 | brn.Parent = t2 | |
| 137 | brn.Size = Vector3.new(1,1,1) | |
| 138 | - | function PlaySound(Sound, bool) |
| 138 | + | local dm = Instance.new("SpecialMesh")
|
| 139 | - | local s = Instance.new("Sound")
|
| 139 | + | dm.MeshType = "Sphere" |
| 140 | - | s.Looped = false |
| 140 | + | dm.Parent = brn |
| 141 | - | s.Volume = Sound.Volume |
| 141 | + | dm.Scale = Vector3.new(0.2,0.2,0.2) |
| 142 | - | s.SoundId = Sound.Id |
| 142 | + | fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
|
| 143 | - | if bool then |
| 143 | + | lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0) |
| 144 | - | s.Pitch = MRA((Sound.Pitch*0.75)*1000, (Sound.Pitch*1.15)*1000)/1000 |
| 144 | + | rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0) |
| 145 | - | else |
| 145 | + | ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0) |
| 146 | - | s.Pitch = Sound.Pitch |
| 146 | + | rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0) |
| 147 | - | end |
| 147 | + | ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0) |
| 148 | - | s.PlayOnRemove = true |
| 148 | + | rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0) |
| 149 | - | s.Parent = Torso |
| 149 | + | if t1:findFirstChild("weldx") ~= nil then
|
| 150 | - | Notime(function() |
| 150 | + | t1.weldx:Remove() |
| 151 | - | wait() |
| 151 | + | end |
| 152 | - | s.Parent = nil |
| 152 | + | we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
|
| 153 | - | end) |
| 153 | + | n = t2.Neck |
| 154 | n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0) | |
| 155 | end) | |
| 156 | - | function GetParts(pos, dist) |
| 156 | + | coroutine.resume(coroutine.create(function() |
| 157 | - | local parts = {}
|
| 157 | + | while wait() do |
| 158 | - | local function o(p) |
| 158 | + | for i = 1,6 do |
| 159 | - | for _,v in pairs(p:children()) do |
| 159 | + | we.C1 = we.C1 * CFrame.new(0,-0.3,0) |
| 160 | - | if v:IsA("BasePart") then
|
| 160 | + | wait() |
| 161 | - | if (pos - v.Position).magnitude <= dist then |
| 161 | + | end |
| 162 | - | table.insert(parts, {v, (pos - v.Position).magnitude, v.Anchored})
|
| 162 | + | |
| 163 | - | end |
| 163 | + | for i = 1,6 do |
| 164 | - | end |
| 164 | + | we.C1 = we.C1 * CFrame.new(0,0.3,0) |
| 165 | - | o(v) |
| 165 | + | wait() |
| 166 | - | end |
| 166 | + | end |
| 167 | - | end |
| 167 | + | |
| 168 | - | o(workspace) |
| 168 | + | end)) |
| 169 | - | return parts |
| 169 | + | |
| 170 | fun("ImTheCop", "????") |