SHOW:
|
|
- or go back to the newest paste.
| 1 | --By Rufus14 | |
| 2 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 3 | function sandbox(var,func) | |
| 4 | local env = getfenv(func) | |
| 5 | local newenv = setmetatable({},{
| |
| 6 | __index = function(self,k) | |
| 7 | if k=="script" then | |
| 8 | return var | |
| 9 | else | |
| 10 | return env[k] | |
| 11 | end | |
| 12 | end, | |
| 13 | }) | |
| 14 | setfenv(func,newenv) | |
| 15 | return func | |
| 16 | end | |
| 17 | cors = {}
| |
| 18 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 19 | Tool0 = Instance.new("Tool")
| |
| 20 | Part1 = Instance.new("Part")
| |
| 21 | Sound2 = Instance.new("Sound")
| |
| 22 | Sound3 = Instance.new("Sound")
| |
| 23 | Sound4 = Instance.new("Sound")
| |
| 24 | Sound5 = Instance.new("Sound")
| |
| 25 | Weld5 = Instance.new("Weld")
| |
| 26 | Weld6 = Instance.new("Weld")
| |
| 27 | Weld7 = Instance.new("Weld")
| |
| 28 | Weld8 = Instance.new("Weld")
| |
| 29 | Weld9 = Instance.new("Weld")
| |
| 30 | Sound10 = Instance.new("Sound")
| |
| 31 | Sound11 = Instance.new("Sound")
| |
| 32 | Part12 = Instance.new("Part")
| |
| 33 | Part13 = Instance.new("Part")
| |
| 34 | Part14 = Instance.new("Part")
| |
| 35 | Part15 = Instance.new("Part")
| |
| 36 | Part16 = Instance.new("Part")
| |
| 37 | Script17 = Instance.new("Script")
| |
| 38 | Tool0.Name = "Pipe" | |
| 39 | Tool0.Parent = mas | |
| 40 | Part1.Name = "Handle" | |
| 41 | Part1.Parent = Tool0 | |
| 42 | Part1.CFrame = CFrame.new(15.2139997, 2.55800009, -5.85500002, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 43 | Part1.Orientation = Vector3.new(0, -90, 0) | |
| 44 | Part1.Position = Vector3.new(15.2139997, 2.55800009, -5.85500002) | |
| 45 | Part1.Rotation = Vector3.new(0, -90, 0) | |
| 46 | Part1.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
| 47 | Part1.Size = Vector3.new(3.90909028, 0.72727263, 0.72727263) | |
| 48 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 49 | Part1.BrickColor = BrickColor.new("Fossil")
| |
| 50 | Part1.CanCollide = false | |
| 51 | Part1.Material = Enum.Material.Metal | |
| 52 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 53 | Part1.brickColor = BrickColor.new("Fossil")
| |
| 54 | Part1.Shape = Enum.PartType.Cylinder | |
| 55 | Sound2.Name = "MetalHit" | |
| 56 | Sound2.Parent = Part1 | |
| 57 | Sound2.Pitch = 1.2999999523163 | |
| 58 | Sound2.PlaybackSpeed = 1.2999999523163 | |
| 59 | Sound2.SoundId = "rbxassetid://933780081" | |
| 60 | Sound3.Name = "Swoosh" | |
| 61 | Sound3.Parent = Part1 | |
| 62 | Sound3.SoundId = "rbxassetid://1489705211" | |
| 63 | Sound4.Name = "Hit" | |
| 64 | Sound4.Parent = Part1 | |
| 65 | Sound4.SoundId = "rbxassetid://743886825" | |
| 66 | Sound5.Parent = Part1 | |
| 67 | Sound5.Name = "unequip" | |
| 68 | Sound5.SoundId = "rbxassetid://769464514" | |
| 69 | Weld5.Parent = Part1 | |
| 70 | Weld5.C0 = CFrame.new(-1.30636311, 0.00200498104, -0.00644207001, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 71 | Weld5.Part0 = Part1 | |
| 72 | Weld5.Part1 = Part16 | |
| 73 | Weld5.part1 = Part16 | |
| 74 | Weld6.Parent = Part1 | |
| 75 | Weld6.C0 = CFrame.new(0.0269742012, 0.00200498104, -0.00644397736, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 76 | Weld6.Part0 = Part1 | |
| 77 | Weld6.Part1 = Part13 | |
| 78 | Weld6.part1 = Part13 | |
| 79 | Weld7.Parent = Part1 | |
| 80 | Weld7.C0 = CFrame.new(1.33000708, 0.00200498104, -0.0064458847, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 81 | Weld7.Part0 = Part1 | |
| 82 | Weld7.Part1 = Part14 | |
| 83 | Weld7.part1 = Part14 | |
| 84 | Weld8.Parent = Part1 | |
| 85 | Weld8.C0 = CFrame.new(-1.94272614, 0.00200498104, -0.0064458847, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 86 | Weld8.Part0 = Part1 | |
| 87 | Weld8.Part1 = Part12 | |
| 88 | Weld8.part1 = Part12 | |
| 89 | Weld9.Parent = Part1 | |
| 90 | Weld9.C0 = CFrame.new(-1.94272089, 0.00200498104, 0.539008141, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 91 | Weld9.Part0 = Part1 | |
| 92 | Weld9.Part1 = Part15 | |
| 93 | Weld9.part1 = Part15 | |
| 94 | Sound10.Name = "Swoosh2" | |
| 95 | Sound10.Parent = Part1 | |
| 96 | Sound10.SoundId = "rbxassetid://181894961" | |
| 97 | Sound11.Name = "MetalHit2" | |
| 98 | Sound11.Parent = Part1 | |
| 99 | Sound11.SoundId = "rbxassetid://546410481" | |
| 100 | Part12.Name = "Ball" | |
| 101 | Part12.Parent = Tool0 | |
| 102 | Part12.CFrame = CFrame.new(15.2204456, 2.56000519, -7.79772615, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 103 | Part12.Orientation = Vector3.new(0, -90, 0) | |
| 104 | Part12.Position = Vector3.new(15.2204456, 2.56000519, -7.79772615) | |
| 105 | Part12.Rotation = Vector3.new(0, -90, 0) | |
| 106 | Part12.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
| 107 | Part12.Size = Vector3.new(0.72727263, 0.72727263, 0.72727263) | |
| 108 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 109 | Part12.BrickColor = BrickColor.new("Fossil")
| |
| 110 | Part12.CanCollide = false | |
| 111 | Part12.Material = Enum.Material.Metal | |
| 112 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 113 | Part12.brickColor = BrickColor.new("Fossil")
| |
| 114 | Part12.Shape = Enum.PartType.Ball | |
| 115 | Part13.Parent = Tool0 | |
| 116 | Part13.CFrame = CFrame.new(15.2204437, 2.56000519, -5.82802582, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 117 | Part13.Orientation = Vector3.new(0, -90, 0) | |
| 118 | Part13.Position = Vector3.new(15.2204437, 2.56000519, -5.82802582) | |
| 119 | Part13.Rotation = Vector3.new(0, -90, 0) | |
| 120 | Part13.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
| 121 | Part13.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774) | |
| 122 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
| 123 | Part13.BrickColor = BrickColor.new("Smoky grey")
| |
| 124 | Part13.CanCollide = false | |
| 125 | Part13.Material = Enum.Material.Concrete | |
| 126 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
| 127 | Part13.brickColor = BrickColor.new("Smoky grey")
| |
| 128 | Part13.Shape = Enum.PartType.Cylinder | |
| 129 | Part14.Parent = Tool0 | |
| 130 | Part14.CFrame = CFrame.new(15.2204456, 2.56000519, -4.52499294, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 131 | Part14.Orientation = Vector3.new(0, -90, 0) | |
| 132 | Part14.Position = Vector3.new(15.2204456, 2.56000519, -4.52499294) | |
| 133 | Part14.Rotation = Vector3.new(0, -90, 0) | |
| 134 | Part14.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
| 135 | Part14.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774) | |
| 136 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
| 137 | Part14.BrickColor = BrickColor.new("Smoky grey")
| |
| 138 | Part14.CanCollide = false | |
| 139 | Part14.Material = Enum.Material.Concrete | |
| 140 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
| 141 | Part14.brickColor = BrickColor.new("Smoky grey")
| |
| 142 | Part14.Shape = Enum.PartType.Cylinder | |
| 143 | Part15.Parent = Tool0 | |
| 144 | Part15.CFrame = CFrame.new(14.6749916, 2.56000519, -7.79772091, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 145 | Part15.Orientation = Vector3.new(0, 180, 0) | |
| 146 | Part15.Position = Vector3.new(14.6749916, 2.56000519, -7.79772091) | |
| 147 | Part15.Rotation = Vector3.new(-180, 0, -180) | |
| 148 | Part15.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
| 149 | Part15.Size = Vector3.new(1.09090889, 0.72727263, 0.72727263) | |
| 150 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 151 | Part15.BrickColor = BrickColor.new("Fossil")
| |
| 152 | Part15.CanCollide = false | |
| 153 | Part15.Material = Enum.Material.Metal | |
| 154 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
| 155 | Part15.brickColor = BrickColor.new("Fossil")
| |
| 156 | Part15.Shape = Enum.PartType.Cylinder | |
| 157 | Part16.Parent = Tool0 | |
| 158 | Part16.CFrame = CFrame.new(15.2204418, 2.56000519, -7.16136312, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 159 | Part16.Orientation = Vector3.new(0, -90, 0) | |
| 160 | Part16.Position = Vector3.new(15.2204418, 2.56000519, -7.16136312) | |
| 161 | Part16.Rotation = Vector3.new(0, -90, 0) | |
| 162 | Part16.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
| 163 | Part16.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774) | |
| 164 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
| 165 | Part16.BrickColor = BrickColor.new("Smoky grey")
| |
| 166 | Part16.CanCollide = false | |
| 167 | Part16.Material = Enum.Material.Concrete | |
| 168 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
| 169 | Part16.brickColor = BrickColor.new("Smoky grey")
| |
| 170 | Part16.Shape = Enum.PartType.Cylinder | |
| 171 | Script17.Name = "LeadpipeServer" | |
| 172 | Script17.Parent = Tool0 | |
| 173 | table.insert(cors,sandbox(Script17,function() | |
| 174 | --By Rufus14, inspired by leadpipe melee from R2DA | |
| 175 | --[[ | |
| 176 | Featuring: | |
| 177 | NPC Concussion | |
| 178 | Melee immunity (u cant be damaged while attacking and your humanoid changes name) | |
| 179 | -- | |
| 180 | Each hit makes player's screen 90% whiter, | |
| 181 | Stuns characters | |
| 182 | ]]-- | |
| 183 | canattack = true | |
| 184 | cananimate = true | |
| 185 | attackanim = 0 | |
| 186 | sine = 0 | |
| 187 | range = 3 | |
| 188 | tool = script.Parent | |
| 189 | ball = tool.Ball | |
| 190 | handle = tool.Handle | |
| 191 | swooshsound = handle.Swoosh | |
| 192 | metalhit = handle.MetalHit | |
| 193 | swooshsound2 = handle.Swoosh2 | |
| 194 | metalhit2 = handle.MetalHit2 | |
| 195 | hitsound = handle.Hit | |
| 196 | step = game:GetService("RunService").Stepped
| |
| 197 | owner = nil | |
| 198 | function equip() | |
| 199 | tool = script.Parent | |
| 200 | owner = tool.Parent | |
| 201 | local leftarm = Instance.new("Weld", owner.Torso)
| |
| 202 | leftarm.Part0 = owner.Torso | |
| 203 | leftarm.Part1 = owner["Left Arm"] | |
| 204 | leftarm.C0 = CFrame.new(-1.5,0.5,0) | |
| 205 | leftarm.C1 = CFrame.new(0,0.5,0) | |
| 206 | leftarm.Name = "LeftArmWelde" | |
| 207 | local rightarm = Instance.new("Weld", owner.Torso)
| |
| 208 | rightarm.Part0 = owner.Torso | |
| 209 | rightarm.Part1 = owner["Right Arm"] | |
| 210 | rightarm.C0 = CFrame.new(1.5,0.5,0) | |
| 211 | rightarm.C1 = CFrame.new(0,0.5,0) | |
| 212 | rightarm.Name = "RightArmWelde" | |
| 213 | local head = Instance.new("Weld", owner.Torso)
| |
| 214 | head.Part0 = owner.Torso | |
| 215 | head.Part1 = owner.Head | |
| 216 | head.C0 = CFrame.new(0,1,0) | |
| 217 | head.C1 = CFrame.new(0,-0.5,0) | |
| 218 | head.Name = "HeadWelde" | |
| 219 | local humanoidrootpart = Instance.new("Weld", owner.HumanoidRootPart)
| |
| 220 | humanoidrootpart.Part0 = owner.HumanoidRootPart | |
| 221 | humanoidrootpart.Part1 = owner.Torso | |
| 222 | humanoidrootpart.Name = "HumanoidRootPartWelde" | |
| 223 | local pipeweld = owner["Right Arm"]:WaitForChild("RightGrip")
| |
| 224 | pipeweld.C0 = CFrame.new(-1.33580685, -1.09495306, -0.391068697, 0.96628654, 0.230114311, -0.115489528, 0.127946258, -0.0399156809, 0.990977526, 0.223428279, -0.972344756, -0.0680122375) | |
| 225 | local function checkanim() | |
| 226 | while tool.Parent.ClassName ~= "Backpack" and tool.Parent.ClassName ~= "Workspace" and tool.Parent ~= nil and step:wait() do | |
| 227 | sine = sine + 1 | |
| 228 | if cananimate then | |
| 229 | pipeweld.C0 = pipeweld.C0:lerp(CFrame.new(-1.33580685, -1.09495306, -0.391068697, 0.96628654, 0.230114311, -0.115489528, 0.127946258, -0.0399156809, 0.990977526, 0.223428279, -0.972344756, -0.0680122375),0.2) | |
| 230 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),0.2) | |
| 231 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(45 + (3*math.sin(sine/60))),math.rad(-2.5)+math.sin(sine/60)/15,math.rad(-10) + math.rad(math.sin(sine/60))),0.2) | |
| 232 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(55 + (3*math.sin(sine/60))),0,math.rad(10) + math.rad(-math.sin(sine/60))),0.2) | |
| 233 | head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(math.sin(sine/60)),0,0),0.2) | |
| 234 | end | |
| 235 | end | |
| 236 | end | |
| 237 | spawn(checkanim) | |
| 238 | end | |
| 239 | attacknumber = 0 | |
| 240 | function swing() | |
| 241 | if canattack then | |
| 242 | cananimate = false | |
| 243 | canattack = false | |
| 244 | owner:findFirstChildOfClass("Humanoid").Name = "Immunity"
| |
| 245 | local hp = owner:findFirstChildOfClass("Humanoid").Health
| |
| 246 | local function immunity() | |
| 247 | while not cananimate do | |
| 248 | owner:findFirstChildOfClass("Humanoid").Health = hp
| |
| 249 | step:wait() | |
| 250 | end | |
| 251 | for i = 1,100 do | |
| 252 | owner:findFirstChildOfClass("Humanoid").Health = hp
| |
| 253 | step:wait() | |
| 254 | end | |
| 255 | if cananimate then | |
| 256 | owner:findFirstChildOfClass("Humanoid").Name = "Humanoid"
| |
| 257 | end | |
| 258 | end | |
| 259 | spawn(immunity) | |
| 260 | if attacknumber == 0 then | |
| 261 | attacknumber = 1 | |
| 262 | local swingrand = math.random(-50,50) | |
| 263 | for i = 0,1 , 0.14 do | |
| 264 | if owner:findFirstChild("HumanoidRootPart") then
| |
| 265 | if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
| |
| 266 | local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
| |
| 267 | humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.33682403, 0.0593911596, -0.939692616, -0.173648149, 0.98480773, 0, 0.925416529, 0.163175896, 0.342020094),i) | |
| 268 | end | |
| 269 | end | |
| 270 | if owner:findFirstChild("Right Arm") then
| |
| 271 | if owner["Right Arm"]:findFirstChild("RightGrip") then
| |
| 272 | if owner["Right Arm"].RightGrip.Part1 == handle then | |
| 273 | owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i) | |
| 274 | end | |
| 275 | end | |
| 276 | end | |
| 277 | if owner:findFirstChild("Torso") then
| |
| 278 | if owner.Torso:findFirstChild("RightArmWelde") then
| |
| 279 | owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,-0.1,0) * CFrame.new(1.43301249, 0.884340763, -0.405934334, 0.866025448, 7.4505806e-09, -0.499999762, -0.171009988, -0.939692438, -0.296198189, -0.469846129, 0.342020154, -0.813797832) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
| |
| 280 | end | |
| 281 | if owner.Torso:findFirstChild("LeftArmWelde") then
| |
| 282 | owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
| |
| 283 | end | |
| 284 | if owner.Torso:findFirstChild("HeadWelde") then
| |
| 285 | owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-0.0815877914, 1.49240351, -0.0296964645, 0.342020094, -0.163175687, 0.92541647, -1.45519152e-09, 0.98480773, 0.17364797, -0.939692557, -0.0593911, 0.336824089),i)
| |
| 286 | end | |
| 287 | end | |
| 288 | step:wait() | |
| 289 | end | |
| 290 | swooshsound2.Pitch = 1 + math.random(-2,2)/10 | |
| 291 | swooshsound2:Play() | |
| 292 | swooshsound.Pitch = 1 + math.random(-2,2)/10 | |
| 293 | swooshsound:Play() | |
| 294 | for i = 0,1 , 0.1 do | |
| 295 | if owner:findFirstChild("HumanoidRootPart") then
| |
| 296 | if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
| |
| 297 | local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
| |
| 298 | humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.645385742, -0.0593911596, 0.761544466, -0.0868240744, 0.98480767, 0.150383741, -0.758906364, -0.163175881, 0.630424261),i) | |
| 299 | end | |
| 300 | end | |
| 301 | if owner:findFirstChild("Right Arm") then
| |
| 302 | if owner["Right Arm"]:findFirstChild("RightGrip") then
| |
| 303 | if owner["Right Arm"].RightGrip.Part1 == handle then | |
| 304 | owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i) | |
| 305 | end | |
| 306 | end | |
| 307 | end | |
| 308 | if owner:findFirstChild("Torso") then
| |
| 309 | if owner.Torso:findFirstChild("RightArmWelde") then
| |
| 310 | owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0.4,0.3) * CFrame.new(1.88293552, 0.2333498, -0.433140755, 0.859446883, -0.503111184, -0.0907213986, 0.308427513, 0.651808023, -0.692833483, 0.407705337, 0.567472816, 0.715367913) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
| |
| 311 | end | |
| 312 | if owner.Torso:findFirstChild("LeftArmWelde") then
| |
| 313 | owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
| |
| 314 | end | |
| 315 | if owner.Torso:findFirstChild("HeadWelde") then
| |
| 316 | owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-0.0406684875, 1.4979527, 0.0197181702, 0.649181902, -0.0813359022, -0.756272018, 0.0229108427, 0.995905817, -0.0874414966, 0.76028806, 0.0394386649, 0.648387671),i)
| |
| 317 | end | |
| 318 | end | |
| 319 | step:wait() | |
| 320 | end | |
| 321 | for i,v in pairs(workspace:GetChildren()) do | |
| 322 | if v.ClassName == "Model" and v ~= owner then | |
| 323 | local headdd = v:findFirstChild("Head")
| |
| 324 | local humanoiddd = v:findFirstChildOfClass("Humanoid")
| |
| 325 | if humanoiddd and headdd then | |
| 326 | if (headdd.Position - ball.Position).magnitude <= range then | |
| 327 | humanoiddd.Health = humanoiddd.Health - math.random(20,25) | |
| 328 | hitsound.Pitch = 1 + math.random(-2,2)/10 | |
| 329 | hitsound:Play() | |
| 330 | metalhit2.Pitch = 1 + math.random(-2,2)/10 | |
| 331 | metalhit2:Play() | |
| 332 | metalhit.Pitch = 1 + math.random(-2,2)/10 | |
| 333 | metalhit.TimePosition = 1 | |
| 334 | metalhit:Play() | |
| 335 | headdd.CFrame = CFrame.new(headdd.Position, owner.Head.Position) | |
| 336 | headdd.CFrame = headdd.CFrame * CFrame.fromEulerAnglesXYZ(0.3,0,0) | |
| 337 | humanoiddd.PlatformStand = true | |
| 338 | local velocity = Instance.new("BodyVelocity", headdd)
| |
| 339 | velocity.MaxForce = Vector3.new(math.huge,0,math.huge) | |
| 340 | velocity.Velocity = owner.HumanoidRootPart.CFrame.lookVector * 10 | |
| 341 | game.Debris:AddItem(velocity,0.3) | |
| 342 | local function gothit() | |
| 343 | if not game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name) then
| |
| 344 | local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
| |
| 345 | boolvalue.Name = "owieConcussed" | |
| 346 | if not headdd:findFirstChild("Textr") then
| |
| 347 | -- Farewell Infortality. | |
| 348 | -- Version: 2.82 | |
| 349 | -- Instances: | |
| 350 | local Text = Instance.new("BillboardGui")
| |
| 351 | local Name = Instance.new("TextLabel")
| |
| 352 | --Properties: | |
| 353 | Text.Name = "Textr" | |
| 354 | Text.Parent = headdd | |
| 355 | Text.Size = UDim2.new(2, 0, 2, 0) | |
| 356 | Text.StudsOffset = Vector3.new(-4, 3, 0) | |
| 357 | ||
| 358 | Name.Name = "Name" | |
| 359 | Name.Parent = Text | |
| 360 | Name.BackgroundTransparency = 1 | |
| 361 | Name.Size = UDim2.new(5, 0, 1, 0) | |
| 362 | Name.Font = Enum.Font.Cartoon | |
| 363 | Name.Text = "(Concussed)" | |
| 364 | Name.TextColor3 = Color3.new(1, 1, 1) | |
| 365 | Name.TextScaled = true | |
| 366 | Name.TextWrapped = true | |
| 367 | end | |
| 368 | local function walkaround() | |
| 369 | while v:findFirstChild("owieConcussed") do
| |
| 370 | local therandom1 = math.random(-15,15) | |
| 371 | local therandom2 = math.random(-15,15) | |
| 372 | local randomstop = math.random(80,140) | |
| 373 | for i = 1,randomstop do | |
| 374 | humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2) | |
| 375 | step:wait() | |
| 376 | end | |
| 377 | end | |
| 378 | if headdd:findFirstChild("Textr") then
| |
| 379 | headdd:findFirstChild("Textr"):destroy()
| |
| 380 | end | |
| 381 | end | |
| 382 | spawn(walkaround) | |
| 383 | game.Debris:AddItem(boolvalue, 15) | |
| 384 | else | |
| 385 | local flashedplr = game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name)
| |
| 386 | if v == flashedplr.Character then | |
| 387 | local dead = Instance.new("ScreenGui")
| |
| 388 | local ringing = Instance.new("Sound", dead)
| |
| 389 | local Frame = Instance.new("Frame")
| |
| 390 | game.Debris:AddItem(dead,10) | |
| 391 | --Properties: | |
| 392 | dead.Name = "dead" | |
| 393 | dead.Parent = flashedplr:findFirstChildOfClass("PlayerGui")
| |
| 394 | dead.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
| 395 | ||
| 396 | Frame.Parent = dead | |
| 397 | Frame.BackgroundColor3 = Color3.new(255,255,255) | |
| 398 | Frame.Size = UDim2.new(1, 0, 1, 36) | |
| 399 | Frame.BackgroundTransparency = 0.1 | |
| 400 | Frame.Position = Frame.Position + UDim2.new(0,0,0,-36) | |
| 401 | ||
| 402 | ringing.SoundId = "rbxassetid://152736435" | |
| 403 | ringing.Volume = 0.05 | |
| 404 | ringing.Looped = true | |
| 405 | ringing:Play() | |
| 406 | local function waitfordisapear() | |
| 407 | wait(7) | |
| 408 | for i = 1,150 do | |
| 409 | ringing.Volume = ringing.Volume - 0.001 | |
| 410 | Frame.BackgroundTransparency = Frame.BackgroundTransparency + 0.02 | |
| 411 | wait() | |
| 412 | end | |
| 413 | dead:destroy() | |
| 414 | end | |
| 415 | spawn(waitfordisapear) | |
| 416 | else | |
| 417 | local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
| |
| 418 | boolvalue.Name = "owieConcussed" | |
| 419 | if not headdd:findFirstChild("Textr") then
| |
| 420 | -- Farewell Infortality. | |
| 421 | -- Version: 2.82 | |
| 422 | -- Instances: | |
| 423 | local Text = Instance.new("BillboardGui")
| |
| 424 | local Name = Instance.new("TextLabel")
| |
| 425 | --Properties: | |
| 426 | Text.Name = "Textr" | |
| 427 | Text.Parent = headdd | |
| 428 | Text.Size = UDim2.new(2, 0, 2, 0) | |
| 429 | Text.StudsOffset = Vector3.new(-4, 3, 0) | |
| 430 | ||
| 431 | Name.Name = "Name" | |
| 432 | Name.Parent = Text | |
| 433 | Name.BackgroundTransparency = 1 | |
| 434 | Name.Size = UDim2.new(5, 0, 1, 0) | |
| 435 | Name.Font = Enum.Font.Cartoon | |
| 436 | Name.Text = "(Concussed)" | |
| 437 | Name.TextColor3 = Color3.new(1, 1, 1) | |
| 438 | Name.TextScaled = true | |
| 439 | Name.TextWrapped = true | |
| 440 | end | |
| 441 | local function walkaround() | |
| 442 | while v:findFirstChild("owieConcussed") do
| |
| 443 | local therandom1 = math.random(-15,15) | |
| 444 | local therandom2 = math.random(-15,15) | |
| 445 | local randomstop = math.random(80,140) | |
| 446 | for i = 1,randomstop do | |
| 447 | humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2) | |
| 448 | step:wait() | |
| 449 | end | |
| 450 | end | |
| 451 | if headdd:findFirstChild("Textr") then
| |
| 452 | headdd:findFirstChild("Textr"):destroy()
| |
| 453 | end | |
| 454 | end | |
| 455 | spawn(walkaround) | |
| 456 | game.Debris:AddItem(boolvalue, 15) | |
| 457 | end | |
| 458 | end | |
| 459 | wait(1.2) | |
| 460 | humanoiddd.PlatformStand = false | |
| 461 | end | |
| 462 | spawn(gothit) | |
| 463 | end | |
| 464 | end | |
| 465 | end | |
| 466 | end | |
| 467 | elseif attacknumber == 1 then | |
| 468 | attacknumber = 0 | |
| 469 | local swingrand = math.random(-20,20) | |
| 470 | for i = 0,1 , 0.14 do | |
| 471 | if owner:findFirstChild("HumanoidRootPart") then
| |
| 472 | if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
| |
| 473 | local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
| |
| 474 | humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.342020303, 0.163175672, 0.925416589, 4.47034836e-08, 0.98480773, -0.17364797, -0.939692557, 0.0593911409, 0.336824268),i) | |
| 475 | end | |
| 476 | end | |
| 477 | if owner:findFirstChild("Right Arm") then
| |
| 478 | if owner["Right Arm"]:findFirstChild("RightGrip") then
| |
| 479 | if owner["Right Arm"].RightGrip.Part1 == handle then | |
| 480 | owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i) | |
| 481 | end | |
| 482 | end | |
| 483 | end | |
| 484 | if owner:findFirstChild("Torso") then
| |
| 485 | if owner.Torso:findFirstChild("RightArmWelde") then
| |
| 486 | owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0,0.5) * CFrame.new(1.11058283, 0.534516811, -1.14242649, 0.133022264, 0.395739019, 0.908677936, 0.991084576, -0.0600325875, -0.118940994, 0.00748064928, 0.916398764, -0.400196671) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
| |
| 487 | end | |
| 488 | if owner.Torso:findFirstChild("LeftArmWelde") then
| |
| 489 | owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
| |
| 490 | end | |
| 491 | if owner.Torso:findFirstChild("HeadWelde") then
| |
| 492 | owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-2.38418579e-07, 1.49999952, 9.53674316e-07, 0.49999994, 2.60770321e-08, -0.866025388, -1.02445483e-08, 0.999999821, -3.35276127e-08, 0.866025567, -1.49011612e-08, 0.49999994),i)
| |
| 493 | end | |
| 494 | end | |
| 495 | step:wait() | |
| 496 | end | |
| 497 | swooshsound2.Pitch = 1 + math.random(-2,2)/10 | |
| 498 | swooshsound2:Play() | |
| 499 | swooshsound.Pitch = 1 + math.random(-2,2)/10 | |
| 500 | swooshsound:Play() | |
| 501 | local canhitaaaaaaaaa = true | |
| 502 | for i = 0,1 , 0.1 do | |
| 503 | if i >= 0.5 and canhitaaaaaaaaa then | |
| 504 | canhitaaaaaaaaa = false | |
| 505 | for i,v in pairs(workspace:GetChildren()) do | |
| 506 | if v.ClassName == "Model" and v ~= owner then | |
| 507 | local headdd = v:findFirstChild("Head")
| |
| 508 | local humanoiddd = v:findFirstChildOfClass("Humanoid")
| |
| 509 | if humanoiddd and headdd then | |
| 510 | if (headdd.Position - ball.Position).magnitude <= range then | |
| 511 | humanoiddd.Health = humanoiddd.Health - math.random(20,25) | |
| 512 | hitsound.Pitch = 1 + math.random(-2,2)/10 | |
| 513 | hitsound:Play() | |
| 514 | metalhit2.Pitch = 1 + math.random(-2,2)/10 | |
| 515 | metalhit2:Play() | |
| 516 | metalhit.Pitch = 1 + math.random(-2,2)/10 | |
| 517 | metalhit.TimePosition = 1 | |
| 518 | metalhit:Play() | |
| 519 | headdd.CFrame = CFrame.new(headdd.Position, owner.Head.Position) | |
| 520 | headdd.CFrame = headdd.CFrame * CFrame.fromEulerAnglesXYZ(0.3,0,0) | |
| 521 | humanoiddd.PlatformStand = true | |
| 522 | local velocity = Instance.new("BodyVelocity", headdd)
| |
| 523 | velocity.MaxForce = Vector3.new(math.huge,0,math.huge) | |
| 524 | velocity.Velocity = owner.HumanoidRootPart.CFrame.lookVector * 10 | |
| 525 | game.Debris:AddItem(velocity,0.3) | |
| 526 | local function gothit() | |
| 527 | if not game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name) then
| |
| 528 | local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
| |
| 529 | boolvalue.Name = "owieConcussed" | |
| 530 | if not headdd:findFirstChild("Textr") then
| |
| 531 | -- Farewell Infortality. | |
| 532 | -- Version: 2.82 | |
| 533 | -- Instances: | |
| 534 | local Text = Instance.new("BillboardGui")
| |
| 535 | local Name = Instance.new("TextLabel")
| |
| 536 | --Properties: | |
| 537 | Text.Name = "Textr" | |
| 538 | Text.Parent = headdd | |
| 539 | Text.Size = UDim2.new(2, 0, 2, 0) | |
| 540 | Text.StudsOffset = Vector3.new(-4, 3, 0) | |
| 541 | ||
| 542 | Name.Name = "Name" | |
| 543 | Name.Parent = Text | |
| 544 | Name.BackgroundTransparency = 1 | |
| 545 | Name.Size = UDim2.new(5, 0, 1, 0) | |
| 546 | Name.Font = Enum.Font.Cartoon | |
| 547 | Name.Text = "(Concussed)" | |
| 548 | Name.TextColor3 = Color3.new(1, 1, 1) | |
| 549 | Name.TextScaled = true | |
| 550 | Name.TextWrapped = true | |
| 551 | end | |
| 552 | local function walkaround() | |
| 553 | while v:findFirstChild("owieConcussed") do
| |
| 554 | local therandom1 = math.random(-15,15) | |
| 555 | local therandom2 = math.random(-15,15) | |
| 556 | local randomstop = math.random(80,140) | |
| 557 | for i = 1,randomstop do | |
| 558 | humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2) | |
| 559 | step:wait() | |
| 560 | end | |
| 561 | end | |
| 562 | if headdd:findFirstChild("Textr") then
| |
| 563 | headdd:findFirstChild("Textr"):destroy()
| |
| 564 | end | |
| 565 | end | |
| 566 | spawn(walkaround) | |
| 567 | game.Debris:AddItem(boolvalue, 15) | |
| 568 | else | |
| 569 | local flashedplr = game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name)
| |
| 570 | if v == flashedplr.Character then | |
| 571 | local dead = Instance.new("ScreenGui")
| |
| 572 | local ringing = Instance.new("Sound", dead)
| |
| 573 | local Frame = Instance.new("Frame")
| |
| 574 | game.Debris:AddItem(dead,10) | |
| 575 | --Properties: | |
| 576 | dead.Name = "dead" | |
| 577 | dead.Parent = flashedplr:findFirstChildOfClass("PlayerGui")
| |
| 578 | dead.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
| 579 | ||
| 580 | Frame.Parent = dead | |
| 581 | Frame.BackgroundColor3 = Color3.new(255,255,255) | |
| 582 | Frame.Size = UDim2.new(1, 0, 1, 36) | |
| 583 | Frame.BackgroundTransparency = 0.1 | |
| 584 | Frame.Position = Frame.Position + UDim2.new(0,0,0,-36) | |
| 585 | ||
| 586 | ringing.SoundId = "rbxassetid://152736435" | |
| 587 | ringing.Volume = 0.05 | |
| 588 | ringing.Looped = true | |
| 589 | ringing:Play() | |
| 590 | local function waitfordisapear() | |
| 591 | wait(7) | |
| 592 | for i = 1,150 do | |
| 593 | ringing.Volume = ringing.Volume - 0.001 | |
| 594 | Frame.BackgroundTransparency = Frame.BackgroundTransparency + 0.02 | |
| 595 | wait() | |
| 596 | end | |
| 597 | dead:destroy() | |
| 598 | end | |
| 599 | spawn(waitfordisapear) | |
| 600 | else | |
| 601 | local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
| |
| 602 | boolvalue.Name = "owieConcussed" | |
| 603 | if not headdd:findFirstChild("Textr") then
| |
| 604 | -- Farewell Infortality. | |
| 605 | -- Version: 2.82 | |
| 606 | -- Instances: | |
| 607 | local Text = Instance.new("BillboardGui")
| |
| 608 | local Name = Instance.new("TextLabel")
| |
| 609 | --Properties: | |
| 610 | Text.Name = "Textr" | |
| 611 | Text.Parent = headdd | |
| 612 | Text.Size = UDim2.new(2, 0, 2, 0) | |
| 613 | Text.StudsOffset = Vector3.new(-4, 3, 0) | |
| 614 | ||
| 615 | Name.Name = "Name" | |
| 616 | Name.Parent = Text | |
| 617 | Name.BackgroundTransparency = 1 | |
| 618 | Name.Size = UDim2.new(5, 0, 1, 0) | |
| 619 | Name.Font = Enum.Font.Cartoon | |
| 620 | Name.Text = "(Concussed)" | |
| 621 | Name.TextColor3 = Color3.new(1, 1, 1) | |
| 622 | Name.TextScaled = true | |
| 623 | Name.TextWrapped = true | |
| 624 | end | |
| 625 | local function walkaround() | |
| 626 | while v:findFirstChild("owieConcussed") do
| |
| 627 | local therandom1 = math.random(-15,15) | |
| 628 | local therandom2 = math.random(-15,15) | |
| 629 | local randomstop = math.random(80,140) | |
| 630 | for i = 1,randomstop do | |
| 631 | humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2) | |
| 632 | step:wait() | |
| 633 | end | |
| 634 | end | |
| 635 | if headdd:findFirstChild("Textr") then
| |
| 636 | headdd:findFirstChild("Textr"):destroy()
| |
| 637 | end | |
| 638 | end | |
| 639 | spawn(walkaround) | |
| 640 | game.Debris:AddItem(boolvalue, 15) | |
| 641 | end | |
| 642 | end | |
| 643 | wait(1.2) | |
| 644 | humanoiddd.PlatformStand = false | |
| 645 | end | |
| 646 | spawn(gothit) | |
| 647 | end | |
| 648 | end | |
| 649 | end | |
| 650 | end | |
| 651 | end | |
| 652 | if owner:findFirstChild("HumanoidRootPart") then
| |
| 653 | if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
| |
| 654 | local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
| |
| 655 | humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.356122136, 0.10289897, -0.928756654, 0.0610870048, 0.989228606, 0.133022025, 0.932440579, -0.104107097, 0.346000373),i) | |
| 656 | end | |
| 657 | end | |
| 658 | if owner:findFirstChild("Right Arm") then
| |
| 659 | if owner["Right Arm"]:findFirstChild("RightGrip") then
| |
| 660 | if owner["Right Arm"].RightGrip.Part1 == handle then | |
| 661 | owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i) | |
| 662 | end | |
| 663 | end | |
| 664 | end | |
| 665 | if owner:findFirstChild("Torso") then
| |
| 666 | if owner.Torso:findFirstChild("RightArmWelde") then
| |
| 667 | owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0.7,0.3) * CFrame.new(1.94078016, 0.420045853, -0.739268303, 0.133022189, -0.718527198, 0.682659388, 0.991084456, 0.0912356675, -0.0970924273, 0.00748063065, 0.689488888, 0.724257588) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
| |
| 668 | end | |
| 669 | if owner.Torso:findFirstChild("LeftArmWelde") then
| |
| 670 | owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.7,0,0) * CFrame.new(-2.05798006, 0.156598568, 9.53674316e-07, 0.50000006, 0.866025329, -5.96046448e-08, -0.86602509, 0.499999821, -1.11758709e-08, -4.47034836e-08, -8.94069672e-08, 1),i)
| |
| 671 | end | |
| 672 | if owner.Torso:findFirstChild("HeadWelde") then
| |
| 673 | owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(0, 1.49999905, 0, 0.342020094, -6.70552254e-08, 0.939692616, -1.10594556e-08, 0.999999702, -6.70552254e-08, -0.939692676, -1.11758709e-08, 0.342019945),i)
| |
| 674 | end | |
| 675 | end | |
| 676 | step:wait() | |
| 677 | end | |
| 678 | end | |
| 679 | cananimate = true | |
| 680 | canattack = true | |
| 681 | end | |
| 682 | end | |
| 683 | tool.Activated:connect(swing) | |
| 684 | function unequip() | |
| 685 | Sound5:Play() | |
| 686 | if owner.Torso:findFirstChild("LeftArmWelde") then
| |
| 687 | owner.Torso:findFirstChild("LeftArmWelde"):destroy()
| |
| 688 | end | |
| 689 | if owner.Torso:findFirstChild("RightArmWelde") then
| |
| 690 | owner.Torso:findFirstChild("RightArmWelde"):destroy()
| |
| 691 | end | |
| 692 | if owner.Torso:findFirstChild("HeadWelde") then
| |
| 693 | owner.Torso:findFirstChild("HeadWelde"):destroy()
| |
| 694 | end | |
| 695 | if owner["Right Arm"]:findFirstChild("pipeweld") then
| |
| 696 | owner["Right Arm"]:findFirstChild("pipeweld"):destroy()
| |
| 697 | end | |
| 698 | if owner:findFirstChild("HumanoidRootPart") then
| |
| 699 | if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
| |
| 700 | owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde"):destroy()
| |
| 701 | end | |
| 702 | end | |
| 703 | end | |
| 704 | tool.Unequipped:connect(unequip) | |
| 705 | tool.Equipped:connect(equip) | |
| 706 | end)) | |
| 707 | for i,v in pairs(mas:GetChildren()) do | |
| 708 | v.Parent = owner.Character | |
| 709 | pcall(function() v:MakeJoints() end) | |
| 710 | end | |
| 711 | mas:Destroy() | |
| 712 | for i,v in pairs(cors) do | |
| 713 | spawn(function() | |
| 714 | pcall(v) | |
| 715 | end) | |
| 716 | end |