SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ | |
| 2 | User: TheDarkRevenant | |
| 3 | Script: DSSJ3 | |
| 4 | Pass: QNAh3g8U | |
| 5 | ||
| 6 | ]] | |
| 7 | ||
| 8 | local p = game.Players.LocalPlayer | |
| 9 | local char = p.Character | |
| 10 | local mouse = p:GetMouse() | |
| 11 | local larm = char["Left Arm"] | |
| 12 | local rarm = char["Right Arm"] | |
| 13 | local lleg = char["Left Leg"] | |
| 14 | local rleg = char["Right Leg"] | |
| 15 | local hed = char.Head | |
| 16 | local torso = char.Torso | |
| 17 | local hum = char.Humanoid | |
| 18 | local cam = game.Workspace.CurrentCamera | |
| 19 | local root = char.HumanoidRootPart | |
| 20 | local deb = false | |
| 21 | local shot = 0 | |
| 22 | local debris=game:service"Debris" | |
| 23 | local l = game:GetService("Lighting")
| |
| 24 | local rs = game:GetService("RunService").RenderStepped
| |
| 25 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 26 | math.randomseed(os.time()) | |
| 27 | for i,v in pairs(char:children()) do | |
| 28 | if v:IsA("Hat") then
| |
| 29 | ||
| 30 | end | |
| 31 | end | |
| 32 | for i,v in pairs (hed:GetChildren()) do | |
| 33 | if v:IsA("Sound") then
| |
| 34 | v:Destroy() | |
| 35 | end | |
| 36 | end | |
| 37 | ---------------------------------------------------- | |
| 38 | Debounces = {
| |
| 39 | CanAttack = true; | |
| 40 | NoIdl = false; | |
| 41 | Slashing = false; | |
| 42 | Slashed = false; | |
| 43 | RPunch = false; | |
| 44 | RPunched = false; | |
| 45 | LPunch = false; | |
| 46 | LPunched = false; | |
| 47 | } | |
| 48 | local Touche = {char.Name, }
| |
| 49 | ---------------------------------------------------- | |
| 50 | ypcall(function() | |
| 51 | ||
| 52 | end) | |
| 53 | ---------------------------------------------------- | |
| 54 | function lerp(a, b, t) -- Linear interpolation | |
| 55 | return a + (b - a)*t | |
| 56 | end | |
| 57 | ||
| 58 | function slerp(a, b, t) --Spherical interpolation | |
| 59 | dot = a:Dot(b) | |
| 60 | if dot > 0.99999 or dot < -0.99999 then | |
| 61 | return t <= 0.5 and a or b | |
| 62 | else | |
| 63 | r = math.acos(dot) | |
| 64 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 65 | end | |
| 66 | end | |
| 67 | ||
| 68 | function matrixInterpolate(a, b, t) | |
| 69 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 70 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 71 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 72 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 73 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 74 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 75 | local t = v1:Dot(v2) | |
| 76 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 77 | return CFrame.new() | |
| 78 | end | |
| 79 | return CFrame.new( | |
| 80 | v0.x, v0.y, v0.z, | |
| 81 | v1.x, v1.y, v1.z, | |
| 82 | v2.x, v2.y, v2.z, | |
| 83 | v3.x, v3.y, v3.z) | |
| 84 | end | |
| 85 | ---------------------------------------------------- | |
| 86 | function genWeld(a,b) | |
| 87 | local w = Instance.new("Weld",a)
| |
| 88 | w.Part0 = a | |
| 89 | w.Part1 = b | |
| 90 | return w | |
| 91 | end | |
| 92 | function weld(a, b) | |
| 93 | local weld = Instance.new("Weld")
| |
| 94 | weld.Name = "W" | |
| 95 | weld.Part0 = a | |
| 96 | weld.Part1 = b | |
| 97 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 98 | weld.Parent = a | |
| 99 | return weld; | |
| 100 | end | |
| 101 | ---------------------------------------------------- | |
| 102 | function Lerp(c1,c2,al) | |
| 103 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 104 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 105 | for i,v in pairs(com1) do | |
| 106 | com1[i] = v+(com2[i]-v)*al | |
| 107 | end | |
| 108 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 109 | end | |
| 110 | ---------------------------------------------------- | |
| 111 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 112 | local wld = Instance.new("Weld", wp1)
| |
| 113 | wld.Part0 = wp0 | |
| 114 | wld.Part1 = wp1 | |
| 115 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 116 | end | |
| 117 | ---------------------------------------------------- | |
| 118 | function weld5(part0, part1, c0, c1) | |
| 119 | weeld=Instance.new("Weld", part0)
| |
| 120 | weeld.Part0=part0 | |
| 121 | weeld.Part1=part1 | |
| 122 | weeld.C0=c0 | |
| 123 | weeld.C1=c1 | |
| 124 | return weeld | |
| 125 | end | |
| 126 | ---------------------------------------------------- | |
| 127 | function HasntTouched(plrname) | |
| 128 | local ret = true | |
| 129 | for _, v in pairs(Touche) do | |
| 130 | if v == plrname then | |
| 131 | ret = false | |
| 132 | end | |
| 133 | end | |
| 134 | return ret | |
| 135 | end | |
| 136 | ---------------------------------------------------- | |
| 137 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 138 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 139 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 140 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 141 | newWeld(torso, hed, 0, 1.5, 0) | |
| 142 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 143 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 144 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 145 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 146 | newWeld(root, torso, 0, -1, 0) | |
| 147 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 148 | ---------------------------------------------------- | |
| 149 | z = Instance.new("Sound", char)
| |
| 150 | - | z.SoundId = "rbxassetid://433890714"--377311796 |
| 150 | + | z.SoundId = "rbxassetid://434444444"--377311796 |
| 151 | - | z.Looped = true |
| 151 | + | |
| 152 | z.Pitch = 1 | |
| 153 | z.Volume = 1 | |
| 154 | wait(.1) | |
| 155 | z:Play() | |
| 156 | ---------------------------------------------------- | |
| 157 | local Transforming = true | |
| 158 | hum.WalkSpeed = 0 | |
| 159 | local fx = Instance.new("Part",torso)
| |
| 160 | fx.Anchored = true | |
| 161 | fx.Material = "Neon" | |
| 162 | fx.CanCollide = false | |
| 163 | fx.Locked = true | |
| 164 | fx.Transparency = 1 | |
| 165 | fx.Material = "SmoothPlastic" | |
| 166 | fx.Size = Vector3.new(1,1,1) | |
| 167 | fx.TopSurface = "SmoothNoOutlines" | |
| 168 | fx.BottomSurface = "SmoothNoOutlines" | |
| 169 | fx.BrickColor = BrickColor.new("Toothpaste")
| |
| 170 | fxm = Instance.new("SpecialMesh",fx)
| |
| 171 | fxm.MeshType = "Sphere" | |
| 172 | fxm.Scale = Vector3.new(1,1,1) | |
| 173 | for i = 1, 20 do rs:wait() | |
| 174 | fx.Transparency = fx.Transparency - (1/20) | |
| 175 | fx.CFrame = torso.CFrame | |
| 176 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
| 177 | rs:wait() | |
| 178 | end | |
| 179 | ---------------------------------------------------- | |
| 180 | ||
| 181 | ---------------------------------------------------- | |
| 182 | GroundWave1 = function() | |
| 183 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 184 | local Colors = {"Cyan", "Toothpaste"}
| |
| 185 | local wave = Instance.new("Part", torso)
| |
| 186 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 187 | wave.Anchored = true | |
| 188 | wave.CanCollide = false | |
| 189 | wave.Locked = true | |
| 190 | wave.Size = Vector3.new(1, 1, 1) | |
| 191 | wave.TopSurface = "Smooth" | |
| 192 | wave.BottomSurface = "Smooth" | |
| 193 | wave.Transparency = 0.35 | |
| 194 | wave.CFrame = HandCF | |
| 195 | wm = Instance.new("SpecialMesh", wave)
| |
| 196 | wm.MeshId = "rbxassetid://3270017" | |
| 197 | coroutine.wrap(function() | |
| 198 | for i = 1, 30, 1 do | |
| 199 | wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1) | |
| 200 | wave.Size = wm.Scale | |
| 201 | wave.CFrame = HandCF | |
| 202 | wave.Transparency = i/30 | |
| 203 | wait() | |
| 204 | end | |
| 205 | wait() | |
| 206 | wave:Destroy() | |
| 207 | end)() | |
| 208 | end | |
| 209 | ---------------------------------------------------- | |
| 210 | GroundWave = function() | |
| 211 | if Transforming == true then | |
| 212 | local wave = Instance.new("Part", torso)
| |
| 213 | wave.BrickColor = BrickColor.new("Cyan")
| |
| 214 | wave.Anchored = true | |
| 215 | wave.CanCollide = false | |
| 216 | wave.Locked = true | |
| 217 | wave.Size = Vector3.new(1, 1, 1) | |
| 218 | wave.TopSurface = "Smooth" | |
| 219 | wave.BottomSurface = "Smooth" | |
| 220 | wave.Transparency = 0.35 | |
| 221 | wave.CFrame = fx.CFrame | |
| 222 | wm = Instance.new("SpecialMesh", wave)
| |
| 223 | wm.MeshType = "Sphere" | |
| 224 | wm.Scale = Vector3.new(1,1,1) | |
| 225 | coroutine.wrap(function() | |
| 226 | for i = 1, 18, 1 do | |
| 227 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
| 228 | --wave.Size = wm.Scale | |
| 229 | wave.CFrame = fx.CFrame | |
| 230 | wave.Transparency = i/14 | |
| 231 | wait() | |
| 232 | end | |
| 233 | wait() | |
| 234 | wave:Destroy() | |
| 235 | end)() | |
| 236 | elseif Transforming == false then | |
| 237 | wait() | |
| 238 | end | |
| 239 | end | |
| 240 | ||
| 241 | for i = 1, 100 do rs:wait() | |
| 242 | fx.CFrame = torso.CFrame | |
| 243 | end | |
| 244 | ||
| 245 | Spawn(function() | |
| 246 | while wait(1) do | |
| 247 | GroundWave() | |
| 248 | end | |
| 249 | end) | |
| 250 | ||
| 251 | wait(4) | |
| 252 | ||
| 253 | Transforming = false | |
| 254 | ||
| 255 | for i = 1, 20 do rs:wait() | |
| 256 | fx.Transparency = fx.Transparency + (1/20) | |
| 257 | fx.CFrame = torso.CFrame | |
| 258 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
| 259 | rs:wait() | |
| 260 | end | |
| 261 | ||
| 262 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 263 | local wave = Instance.new("Part", torso)
| |
| 264 | wave.BrickColor = BrickColor.new("Pastel blue")
| |
| 265 | wave.Anchored = true | |
| 266 | wave.CanCollide = false | |
| 267 | wave.Locked = true | |
| 268 | wave.Size = Vector3.new(1, 1, 1) | |
| 269 | wave.TopSurface = "Smooth" | |
| 270 | wave.BottomSurface = "Smooth" | |
| 271 | wave.Transparency = 0.35 | |
| 272 | wave.CFrame = HandCF | |
| 273 | wm = Instance.new("SpecialMesh", wave)
| |
| 274 | wm.MeshId = "rbxassetid://3270017" | |
| 275 | coroutine.wrap(function() | |
| 276 | for i = 1, 14, 1 do | |
| 277 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
| 278 | wave.Size = wm.Scale | |
| 279 | wave.CFrame = HandCF | |
| 280 | wave.Transparency = i/14 | |
| 281 | wait() | |
| 282 | end | |
| 283 | wait() | |
| 284 | wave:Destroy() | |
| 285 | end)() | |
| 286 | hum.WalkSpeed = 35 | |
| 287 | ---------------------------------------------------- | |
| 288 | Blast = function() | |
| 289 | local Colors = {"Really blue", "Toothpaste"}
| |
| 290 | local wave = Instance.new("Part", torso)
| |
| 291 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 292 | wave.Anchored = true | |
| 293 | wave.CanCollide = false | |
| 294 | wave.Locked = true | |
| 295 | wave.Size = Vector3.new(1, 1, 1) | |
| 296 | wave.TopSurface = "Smooth" | |
| 297 | wave.BottomSurface = "Smooth" | |
| 298 | wave.Transparency = 0.35 | |
| 299 | wave.CFrame = rarm.CFrame | |
| 300 | wm = Instance.new("SpecialMesh", wave)
| |
| 301 | wm.MeshType = "Sphere" | |
| 302 | wm.Scale = Vector3.new(1,1,1) | |
| 303 | z = Instance.new("Sound",wave)
| |
| 304 | z.SoundId = "rbxassetid://237035051" | |
| 305 | z.Volume = 1 | |
| 306 | z.Pitch = .9 | |
| 307 | z:Play() | |
| 308 | coroutine.wrap(function() | |
| 309 | for i = 1, 30, 1 do | |
| 310 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
| 311 | --wave.Size = wm.Scale | |
| 312 | wave.CFrame = rarm.CFrame | |
| 313 | wave.Transparency = (1/14) | |
| 314 | rs:wait() | |
| 315 | end | |
| 316 | rs:wait() | |
| 317 | wave:Destroy() | |
| 318 | z:Destroy() | |
| 319 | end)() | |
| 320 | end | |
| 321 | ---------------------------------------------------- | |
| 322 | rarm.Touched:connect(function(ht) | |
| 323 | hit = ht.Parent | |
| 324 | if ht and hit:IsA("Model") then
| |
| 325 | if hit:FindFirstChild("Humanoid") then
| |
| 326 | if hit.Name ~= p.Name then | |
| 327 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 328 | Debounces.RPunched = true | |
| 329 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 330 | if Debounces.ks==true then | |
| 331 | z = Instance.new("Sound",hed)
| |
| 332 | z.SoundId = "rbxassetid://169380525" | |
| 333 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 334 | z.Volume = 1 | |
| 335 | z:Play() | |
| 336 | end | |
| 337 | wait(.2) | |
| 338 | Debounces.RPunched = false | |
| 339 | end | |
| 340 | end | |
| 341 | end | |
| 342 | elseif ht and hit:IsA("Hat") then
| |
| 343 | if hit.Parent.Name ~= p.Name then | |
| 344 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 345 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 346 | Debounces.RPunched = true | |
| 347 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 348 | if Debounces.ks==true then | |
| 349 | z = Instance.new("Sound",hed)
| |
| 350 | z.SoundId = "rbxassetid://169380525" | |
| 351 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 352 | z.Volume = 1 | |
| 353 | z:Play() | |
| 354 | end | |
| 355 | wait(.2) | |
| 356 | Debounces.RPunched = false | |
| 357 | end | |
| 358 | end | |
| 359 | end | |
| 360 | end | |
| 361 | end) | |
| 362 | larm.Touched:connect(function(ht) | |
| 363 | hit = ht.Parent | |
| 364 | if ht and hit:IsA("Model") then
| |
| 365 | if hit:FindFirstChild("Humanoid") then
| |
| 366 | if hit.Name ~= p.Name then | |
| 367 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 368 | Debounces.LPunched = true | |
| 369 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 370 | if Debounces.ks2==true then | |
| 371 | z = Instance.new("Sound",hed)
| |
| 372 | z.SoundId = "rbxassetid://169380525" | |
| 373 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 374 | z.Volume = 1 | |
| 375 | z:Play() | |
| 376 | end | |
| 377 | wait(.2) | |
| 378 | Debounces.LPunched = false | |
| 379 | end | |
| 380 | end | |
| 381 | end | |
| 382 | elseif ht and hit:IsA("Hat") then
| |
| 383 | if hit.Parent.Name ~= p.Name then | |
| 384 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 385 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 386 | Debounces.LPunched = true | |
| 387 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 388 | if Debounces.ks2==true then | |
| 389 | z = Instance.new("Sound",hed)
| |
| 390 | z.SoundId = "rbxassetid://169380525" | |
| 391 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 392 | z.Volume = 1 | |
| 393 | z:Play() | |
| 394 | end | |
| 395 | wait(.2) | |
| 396 | Debounces.LPunched = false | |
| 397 | end | |
| 398 | end | |
| 399 | end | |
| 400 | end | |
| 401 | end) | |
| 402 | ---------------------------------------------------- | |
| 403 | mod4 = Instance.new("Model",char)
| |
| 404 | ||
| 405 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 406 | ||
| 407 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 408 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 409 | local List = {}
| |
| 410 | for i,v in pairs(workspace:GetChildren())do | |
| 411 | if v:IsA("Model")then
| |
| 412 | if v:findFirstChild("Torso")then
| |
| 413 | if v ~= char then | |
| 414 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 415 | table.insert(List,v) | |
| 416 | end | |
| 417 | end | |
| 418 | end | |
| 419 | end | |
| 420 | end | |
| 421 | return List | |
| 422 | end | |
| 423 | ||
| 424 | function Punch() | |
| 425 | part=Instance.new('Part',mod4)
| |
| 426 | part.Anchored=true | |
| 427 | part.CanCollide=false | |
| 428 | part.FormFactor='Custom' | |
| 429 | part.Size=Vector3.new(.2,.2,.2) | |
| 430 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
| 431 | part.Transparency=.7 | |
| 432 | part.BrickColor=BrickColor.new('Cyan')
| |
| 433 | mesh=Instance.new('SpecialMesh',part)
| |
| 434 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 435 | mesh.Scale=Vector3.new(3,3,3) | |
| 436 | part2=Instance.new('Part',mod4)
| |
| 437 | part2.Anchored=true | |
| 438 | part2.CanCollide=false | |
| 439 | part2.FormFactor='Custom' | |
| 440 | part2.Size=Vector3.new(.2,.2,.2) | |
| 441 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
| 442 | part2.Transparency=.7 | |
| 443 | part2.BrickColor=BrickColor.new('Cyan')
| |
| 444 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 445 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 446 | mesh2.Scale=Vector3.new(3,1.5,3) | |
| 447 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 448 | if v:FindFirstChild('Humanoid') then
| |
| 449 | v.Humanoid:TakeDamage(math.random(2,6)) | |
| 450 | end | |
| 451 | end | |
| 452 | coroutine.resume(coroutine.create(function() | |
| 453 | for i=0,0.62,0.4 do | |
| 454 | wait() | |
| 455 | part.CFrame=part.CFrame | |
| 456 | part.Transparency=i | |
| 457 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 458 | part2.CFrame=part2.CFrame | |
| 459 | part2.Transparency=i | |
| 460 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 461 | end | |
| 462 | part.Parent=nil | |
| 463 | part2.Parent=nil | |
| 464 | end)) | |
| 465 | end | |
| 466 | ---------------------------------------------------- | |
| 467 | rarm.Touched:connect(function(ht) | |
| 468 | hit = ht.Parent | |
| 469 | if ht and hit:IsA("Model") then
| |
| 470 | if hit:FindFirstChild("Humanoid") then
| |
| 471 | if hit.Name ~= p.Name then | |
| 472 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 473 | Debounces.RPunched = true | |
| 474 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 475 | if Debounces.ks==true then | |
| 476 | z = Instance.new("Sound",hed)
| |
| 477 | z.SoundId = "rbxassetid://169380525" | |
| 478 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 479 | z.Volume = 1 | |
| 480 | z:Play() | |
| 481 | end | |
| 482 | wait(.2) | |
| 483 | Debounces.RPunched = false | |
| 484 | end | |
| 485 | end | |
| 486 | end | |
| 487 | elseif ht and hit:IsA("Hat") then
| |
| 488 | if hit.Parent.Name ~= p.Name then | |
| 489 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 490 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 491 | Debounces.RPunched = true | |
| 492 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 493 | if Debounces.ks==true then | |
| 494 | z = Instance.new("Sound",hed)
| |
| 495 | z.SoundId = "rbxassetid://169380525" | |
| 496 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 497 | z.Volume = 1 | |
| 498 | z:Play() | |
| 499 | end | |
| 500 | wait(.2) | |
| 501 | Debounces.RPunched = false | |
| 502 | end | |
| 503 | end | |
| 504 | end | |
| 505 | end | |
| 506 | end) | |
| 507 | larm.Touched:connect(function(ht) | |
| 508 | hit = ht.Parent | |
| 509 | if ht and hit:IsA("Model") then
| |
| 510 | if hit:FindFirstChild("Humanoid") then
| |
| 511 | if hit.Name ~= p.Name then | |
| 512 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 513 | Debounces.LPunched = true | |
| 514 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 515 | if Debounces.ks2==true then | |
| 516 | z = Instance.new("Sound",hed)
| |
| 517 | z.SoundId = "rbxassetid://169380525" | |
| 518 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 519 | z.Volume = 1 | |
| 520 | z:Play() | |
| 521 | end | |
| 522 | wait(.2) | |
| 523 | Debounces.LPunched = false | |
| 524 | end | |
| 525 | end | |
| 526 | end | |
| 527 | elseif ht and hit:IsA("Hat") then
| |
| 528 | if hit.Parent.Name ~= p.Name then | |
| 529 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 530 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 531 | Debounces.LPunched = true | |
| 532 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 533 | if Debounces.ks2==true then | |
| 534 | z = Instance.new("Sound",hed)
| |
| 535 | z.SoundId = "rbxassetid://169380525" | |
| 536 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 537 | z.Volume = 1 | |
| 538 | z:Play() | |
| 539 | end | |
| 540 | wait(.2) | |
| 541 | Debounces.LPunched = false | |
| 542 | end | |
| 543 | end | |
| 544 | end | |
| 545 | end | |
| 546 | end) | |
| 547 | ---------------------------------------------------- | |
| 548 | local player = game.Players.LocalPlayer | |
| 549 | local pchar = player.Character | |
| 550 | local mouse = player:GetMouse() | |
| 551 | local cam = workspace.CurrentCamera | |
| 552 | ||
| 553 | local rad = math.rad | |
| 554 | ||
| 555 | local keysDown = {}
| |
| 556 | local flySpeed = 0 | |
| 557 | local MAX_FLY_SPEED = 150 | |
| 558 | ||
| 559 | local canFly = false | |
| 560 | local flyToggled = false | |
| 561 | ||
| 562 | local forward, side = 0, 0 | |
| 563 | local lastForward, lastSide = 0, 0 | |
| 564 | ||
| 565 | local floatBP = Instance.new("BodyPosition")
| |
| 566 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 567 | local flyBV = Instance.new("BodyVelocity")
| |
| 568 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 569 | local turnBG = Instance.new("BodyGyro")
| |
| 570 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 571 | ||
| 572 | mouse.KeyDown:connect(function(key) | |
| 573 | keysDown[key] = true | |
| 574 | ||
| 575 | if key == "f" then | |
| 576 | flyToggled = not flyToggled | |
| 577 | ||
| 578 | if not flyToggled then | |
| 579 | stanceToggle = "Normal" | |
| 580 | floatBP.Parent = nil | |
| 581 | flyBV.Parent = nil | |
| 582 | turnBG.Parent = nil | |
| 583 | root.Velocity = Vector3.new() | |
| 584 | pchar.Humanoid.PlatformStand = false | |
| 585 | end | |
| 586 | end | |
| 587 | ||
| 588 | end) | |
| 589 | mouse.KeyUp:connect(function(key) | |
| 590 | keysDown[key] = nil | |
| 591 | end) | |
| 592 | ||
| 593 | local function updateFly() | |
| 594 | ||
| 595 | if not flyToggled then return end | |
| 596 | ||
| 597 | lastForward = forward | |
| 598 | lastSide = side | |
| 599 | ||
| 600 | forward = 0 | |
| 601 | side = 0 | |
| 602 | ||
| 603 | if keysDown.w then | |
| 604 | forward = forward + 1 | |
| 605 | end | |
| 606 | if keysDown.s then | |
| 607 | forward = forward - 1 | |
| 608 | end | |
| 609 | if keysDown.a then | |
| 610 | side = side - 1 | |
| 611 | end | |
| 612 | if keysDown.d then | |
| 613 | side = side + 1 | |
| 614 | end | |
| 615 | ||
| 616 | canFly = (forward ~= 0 or side ~= 0) | |
| 617 | ||
| 618 | if canFly then | |
| 619 | stanceToggle = "Floating" | |
| 620 | turnBG.Parent = root | |
| 621 | floatBP.Parent = nil | |
| 622 | flyBV.Parent = root | |
| 623 | ||
| 624 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 625 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 626 | else | |
| 627 | floatBP.position = root.Position | |
| 628 | floatBP.Parent = root | |
| 629 | ||
| 630 | flySpeed = flySpeed - 1 | |
| 631 | if flySpeed < 0 then flySpeed = 0 end | |
| 632 | end | |
| 633 | ||
| 634 | local camCF = cam.CoordinateFrame | |
| 635 | local in_forward = canFly and forward or lastForward | |
| 636 | local in_side = canFly and side or lastSide | |
| 637 | ||
| 638 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 639 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 640 | ||
| 641 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 642 | 0) | |
| 643 | end | |
| 644 | ||
| 645 | game:service'RunService'.RenderStepped:connect(function() | |
| 646 | if flyToggled then | |
| 647 | pchar.Humanoid.PlatformStand = true | |
| 648 | end | |
| 649 | updateFly() | |
| 650 | end) | |
| 651 | ------------------------------- | |
| 652 | mouse.KeyDown:connect(function(key) | |
| 653 | if key == "q" then | |
| 654 | if Debounces.CanAttack == true then | |
| 655 | Debounces.CanAttack = false | |
| 656 | Debounces.NoIdl = true | |
| 657 | Debounces.on = true | |
| 658 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 659 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 660 | local List = {}
| |
| 661 | for i,v in pairs(workspace:GetChildren())do | |
| 662 | if v:IsA("Model")then
| |
| 663 | if v:findFirstChild("Torso")then
| |
| 664 | if v ~= char then | |
| 665 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 666 | table.insert(List,v) | |
| 667 | end | |
| 668 | end | |
| 669 | end | |
| 670 | end | |
| 671 | end | |
| 672 | return List | |
| 673 | end | |
| 674 | z = Instance.new("Sound",hed)
| |
| 675 | z.SoundId = "rbxassetid://232213955" | |
| 676 | z.Pitch = 1 | |
| 677 | z.Volume = 1 | |
| 678 | wait(0.2) | |
| 679 | z:Play() | |
| 680 | sp = Instance.new("Part",rarm)
| |
| 681 | sp.Anchored = true | |
| 682 | sp.CanCollide = false | |
| 683 | sp.Locked = true | |
| 684 | sp.Transparency = 0 | |
| 685 | sp.Material = "Neon" | |
| 686 | sp.Size = Vector3.new(1,1,1) | |
| 687 | sp.TopSurface = "SmoothNoOutlines" | |
| 688 | sp.BottomSurface = "SmoothNoOutlines" | |
| 689 | sp.BrickColor = BrickColor.new("Toothpaste")
| |
| 690 | spm = Instance.new("SpecialMesh",sp)
| |
| 691 | spm.MeshType = "Sphere" | |
| 692 | spm.Scale = Vector3.new(21,21,21) | |
| 693 | sp2 = Instance.new("Part", rarm)
| |
| 694 | sp2.Name = "Energy" | |
| 695 | sp2.BrickColor = BrickColor.new("Teal")
| |
| 696 | sp2.Size = Vector3.new(1, 1, 1) | |
| 697 | sp2.Shape = "Ball" | |
| 698 | sp2.CanCollide = false | |
| 699 | sp2.Anchored = true | |
| 700 | sp2.Locked = true | |
| 701 | sp2.TopSurface = 0 | |
| 702 | sp2.BottomSurface = 0 | |
| 703 | sp2.Transparency = 1 | |
| 704 | spm2 = Instance.new("SpecialMesh",sp2)
| |
| 705 | spm2.MeshId = "rbxassetid://9982590" | |
| 706 | spm2.Scale = Vector3.new(2,2,2) | |
| 707 | for i = 1, 20 do | |
| 708 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 709 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 710 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
| 711 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
| 712 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 713 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 714 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 715 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 716 | if Debounces.on == false then break end | |
| 717 | rs:wait() | |
| 718 | end | |
| 719 | for i = 1, 100, 20 do rs:wait() | |
| 720 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 721 | end | |
| 722 | for i = 1, 20 do | |
| 723 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 724 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 725 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
| 726 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
| 727 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
| 728 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 729 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 730 | if Debounces.on == false then break end | |
| 731 | rs:wait() | |
| 732 | end | |
| 733 | sp.Transparency = 1 | |
| 734 | for i = 1, 20 do | |
| 735 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 736 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
| 737 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
| 738 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
| 739 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 740 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 741 | if Debounces.on == false then break end | |
| 742 | rs:wait() | |
| 743 | end | |
| 744 | wait(1) | |
| 745 | sp.Transparency = 0 | |
| 746 | sp2.Transparency = 0.84 | |
| 747 | for i = 1, 20 do | |
| 748 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 749 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 750 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 751 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
| 752 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
| 753 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 754 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
| 755 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 756 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 757 | if Debounces.on == false then break end | |
| 758 | rs:wait() | |
| 759 | end | |
| 760 | for i = 1, 2880, 50 do | |
| 761 | rs:wait() | |
| 762 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 763 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 764 | rs:wait() | |
| 765 | end | |
| 766 | sp:Destroy() | |
| 767 | sp2:Destroy() | |
| 768 | local X = Instance.new("Part",char)
| |
| 769 | local O = Instance.new("ObjectValue",X)
| |
| 770 | O.Name = "creator" | |
| 771 | X.Locked = true | |
| 772 | X.Name = "Shell" | |
| 773 | X.Anchored = false | |
| 774 | X.CanCollide = false | |
| 775 | X.Transparency = 0 | |
| 776 | X.Reflectance = 0 | |
| 777 | X.BottomSurface = 0 | |
| 778 | X.TopSurface = 0 | |
| 779 | X.Shape = 0 | |
| 780 | local V = Instance.new("ObjectValue",X)
| |
| 781 | V.Value = char | |
| 782 | V.Name = "creator" | |
| 783 | X.BrickColor = BrickColor.new("Cyan")
| |
| 784 | X.Size = Vector3.new(2,2,2) | |
| 785 | X.Material = "Neon" | |
| 786 | local Z = Instance.new("SpecialMesh",X)
| |
| 787 | Z.MeshType = "Sphere" | |
| 788 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 789 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
| 790 | local bv = Instance.new("BodyVelocity",X)
| |
| 791 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 792 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
| 793 | bv.velocity = X.CFrame.lookVector*65 | |
| 794 | ||
| 795 | Explode = X.Touched:connect(function(hit) | |
| 796 | if hit ~= char and hit.Name ~= "Shell" then | |
| 797 | local cf = X.CFrame | |
| 798 | bv:Destroy() | |
| 799 | X.Anchored = true | |
| 800 | Z:Remove() | |
| 801 | Explode:disconnect() | |
| 802 | X.Size = Vector3.new(3,3,3) | |
| 803 | X.Touched:connect(function(hit) end) | |
| 804 | X.CanCollide = false | |
| 805 | local part3 = Instance.new("Part", rarm)
| |
| 806 | part3.Anchored=true | |
| 807 | part3.CanCollide=false | |
| 808 | part3.Locked = true | |
| 809 | part3.TopSurface = "SmoothNoOutlines" | |
| 810 | part3.BottomSurface = "SmoothNoOutlines" | |
| 811 | part3.FormFactor='Custom' | |
| 812 | part3.Size=Vector3.new(1,1, 1) | |
| 813 | part3.CFrame=X.CFrame | |
| 814 | part3.Transparency=0 | |
| 815 | part3.BrickColor=BrickColor.new("Teal")
| |
| 816 | local mesh3 = Instance.new("SpecialMesh",part3)
| |
| 817 | mesh3.MeshType = "Sphere" | |
| 818 | mesh3.Scale = Vector3.new(1,1,1) | |
| 819 | --debris:AddItem(X,8) | |
| 820 | local part4 = Instance.new("Part", rarm)
| |
| 821 | part4.Material = "Neon" | |
| 822 | part4.Anchored=true | |
| 823 | part4.CanCollide=false | |
| 824 | part4.Locked = true | |
| 825 | part4.TopSurface = "SmoothNoOutlines" | |
| 826 | part4.BottomSurface = "SmoothNoOutlines" | |
| 827 | part4.FormFactor='Custom' | |
| 828 | part4.Size=Vector3.new(1,1, 1) | |
| 829 | part4.CFrame=X.CFrame | |
| 830 | part4.Transparency=0 | |
| 831 | part4.BrickColor=BrickColor.new("Electric blue")
| |
| 832 | local mesh4 = Instance.new("SpecialMesh",part4)
| |
| 833 | mesh4.MeshType = "Sphere" | |
| 834 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
| 835 | local part7 = Instance.new("Part", rarm)
| |
| 836 | part7.Material = "Neon" | |
| 837 | part7.Anchored=true | |
| 838 | part7.CanCollide=false | |
| 839 | part7.Locked = true | |
| 840 | part7.TopSurface = "SmoothNoOutlines" | |
| 841 | part7.BottomSurface = "SmoothNoOutlines" | |
| 842 | part7.FormFactor='Custom' | |
| 843 | part7.Size=Vector3.new(1,1, 1) | |
| 844 | part7.CFrame=X.CFrame | |
| 845 | part7.Transparency=0 | |
| 846 | part7.BrickColor=BrickColor.new("Cyan")
| |
| 847 | local mesh7 = Instance.new("SpecialMesh",part7)
| |
| 848 | mesh7.MeshType = "Sphere" | |
| 849 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
| 850 | --[[X.Touched:connect(function(ht) | |
| 851 | hit = ht.Parent | |
| 852 | if ht and hit:IsA("Model") then
| |
| 853 | if hit:FindFirstChild("Humanoid") then
| |
| 854 | if hit.Name ~= p.Name then | |
| 855 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 856 | wait(.3) | |
| 857 | end | |
| 858 | end | |
| 859 | elseif ht and hit:IsA("Hat") then
| |
| 860 | if hit.Parent.Name ~= p.Name then | |
| 861 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 862 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 863 | wait(.3) | |
| 864 | end | |
| 865 | end | |
| 866 | end | |
| 867 | end) | |
| 868 | part3.Touched:connect(function(ht) | |
| 869 | hit = ht.Parent | |
| 870 | if ht and hit:IsA("Model") then
| |
| 871 | if hit:FindFirstChild("Humanoid") then
| |
| 872 | if hit.Name ~= p.Name then | |
| 873 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 874 | wait(.3) | |
| 875 | end | |
| 876 | end | |
| 877 | elseif ht and hit:IsA("Hat") then
| |
| 878 | if hit.Parent.Name ~= p.Name then | |
| 879 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 880 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 881 | wait(.3) | |
| 882 | end | |
| 883 | end | |
| 884 | end | |
| 885 | end)]]-- | |
| 886 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
| 887 | if v:FindFirstChild('Humanoid') then
| |
| 888 | v.Humanoid:TakeDamage(math.random(60,90)) | |
| 889 | v.Humanoid.PlatformStand = true | |
| 890 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 891 | end | |
| 892 | end | |
| 893 | ||
| 894 | local acos = math.acos | |
| 895 | local sqrt = math.sqrt | |
| 896 | local Vec3 = Vector3.new | |
| 897 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 898 | ||
| 899 | local function toAxisAngle(CFr) | |
| 900 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 901 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 902 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 903 | A = A == 0 and 0.00001 or A | |
| 904 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 905 | B = B == 0 and 0.00001 or B | |
| 906 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 907 | C = C == 0 and 0.00001 or C | |
| 908 | local x = (R21-R12)/sqrt(A) | |
| 909 | local y = (R02-R20)/sqrt(B) | |
| 910 | local z = (R10-R01)/sqrt(C) | |
| 911 | return Vec3(x,y,z),Angle | |
| 912 | end | |
| 913 | ||
| 914 | function ApplyTrig(Num,Func) | |
| 915 | local Min,Max = Func(0),Func(1) | |
| 916 | local i = Func(Num) | |
| 917 | return (i-Min)/(Max-Min) | |
| 918 | end | |
| 919 | ||
| 920 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 921 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 922 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 923 | end | |
| 924 | ||
| 925 | function Crater(Torso,Radius) | |
| 926 | Spawn(function() | |
| 927 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
| 928 | local Ignore = {}
| |
| 929 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 930 | if v.Character ~= nil then | |
| 931 | Ignore[#Ignore+1] = v.Character | |
| 932 | end | |
| 933 | end | |
| 934 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 935 | if Hit == nil then return end | |
| 936 | local Parts = {}
| |
| 937 | for i = 1,360,10 do | |
| 938 | local P = Instance.new("Part",Torso.Parent)
| |
| 939 | P.Anchored = true | |
| 940 | P.FormFactor = "Custom" | |
| 941 | P.BrickColor = Hit.BrickColor | |
| 942 | P.Material = Hit.Material | |
| 943 | P.TopSurface = "Smooth" | |
| 944 | P.BottomSurface = "Smooth" | |
| 945 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
| 946 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 947 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
| |
| 948 | if math.random(0,5) == 0 then -- rubble | |
| 949 | local P = Instance.new("Part",Torso.Parent)
| |
| 950 | P.Anchored = true | |
| 951 | P.FormFactor = "Custom" | |
| 952 | P.BrickColor = Hit.BrickColor | |
| 953 | P.Material = Hit.Material | |
| 954 | P.TopSurface = "Smooth" | |
| 955 | P.BottomSurface = "Smooth" | |
| 956 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
| 957 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
| 958 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
| |
| 959 | end | |
| 960 | end | |
| 961 | for i = 0,1,0.05 do | |
| 962 | for i2,v in pairs(Parts) do | |
| 963 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 964 | end | |
| 965 | wait(0.02) | |
| 966 | end | |
| 967 | for i,v in pairs(Parts) do | |
| 968 | if v[1].Size.X > 2.1 then | |
| 969 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 970 | end | |
| 971 | v[1].Anchored = false | |
| 972 | end | |
| 973 | for i = 0,1,0.05 do | |
| 974 | for i2,v in pairs(Parts) do | |
| 975 | v[1].Transparency = i | |
| 976 | if i == 1 then | |
| 977 | v[1]:Destroy() | |
| 978 | elseif i >= 0.25 then | |
| 979 | v[1].CanCollide = false | |
| 980 | end | |
| 981 | end | |
| 982 | wait(0.02) | |
| 983 | end | |
| 984 | Parts = nil | |
| 985 | end) | |
| 986 | end | |
| 987 | ||
| 988 | ROW = function(out, trans, s, wt, t, ang, plus) | |
| 989 | for i = 1, 360, 360/t do | |
| 990 | local c = Instance.new("Part", game.Workspace)
| |
| 991 | c.FormFactor = 3 | |
| 992 | c.TopSurface = 0 | |
| 993 | c.BottomSurface = 0 | |
| 994 | c.Size = s | |
| 995 | c.Anchored = true | |
| 996 | c.CanCollide = wt | |
| 997 | c.Material=workspace.Base.Material | |
| 998 | c.Transparency = trans | |
| 999 | c.BrickColor = workspace.Base.BrickColor | |
| 1000 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
| 1001 | c.Locked=true | |
| 1002 | game.Debris:AddItem(c,15) | |
| 1003 | end | |
| 1004 | end | |
| 1005 | ||
| 1006 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 1007 | local p = Instance.new('Part',parent or Weapon)
| |
| 1008 | p.formFactor = 'Custom' | |
| 1009 | p.Size = Vector3.new(x,y,z) | |
| 1010 | p.BrickColor = BrickColor.new(color) | |
| 1011 | p.CanCollide = cc | |
| 1012 | p.Transparency = tr | |
| 1013 | p.Anchored = an | |
| 1014 | p.TopSurface,p.BottomSurface = 0,0 | |
| 1015 | p.Locked=true | |
| 1016 | p:BreakJoints() | |
| 1017 | return p end | |
| 1018 | ||
| 1019 | Mesh = function(par,num,x,y,z) | |
| 1020 | local msh = _ | |
| 1021 | if num == 1 then msh = Instance.new("CylinderMesh",par)
| |
| 1022 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
| |
| 1023 | elseif num == 3 then msh = Instance.new("BlockMesh",par)
| |
| 1024 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
| |
| 1025 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
| |
| 1026 | end msh.Scale = Vector3.new(x,y,z) | |
| 1027 | return msh end | |
| 1028 | ||
| 1029 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 1030 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
| 1031 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
| 1032 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
| 1033 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 1034 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 1035 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 1036 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 1037 | a.CFrame=cfr | |
| 1038 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1039 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1040 | ||
| 1041 | Spawn(function() | |
| 1042 | while wait() do | |
| 1043 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 1044 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 1045 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 1046 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 1047 | a.Transparency=a.Transparency+0.05 | |
| 1048 | a2.Transparency=a2.Transparency+0.05 | |
| 1049 | a3.Transparency=a3.Transparency+0.05 | |
| 1050 | end | |
| 1051 | end) | |
| 1052 | end | |
| 1053 | ||
| 1054 | Crater(X,20) | |
| 1055 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
| 1056 | z = Instance.new("Sound",X)
| |
| 1057 | z.SoundId = "rbxassetid://231917744" | |
| 1058 | z.Pitch = .5 | |
| 1059 | z.Volume = 10 | |
| 1060 | z1 = Instance.new("Sound",X)
| |
| 1061 | z1.SoundId = "rbxassetid://231917744" | |
| 1062 | z1.Pitch = .5 | |
| 1063 | z1.Volume = 10 | |
| 1064 | z2 = Instance.new("Sound",X)
| |
| 1065 | z2.SoundId = "rbxassetid://231917744" | |
| 1066 | z2.Pitch = .5 | |
| 1067 | z2.Volume = 10 | |
| 1068 | z3 = Instance.new("Sound",X)
| |
| 1069 | z3.SoundId = "rbxassetid://245537790" | |
| 1070 | z3.Pitch = .7 | |
| 1071 | z3.Volume = 1 | |
| 1072 | z4 = Instance.new("Sound",X)
| |
| 1073 | z4.SoundId = "rbxassetid://245537790" | |
| 1074 | z4.Pitch = .7 | |
| 1075 | z4.Volume = 1 | |
| 1076 | wait(0.1) | |
| 1077 | z:Play() | |
| 1078 | z1:Play() | |
| 1079 | z2:Play() | |
| 1080 | z3:Play() | |
| 1081 | z4:Play() | |
| 1082 | ||
| 1083 | local part=Instance.new('Part',rarm)
| |
| 1084 | part.Anchored=true | |
| 1085 | part.CanCollide=false | |
| 1086 | part.Locked = true | |
| 1087 | part.FormFactor='Custom' | |
| 1088 | part.Size=Vector3.new(1,1,1) | |
| 1089 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
| 1090 | part.Transparency=0 | |
| 1091 | part.BrickColor=BrickColor.new('Lapis')
| |
| 1092 | local mesh=Instance.new('SpecialMesh',part)
| |
| 1093 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1094 | mesh.Scale=Vector3.new(2,2,2) | |
| 1095 | local part2=part:clone() | |
| 1096 | part2.Parent = rarm | |
| 1097 | part2.BrickColor=BrickColor.new("Toothpaste")
| |
| 1098 | local part5=part:clone() | |
| 1099 | part5.Parent = rarm | |
| 1100 | part5.BrickColor=BrickColor.new("Deep blue")
| |
| 1101 | local part6=part:clone() | |
| 1102 | part6.Parent = rarm | |
| 1103 | part6.BrickColor=BrickColor.new("Really blue")
| |
| 1104 | local mesh2=mesh:clone() | |
| 1105 | mesh2.Parent=part2 | |
| 1106 | mesh2.Scale=Vector3.new(3, 3, 3) | |
| 1107 | local mesh5=mesh:clone() | |
| 1108 | mesh5.Parent=part5 | |
| 1109 | mesh5.Scale=Vector3.new(3, 3, 3) | |
| 1110 | local mesh6=mesh:clone() | |
| 1111 | mesh6.Parent=part6 | |
| 1112 | mesh6.Scale=Vector3.new(3, 3, 3) | |
| 1113 | local blast = Instance.new("Part", rarm)
| |
| 1114 | blast.BrickColor = BrickColor.new("Cyan")
| |
| 1115 | blast.Anchored = true | |
| 1116 | blast.CanCollide = false | |
| 1117 | blast.Locked = true | |
| 1118 | blast.Size = Vector3.new(1, 1, 1) | |
| 1119 | blast.TopSurface = "Smooth" | |
| 1120 | blast.BottomSurface = "Smooth" | |
| 1121 | blast.Transparency = 0 | |
| 1122 | blast.CFrame = HandCF | |
| 1123 | local bm = Instance.new("SpecialMesh", blast)
| |
| 1124 | bm.Scale = Vector3.new(5,1,5) | |
| 1125 | bm.MeshId = "rbxassetid://3270017" | |
| 1126 | local blast2 = Instance.new("Part", rarm)
| |
| 1127 | blast2.BrickColor = BrickColor.new("Toothpaste")
| |
| 1128 | blast2.Anchored = true | |
| 1129 | blast2.CanCollide = false | |
| 1130 | blast2.Locked = true | |
| 1131 | blast2.Size = Vector3.new(1, 1, 1) | |
| 1132 | blast2.TopSurface = "Smooth" | |
| 1133 | blast2.BottomSurface = "Smooth" | |
| 1134 | blast2.Transparency = 0 | |
| 1135 | blast2.CFrame = HandCF | |
| 1136 | local bm2 = Instance.new("SpecialMesh", blast2)
| |
| 1137 | bm2.Scale = Vector3.new(3,1,3) | |
| 1138 | bm2.MeshId = "rbxassetid://3270017" | |
| 1139 | local blast3 = Instance.new("Part", rarm)
| |
| 1140 | blast3.BrickColor = BrickColor.new("Deep blue")
| |
| 1141 | blast3.Anchored = true | |
| 1142 | blast3.CanCollide = false | |
| 1143 | blast3.Locked = true | |
| 1144 | blast3.Size = Vector3.new(1, 1, 1) | |
| 1145 | blast3.TopSurface = "Smooth" | |
| 1146 | blast3.BottomSurface = "Smooth" | |
| 1147 | blast3.Transparency = 0 | |
| 1148 | blast3.CFrame = HandCF | |
| 1149 | local bm3 = Instance.new("SpecialMesh", blast3)
| |
| 1150 | bm3.Scale = Vector3.new(3,1,3) | |
| 1151 | bm3.MeshId = "rbxassetid://3270017" | |
| 1152 | for i = 1,120 do rs:wait() | |
| 1153 | X.Transparency = X.Transparency + (1/120) | |
| 1154 | part.Transparency = part.Transparency + (1/120) | |
| 1155 | part2.Transparency = part2.Transparency + (1/120) | |
| 1156 | part3.Transparency = part3.Transparency + (1/120) | |
| 1157 | part4.Transparency = part4.Transparency + (1/120) | |
| 1158 | part5.Transparency = part5.Transparency + (1/120) | |
| 1159 | part6.Transparency = part6.Transparency + (1/120) | |
| 1160 | part7.Transparency = part7.Transparency + (1/120) | |
| 1161 | blast.Transparency = blast.Transparency + (1/120) | |
| 1162 | blast2.Transparency = blast2.Transparency + (1/120) | |
| 1163 | blast3.Transparency = blast3.Transparency + (1/120) | |
| 1164 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
| 1165 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
| 1166 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
| 1167 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
| 1168 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
| 1169 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
| 1170 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
| 1171 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
| 1172 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
| 1173 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
| 1174 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
| 1175 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
| 1176 | X.CFrame = cf | |
| 1177 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
| 1178 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
| 1179 | part3.CFrame=X.CFrame | |
| 1180 | part4.CFrame=X.CFrame | |
| 1181 | part7.CFrame=X.CFrame | |
| 1182 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
| 1183 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
| 1184 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1185 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
| 1186 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
| 1187 | rs:wait() | |
| 1188 | end | |
| 1189 | X:Destroy() | |
| 1190 | part:Destroy() | |
| 1191 | part2:Destroy() | |
| 1192 | part3:Destroy() | |
| 1193 | part4:Destroy() | |
| 1194 | part5:Destroy() | |
| 1195 | part6:Destroy() | |
| 1196 | blast:Destroy() | |
| 1197 | blast2:Destroy() | |
| 1198 | blast3:Destroy() | |
| 1199 | z:Destroy() | |
| 1200 | z1:Destroy() | |
| 1201 | z2:Destroy() | |
| 1202 | z3:Destroy() | |
| 1203 | z4:Destroy() | |
| 1204 | end | |
| 1205 | end) | |
| 1206 | for i = 1, 20 do | |
| 1207 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
| 1208 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
| 1209 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 1210 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
| 1211 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 1212 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 1213 | if Debounces.on == false then break end | |
| 1214 | rs:wait() | |
| 1215 | end | |
| 1216 | if Debounces.CanAttack == false then | |
| 1217 | Debounces.CanAttack = true | |
| 1218 | Debounces.NoIdl = false | |
| 1219 | Debounces.on = false | |
| 1220 | end | |
| 1221 | end | |
| 1222 | end | |
| 1223 | end) | |
| 1224 | ---------------------------------------------------- | |
| 1225 | mouse.KeyDown:connect(function(key) | |
| 1226 | if key == "e" then | |
| 1227 | if Debounces.CanAttack == true then | |
| 1228 | Debounces.CanAttack = false | |
| 1229 | Debounces.on = true | |
| 1230 | Debounces.NoIdl = true | |
| 1231 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 1232 | z = Instance.new("Sound", rarm)
| |
| 1233 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 1234 | z.Volume = .6 | |
| 1235 | z.Pitch = pt[math.random(1,#pt)] | |
| 1236 | z.Looped = false | |
| 1237 | z:Play() | |
| 1238 | Debounces.RPunch = true | |
| 1239 | Debounces.LPunch = true | |
| 1240 | Debounces.ks = true | |
| 1241 | Debounces.ks2 = true | |
| 1242 | for i = 1, 3 do | |
| 1243 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1244 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1245 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1246 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1247 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1248 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1249 | if Debounces.on == false then break end | |
| 1250 | wait() | |
| 1251 | end | |
| 1252 | z2 = Instance.new("Sound", larm)
| |
| 1253 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1254 | z2.Volume = .6 | |
| 1255 | z2.Pitch = pt[math.random(1,#pt)] | |
| 1256 | z2.Looped = false | |
| 1257 | z2:Play() | |
| 1258 | for i = 1, 3 do | |
| 1259 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1260 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1261 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1262 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1263 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1264 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1265 | if Debounces.on == false then break end | |
| 1266 | wait() | |
| 1267 | end | |
| 1268 | z3 = Instance.new("Sound", rarm)
| |
| 1269 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1270 | z3.Volume = 0.6 | |
| 1271 | z3.Pitch = pt[math.random(1,#pt)] | |
| 1272 | z3.Looped = false | |
| 1273 | z3:Play() | |
| 1274 | for i = 1, 3 do | |
| 1275 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1276 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1277 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1278 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1279 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1280 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1281 | if Debounces.on == false then break end | |
| 1282 | wait() | |
| 1283 | end | |
| 1284 | z4 = Instance.new("Sound", larm)
| |
| 1285 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1286 | z4.Volume = .6 | |
| 1287 | z4.Pitch = pt[math.random(1,#pt)] | |
| 1288 | z4.Looped = false | |
| 1289 | z4:Play() | |
| 1290 | for i = 1, 3 do | |
| 1291 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1292 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1293 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1294 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1295 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1296 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1297 | if Debounces.on == false then break end | |
| 1298 | wait() | |
| 1299 | end | |
| 1300 | z5 = Instance.new("Sound", rarm)
| |
| 1301 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1302 | z5.Volume = .6 | |
| 1303 | z5.Pitch = pt[math.random(1,#pt)] | |
| 1304 | z5.Looped = false | |
| 1305 | z5:Play() | |
| 1306 | for i = 1, 3 do | |
| 1307 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1308 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1309 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1310 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1311 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1312 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1313 | if Debounces.on == false then break end | |
| 1314 | wait() | |
| 1315 | end | |
| 1316 | z6 = Instance.new("Sound", larm)
| |
| 1317 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1318 | z6.Volume = .6 | |
| 1319 | z6.Pitch = pt[math.random(1,#pt)] | |
| 1320 | z6.Looped = false | |
| 1321 | z6:Play() | |
| 1322 | for i = 1, 3 do | |
| 1323 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1324 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1325 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1326 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1327 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1328 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1329 | if Debounces.on == false then break end | |
| 1330 | wait() | |
| 1331 | end | |
| 1332 | z7 = Instance.new("Sound", rarm)
| |
| 1333 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 1334 | z7.Volume = .6 | |
| 1335 | z7.Pitch = pt[math.random(1,#pt)] | |
| 1336 | z7.Looped = false | |
| 1337 | z7:Play() | |
| 1338 | for i = 1, 3 do | |
| 1339 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1340 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1341 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1342 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1343 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1344 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1345 | if Debounces.on == false then break end | |
| 1346 | wait() | |
| 1347 | end | |
| 1348 | z8 = Instance.new("Sound", larm)
| |
| 1349 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1350 | z8.Volume = .6 | |
| 1351 | z8.Pitch = pt[math.random(1,#pt)] | |
| 1352 | z8.Looped = false | |
| 1353 | z8:Play() | |
| 1354 | for i = 1, 3 do | |
| 1355 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1356 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1357 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1358 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1359 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1360 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1361 | if Debounces.on == false then break end | |
| 1362 | wait() | |
| 1363 | end | |
| 1364 | z9 = Instance.new("Sound", rarm)
| |
| 1365 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1366 | z9.Volume = 0.6 | |
| 1367 | z9.Pitch = pt[math.random(1,#pt)] | |
| 1368 | z9.Looped = false | |
| 1369 | z9:Play() | |
| 1370 | for i = 1, 3 do | |
| 1371 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1372 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1373 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1374 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1375 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1376 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1377 | if Debounces.on == false then break end | |
| 1378 | wait() | |
| 1379 | end | |
| 1380 | z10 = Instance.new("Sound", larm)
| |
| 1381 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1382 | z10.Volume = .6 | |
| 1383 | z10.Pitch = pt[math.random(1,#pt)] | |
| 1384 | z10.Looped = false | |
| 1385 | z10:Play() | |
| 1386 | for i = 1, 3 do | |
| 1387 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1388 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1389 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1390 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1391 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1392 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1393 | if Debounces.on == false then break end | |
| 1394 | wait() | |
| 1395 | end | |
| 1396 | z11 = Instance.new("Sound", rarm)
| |
| 1397 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1398 | z11.Volume = .6 | |
| 1399 | z11.Pitch = pt[math.random(1,#pt)] | |
| 1400 | z11.Looped = false | |
| 1401 | z11:Play() | |
| 1402 | for i = 1, 3 do | |
| 1403 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1404 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1405 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1406 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1407 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1408 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1409 | if Debounces.on == false then break end | |
| 1410 | wait() | |
| 1411 | end | |
| 1412 | z12 = Instance.new("Sound", larm)
| |
| 1413 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1414 | z12.Volume = .6 | |
| 1415 | z12.Pitch = pt[math.random(1,#pt)] | |
| 1416 | z12.Looped = false | |
| 1417 | z12:Play() | |
| 1418 | for i = 1, 3 do | |
| 1419 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1420 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1421 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1422 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1423 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1424 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1425 | if Debounces.on == false then break end | |
| 1426 | wait() | |
| 1427 | end | |
| 1428 | z13 = Instance.new("Sound", rarm)
| |
| 1429 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1430 | z13.Volume = 0.6 | |
| 1431 | z13.Pitch = pt[math.random(1,#pt)] | |
| 1432 | z13.Looped = false | |
| 1433 | z13:Play() | |
| 1434 | for i = 1, 3 do | |
| 1435 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1436 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1437 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1438 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1439 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1440 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1441 | if Debounces.on == false then break end | |
| 1442 | wait() | |
| 1443 | end | |
| 1444 | z14 = Instance.new("Sound", larm)
| |
| 1445 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1446 | z14.Volume = .6 | |
| 1447 | z14.Pitch = pt[math.random(1,#pt)] | |
| 1448 | z14.Looped = false | |
| 1449 | z14:Play() | |
| 1450 | for i = 1, 3 do | |
| 1451 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1452 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1453 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1454 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1455 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1456 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1457 | if Debounces.on == false then break end | |
| 1458 | wait() | |
| 1459 | end | |
| 1460 | z15 = Instance.new("Sound", rarm)
| |
| 1461 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1462 | z15.Volume = .6 | |
| 1463 | z15.Pitch = pt[math.random(1,#pt)] | |
| 1464 | z15.Looped = false | |
| 1465 | z15:Play() | |
| 1466 | for i = 1, 3 do | |
| 1467 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1468 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1469 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1470 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1471 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1472 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1473 | if Debounces.on == false then break end | |
| 1474 | wait() | |
| 1475 | end | |
| 1476 | z16 = Instance.new("Sound", larm)
| |
| 1477 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1478 | z16.Volume = .6 | |
| 1479 | z16.Pitch = pt[math.random(1,#pt)] | |
| 1480 | z16.Looped = false | |
| 1481 | z16:Play() | |
| 1482 | for i = 1, 3 do | |
| 1483 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1484 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1485 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1486 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1487 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1488 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1489 | if Debounces.on == false then break end | |
| 1490 | wait() | |
| 1491 | end | |
| 1492 | z17 = Instance.new("Sound", rarm)
| |
| 1493 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 1494 | z17.Volume = .6 | |
| 1495 | z17.Pitch = pt[math.random(1,#pt)] | |
| 1496 | z17.Looped = false | |
| 1497 | z17:Play() | |
| 1498 | for i = 1, 3 do | |
| 1499 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1500 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1501 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1502 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1503 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1504 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1505 | if Debounces.on == false then break end | |
| 1506 | wait() | |
| 1507 | end | |
| 1508 | z18 = Instance.new("Sound", larm)
| |
| 1509 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1510 | z18.Volume = .6 | |
| 1511 | z18.Pitch = pt[math.random(1,#pt)] | |
| 1512 | z18.Looped = false | |
| 1513 | z18:Play() | |
| 1514 | for i = 1, 3 do | |
| 1515 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1516 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1517 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1518 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1519 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1520 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1521 | if Debounces.on == false then break end | |
| 1522 | wait() | |
| 1523 | end | |
| 1524 | z19 = Instance.new("Sound", rarm)
| |
| 1525 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1526 | z19.Volume = 0.6 | |
| 1527 | z19.Pitch = pt[math.random(1,#pt)] | |
| 1528 | z19.Looped = false | |
| 1529 | z19:Play() | |
| 1530 | for i = 1, 3 do | |
| 1531 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1532 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1533 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1534 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1535 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1536 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1537 | if Debounces.on == false then break end | |
| 1538 | wait() | |
| 1539 | end | |
| 1540 | z20 = Instance.new("Sound", larm)
| |
| 1541 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1542 | z20.Volume = .6 | |
| 1543 | z20.Pitch = pt[math.random(1,#pt)] | |
| 1544 | z20.Looped = false | |
| 1545 | z20:Play() | |
| 1546 | for i = 1, 3 do | |
| 1547 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1548 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1549 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1550 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1551 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1552 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1553 | if Debounces.on == false then break end | |
| 1554 | wait() | |
| 1555 | end | |
| 1556 | z:Destroy() | |
| 1557 | z2:Destroy() | |
| 1558 | z3:Destroy() | |
| 1559 | z4:Destroy() | |
| 1560 | z5:Destroy() | |
| 1561 | z6:Destroy() | |
| 1562 | z7:Destroy() | |
| 1563 | z8:Destroy() | |
| 1564 | z9:Destroy() | |
| 1565 | z10:Destroy() | |
| 1566 | z11:Destroy() | |
| 1567 | z12:Destroy() | |
| 1568 | z13:Destroy() | |
| 1569 | z14:Destroy() | |
| 1570 | z15:Destroy() | |
| 1571 | z16:Destroy() | |
| 1572 | z17:Destroy() | |
| 1573 | z18:Destroy() | |
| 1574 | z19:Destroy() | |
| 1575 | z20:Destroy() | |
| 1576 | Debounces.LPunch = false | |
| 1577 | Debounces.RPunch = false | |
| 1578 | Debounces.ks = false | |
| 1579 | Debounces.ks2 = false | |
| 1580 | if Debounces.CanAttack == false then | |
| 1581 | Debounces.CanAttack = true | |
| 1582 | Debounces.on = false | |
| 1583 | Debounces.NoIdl = false | |
| 1584 | end | |
| 1585 | end | |
| 1586 | end | |
| 1587 | end) | |
| 1588 | ------------------------------- | |
| 1589 | mouse.KeyDown:connect(function(key) | |
| 1590 | if key == "t" then | |
| 1591 | if Debounces.CanAttack == true then | |
| 1592 | Debounces.CanAttack = false | |
| 1593 | Debounces.NoIdl = true | |
| 1594 | Debounces.on = true | |
| 1595 | Debounces.ks = true | |
| 1596 | kik = rleg.Touched:connect(function(ht) | |
| 1597 | hit = ht.Parent | |
| 1598 | if ht and hit:IsA("Model") then
| |
| 1599 | if hit:FindFirstChild("Humanoid") then
| |
| 1600 | if hit.Name ~= p.Name then | |
| 1601 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1602 | Debounces.Slashed = true]]-- | |
| 1603 | if Debounces.ks==true then | |
| 1604 | z = Instance.new("Sound",hed)
| |
| 1605 | z.SoundId = "rbxassetid://169380525" | |
| 1606 | z.Volume = 1 | |
| 1607 | z:Play() | |
| 1608 | Debounces.ks=false | |
| 1609 | end | |
| 1610 | hit:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 1611 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 1612 | --Debounces.Slashed = false | |
| 1613 | --end | |
| 1614 | end | |
| 1615 | end | |
| 1616 | elseif ht and hit:IsA("Hat") then
| |
| 1617 | if hit.Parent.Name ~= p.Name then | |
| 1618 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1619 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1620 | Debounces.Slashed = true]]-- | |
| 1621 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 1622 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 1623 | --Debounces.Slashed = false | |
| 1624 | --end | |
| 1625 | end | |
| 1626 | end | |
| 1627 | end | |
| 1628 | end) | |
| 1629 | for i = 1,20 do | |
| 1630 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 1631 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
| 1632 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1633 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
| 1634 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
| 1635 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
| 1636 | if Debounces.on == false then break end | |
| 1637 | rs:wait() | |
| 1638 | end | |
| 1639 | kik:disconnect() | |
| 1640 | if Debounces.CanAttack == false then | |
| 1641 | Debounces.CanAttack = true | |
| 1642 | Debounces.NoIdl = false | |
| 1643 | Debounces.on = false | |
| 1644 | end | |
| 1645 | end | |
| 1646 | end | |
| 1647 | end) | |
| 1648 | ---------------------------------------------------- | |
| 1649 | mouse.KeyDown:connect(function(key) | |
| 1650 | if key == "y" then | |
| 1651 | if Debounces.CanAttack == true then | |
| 1652 | Debounces.CanAttack = false | |
| 1653 | Debounces.on = true | |
| 1654 | Debounces.NoIdl = true | |
| 1655 | for i = 1, 15 do | |
| 1656 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
| 1657 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
| 1658 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
| 1659 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
| 1660 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
| 1661 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
| 1662 | if Debounces.on == false then break end | |
| 1663 | rs:wait(2.7) | |
| 1664 | end | |
| 1665 | x = Instance.new("Sound",char)
| |
| 1666 | x.SoundId = "rbxassetid://228343271" | |
| 1667 | x.Pitch = 1 | |
| 1668 | x.Volume = .8 | |
| 1669 | wait(.1) | |
| 1670 | x:Play() | |
| 1671 | Debounces.on = false | |
| 1672 | Debounces.Here = false | |
| 1673 | shot = shot + 1 | |
| 1674 | local rng = Instance.new("Part", larm)
| |
| 1675 | rng.Anchored = true | |
| 1676 | rng.BrickColor = BrickColor.new("Toothpaste")
| |
| 1677 | rng.CanCollide = false | |
| 1678 | rng.FormFactor = 3 | |
| 1679 | rng.Name = "Ring" | |
| 1680 | rng.Size = Vector3.new(1, 1, 1) | |
| 1681 | rng.Transparency = 0.35 | |
| 1682 | rng.TopSurface = 0 | |
| 1683 | rng.BottomSurface = 0 | |
| 1684 | rng2 = rng:clone() | |
| 1685 | rng3 = rng2:clone() | |
| 1686 | rng4 = rng2:clone() | |
| 1687 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1688 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1689 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 1690 | rngm2 = rngm:clone() | |
| 1691 | rngm2.Scale = Vector3.new(5, 5, 3) | |
| 1692 | rngm3=rngm2:clone() | |
| 1693 | rngm3.Parent = rng3 | |
| 1694 | rngm3.Scale = Vector3.new(8, 8, 1) | |
| 1695 | rngm4 = rngm2:clone() | |
| 1696 | rngm4.Parent = rng4 | |
| 1697 | rngm4.Scale = Vector3.new(6, 6, 1) | |
| 1698 | local bem = Instance.new("Part", larm)
| |
| 1699 | bem.Anchored = true | |
| 1700 | bem.BrickColor = BrickColor.new("Really blue")
| |
| 1701 | bem.CanCollide = false | |
| 1702 | bem.FormFactor = 3 | |
| 1703 | bem.Name = "Beam" .. shot | |
| 1704 | bem.Size = Vector3.new(1, 1, 1) | |
| 1705 | bem.Transparency = 0.35 | |
| 1706 | bem.TopSurface = 0 | |
| 1707 | bem.BottomSurface = 0 | |
| 1708 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 1709 | bemm.MeshType = 4 | |
| 1710 | bemm.Scale = Vector3.new(1, 4, 4) | |
| 1711 | local out = Instance.new("Part", larm)
| |
| 1712 | out.Anchored = true | |
| 1713 | out.BrickColor = BrickColor.new("Toothpaste")
| |
| 1714 | out.CanCollide = false | |
| 1715 | out.FormFactor = 3 | |
| 1716 | out.Name = "Out" | |
| 1717 | out.Size = Vector3.new(4, 4, 4) | |
| 1718 | out.Transparency = 0.35 | |
| 1719 | out.TopSurface = 0 | |
| 1720 | out.BottomSurface = 0 | |
| 1721 | local outm = Instance.new("SpecialMesh", out)
| |
| 1722 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 1723 | outm.Scale = Vector3.new(6, 4, 6) | |
| 1724 | local bnd = Instance.new("Part", larm)
| |
| 1725 | bnd.Anchored = true | |
| 1726 | bnd.BrickColor = BrickColor.new("Pastel blue")
| |
| 1727 | bnd.CanCollide = false | |
| 1728 | bnd.FormFactor = 3 | |
| 1729 | bnd.Name = "Bend" | |
| 1730 | bnd.Size = Vector3.new(1, 1, 1) | |
| 1731 | bnd.Transparency = 1 | |
| 1732 | bnd.TopSurface = 0 | |
| 1733 | bnd.BottomSurface = 0 | |
| 1734 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 1735 | bndm.MeshType = 3 | |
| 1736 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 1737 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 1738 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1739 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 1740 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 1741 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
| 1742 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
| 1743 | Debounces.Shewt = true | |
| 1744 | coroutine.wrap(function() | |
| 1745 | for i = 1, 20, 0.2 do | |
| 1746 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 1747 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
| 1748 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
| 1749 | rng.Transparency = i/20 | |
| 1750 | rng3.Transparency = 1/24 | |
| 1751 | rng4.Transparency = i/26 | |
| 1752 | wait() | |
| 1753 | end | |
| 1754 | wait() | |
| 1755 | rng:Destroy() | |
| 1756 | end)() | |
| 1757 | if Debounces.Shewt == true then | |
| 1758 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 1759 | hit = ht.Parent | |
| 1760 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 1761 | if HasntTouched(hit.Name) == true and deb == false then | |
| 1762 | deb = true | |
| 1763 | coroutine.wrap(function() | |
| 1764 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1765 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1766 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 1767 | end)() | |
| 1768 | table.insert(Touche, hit.Name) | |
| 1769 | deb = false | |
| 1770 | end | |
| 1771 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 1772 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 1773 | deb = true | |
| 1774 | coroutine.wrap(function() | |
| 1775 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1776 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1777 | wait(1) | |
| 1778 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 1779 | end)() | |
| 1780 | table.insert(Touche, hit.Parent.Name) | |
| 1781 | deb = false | |
| 1782 | for i, v in pairs(Touche) do | |
| 1783 | print(v) | |
| 1784 | end | |
| 1785 | end | |
| 1786 | end | |
| 1787 | end) | |
| 1788 | end | |
| 1789 | for i = 0, 260, 8 do | |
| 1790 | bem.Size = Vector3.new(i, 3, 3) | |
| 1791 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 1792 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1793 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 1794 | bnd.Size = Vector3.new(1,1,1) | |
| 1795 | bndm.Scale = Vector3.new(8,8,8) | |
| 1796 | if i % 10 == 0 then | |
| 1797 | local newRng = rng2:Clone() | |
| 1798 | newRng.Parent = larm | |
| 1799 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1800 | local newRngm = rngm2:clone() | |
| 1801 | newRngm.Parent=newRng | |
| 1802 | coroutine.wrap(function() | |
| 1803 | for i = 1, 10, 0.2 do | |
| 1804 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
| 1805 | newRng.Transparency = i/10 | |
| 1806 | wait() | |
| 1807 | end | |
| 1808 | wait() | |
| 1809 | newRng:Destroy() | |
| 1810 | end)() | |
| 1811 | end | |
| 1812 | wait() | |
| 1813 | end | |
| 1814 | wait() | |
| 1815 | Debounces.Shewt = false | |
| 1816 | bem:Destroy() | |
| 1817 | out:Destroy() | |
| 1818 | bnd:Destroy() | |
| 1819 | Debounces.Ready = false | |
| 1820 | for i, v in pairs(Touche) do | |
| 1821 | table.remove(Touche, i) | |
| 1822 | end | |
| 1823 | wait() | |
| 1824 | table.insert(Touche, char.Name) | |
| 1825 | Debounces.NoIdl = false | |
| 1826 | if Debounces.CanAttack == false then | |
| 1827 | Debounces.CanAttack = true | |
| 1828 | end | |
| 1829 | end | |
| 1830 | end | |
| 1831 | end) | |
| 1832 | ---------------------------------------------------- | |
| 1833 | --[[mouse.KeyDown:connect(function(key) | |
| 1834 | if key == "y" then | |
| 1835 | if Debounces.CanAttack == true then | |
| 1836 | Debounces.CanAttack = false | |
| 1837 | Debounces.NoIdl = true | |
| 1838 | Debounces.on = true | |
| 1839 | local shell = Instance.new("Part",torso)
| |
| 1840 | shell.BrickColor = BrickColor.new("Teal")
| |
| 1841 | shell.Anchored = false | |
| 1842 | shell.CanCollide = false | |
| 1843 | shell.Locked = true | |
| 1844 | shell.TopSurface = "SmoothNoOutlines" | |
| 1845 | shell.BottomSurface = "SmoothNoOutlines" | |
| 1846 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
| 1847 | shell.FormFactor = 3 | |
| 1848 | local shellm = Instance.new("SpecialMesh",shell)
| |
| 1849 | shellm.MeshType = "Sphere" | |
| 1850 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 1851 | Omega = function() | |
| 1852 | local X = Instance.new("Part",char)
| |
| 1853 | local O = Instance.new("ObjectValue",X)
| |
| 1854 | O.Name = "creator" | |
| 1855 | X.Locked = true | |
| 1856 | X.Name = "Shell" | |
| 1857 | X.Anchored = false | |
| 1858 | X.CanCollide = false | |
| 1859 | X.Transparency = 0.5 | |
| 1860 | X.Reflectance = 0 | |
| 1861 | X.BottomSurface = 0 | |
| 1862 | X.TopSurface = 0 | |
| 1863 | X.Shape = 0 | |
| 1864 | local V = Instance.new("ObjectValue",X)
| |
| 1865 | V.Value = char | |
| 1866 | V.Name = "creator" | |
| 1867 | X.BrickColor = BrickColor.new("Really blue")
| |
| 1868 | X.Size = Vector3.new(40,40,40) | |
| 1869 | --X.Material = "Neon" | |
| 1870 | local Z = Instance.new("SpecialMesh",X)
| |
| 1871 | Z.MeshType = "Sphere" | |
| 1872 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
| 1873 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 1874 | local bv = Instance.new("BodyVelocity",X)
| |
| 1875 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 1876 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 1877 | bv.velocity = root.CFrame.lookVector*10 | |
| 1878 | Explode = X.Touched:connect(function(hit) | |
| 1879 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then
| |
| 1880 | local cf = X.CFrame | |
| 1881 | bv:Destroy() | |
| 1882 | X.Anchored = true | |
| 1883 | Z:Remove() | |
| 1884 | Explode:disconnect() | |
| 1885 | X.Size = Vector3.new(3,3,3) | |
| 1886 | X.Touched:connect(function(hit) end) | |
| 1887 | X.CanCollide = false | |
| 1888 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
| 1889 | if v:FindFirstChild('Humanoid') then
| |
| 1890 | v.Humanoid:TakeDamage(math.random(80,120)) | |
| 1891 | end | |
| 1892 | end | |
| 1893 | for i = 1, (40) do rs:wait() | |
| 1894 | X.Transparency = X.Transparency + (1/40) | |
| 1895 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 1896 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
| 1897 | end | |
| 1898 | X:Destroy() | |
| 1899 | end | |
| 1900 | end) | |
| 1901 | end | |
| 1902 | for i = 1,200 do | |
| 1903 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1904 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
| 1905 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
| 1906 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1907 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1908 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1909 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1910 | if Debounces.on == false then break end | |
| 1911 | rs:wait() | |
| 1912 | end | |
| 1913 | for i = 1,30 do | |
| 1914 | shell.CFrame = torso.CFrame * CFrame.new(0,8,0) | |
| 1915 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
| 1916 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
| 1917 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1918 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1919 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1920 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1921 | if Debounces.on == false then break end | |
| 1922 | rs:wait() | |
| 1923 | end | |
| 1924 | for i = 1,40 do | |
| 1925 | shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
| 1926 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 1927 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
| 1928 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
| 1929 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1930 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1931 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1932 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1933 | if Debounces.on == false then break end | |
| 1934 | rs:wait() | |
| 1935 | end | |
| 1936 | for i = 1,40 do | |
| 1937 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
| 1938 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
| 1939 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
| 1940 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1941 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1942 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1943 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1944 | if Debounces.on == false then break end | |
| 1945 | rs:wait() | |
| 1946 | end | |
| 1947 | for i = 1,60 do | |
| 1948 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 1949 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
| 1950 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
| 1951 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1952 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1953 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1954 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1955 | if Debounces.on == false then break end | |
| 1956 | rs:wait() | |
| 1957 | end | |
| 1958 | for i = 1,60 do | |
| 1959 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 1960 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 1961 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
| 1962 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
| 1963 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1964 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1965 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1966 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1967 | if Debounces.on == false then break end | |
| 1968 | rs:wait() | |
| 1969 | end | |
| 1970 | if Debounces.CanAttack == false then | |
| 1971 | Debounces.CanAttack = true | |
| 1972 | Debounces.NoIdl = false | |
| 1973 | Debounces.on = false | |
| 1974 | end | |
| 1975 | end | |
| 1976 | end | |
| 1977 | end)]]-- | |
| 1978 | ---------------------------------------------------- | |
| 1979 | Charging = false | |
| 1980 | mouse.KeyDown:connect(function(key) | |
| 1981 | if key == "r" then | |
| 1982 | if Charging == false then | |
| 1983 | Charging = true | |
| 1984 | if Debounces.CanAttack == true then | |
| 1985 | Debounces.CanAttack = false | |
| 1986 | Debounces.NoIdl = true | |
| 1987 | Debounces.on = true | |
| 1988 | for i = 1,20 do | |
| 1989 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
| 1990 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
| 1991 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 1992 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 1993 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 1994 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 1995 | if Debounces.on == false then break end | |
| 1996 | rs:wait() | |
| 1997 | end | |
| 1998 | --[[for i = 1,20 do | |
| 1999 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
| 2000 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
| 2001 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 2002 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
| 2003 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 2004 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 2005 | if Debounces.on == false then break end | |
| 2006 | rs:wait() | |
| 2007 | end]]-- | |
| 2008 | pt=Instance.new('Part',torso)
| |
| 2009 | pt.Anchored=true | |
| 2010 | pt.CanCollide=false | |
| 2011 | pt.Locked = true | |
| 2012 | pt.FormFactor='Custom' | |
| 2013 | pt.Size=Vector3.new(1,1,1) | |
| 2014 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2015 | pt.Transparency=.6 | |
| 2016 | pt.BrickColor=BrickColor.new('Cyan')
| |
| 2017 | msh=Instance.new('SpecialMesh',pt)
| |
| 2018 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 2019 | msh.Scale=Vector3.new(8,4,8) | |
| 2020 | pt2=pt:clone() | |
| 2021 | pt2.Parent = torso | |
| 2022 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2023 | pt2.BrickColor=BrickColor.new("Really blue")
| |
| 2024 | msh2=msh:clone() | |
| 2025 | msh2.Parent=pt2 | |
| 2026 | msh2.Scale=Vector3.new(10,5,10) | |
| 2027 | ||
| 2028 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
| |
| 2029 | ||
| 2030 | bl = Instance.new("Part", char)
| |
| 2031 | bl.Locked = true | |
| 2032 | bl.Name = "Shell" | |
| 2033 | bl.BrickColor = BrickColor.new("Toothpaste")
| |
| 2034 | bl.Anchored = true | |
| 2035 | bl.CanCollide = false | |
| 2036 | bl.Transparency = 0 | |
| 2037 | bl.Reflectance = 0 | |
| 2038 | bl.BottomSurface = 0 | |
| 2039 | bl.TopSurface = 0 | |
| 2040 | bl.Shape = 0 | |
| 2041 | blm = Instance.new("SpecialMesh",bl)
| |
| 2042 | blm.MeshType = "Sphere" | |
| 2043 | blm.Scale = Vector3.new(1,1,1) | |
| 2044 | blm.MeshId = "rbxassetid://9982590" | |
| 2045 | ||
| 2046 | coroutine.resume(coroutine.create(function() | |
| 2047 | for i=1, math.huge, 4 do | |
| 2048 | if Charging == true then | |
| 2049 | rs:wait() | |
| 2050 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 2051 | blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1) | |
| 2052 | bl.Transparency = bl.Transparency + 0.005 | |
| 2053 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 2054 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2055 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
| 2056 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
| 2057 | elseif Charging == false then break | |
| 2058 | end | |
| 2059 | end | |
| 2060 | end)) | |
| 2061 | ||
| 2062 | repeat | |
| 2063 | local p = Instance.new('Part',torso)
| |
| 2064 | p.formFactor = 'Custom' | |
| 2065 | p.Size = Vector3.new(1,1,1) | |
| 2066 | p.BrickColor = workspace.Base.BrickColor | |
| 2067 | p.CanCollide = false | |
| 2068 | p.Transparency = 0 | |
| 2069 | p.Anchored = true | |
| 2070 | p.Locked=true | |
| 2071 | p.Material = workspace.Base.Material | |
| 2072 | s = math.random(1,40)/10 | |
| 2073 | local m = Instance.new("BlockMesh",p)
| |
| 2074 | m.Scale = Vector3.new(s,s,s) | |
| 2075 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2076 | --[[coroutine.wrap(function() | |
| 2077 | wait(2) | |
| 2078 | while Charging == true do | |
| 2079 | wait(2) | |
| 2080 | GroundWave1() | |
| 2081 | wait(2) | |
| 2082 | end | |
| 2083 | end)()]]-- | |
| 2084 | Spawn(function() | |
| 2085 | while rs:wait() do | |
| 2086 | if Charging == true then | |
| 2087 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
| 2088 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
| 2089 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
| 2090 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 2091 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
| 2092 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
| 2093 | elseif Charging == false then break | |
| 2094 | end | |
| 2095 | end | |
| 2096 | end) | |
| 2097 | Spawn(function() | |
| 2098 | while rs:wait() do | |
| 2099 | if p.Transparency >= 1 then p:Destroy() break end | |
| 2100 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 2101 | p.Transparency = p.Transparency+0.01 | |
| 2102 | end | |
| 2103 | end) | |
| 2104 | wait(.3) | |
| 2105 | until Charging == false | |
| 2106 | end | |
| 2107 | end | |
| 2108 | end | |
| 2109 | end) | |
| 2110 | ---------------------------------------------------- | |
| 2111 | mouse.KeyUp:connect(function(key) | |
| 2112 | if key == "r" then | |
| 2113 | if Charging == true then | |
| 2114 | Charging = false | |
| 2115 | pt:Destroy() | |
| 2116 | pt2:Destroy() | |
| 2117 | bl:Destroy() | |
| 2118 | if Debounces.CanAttack == false then | |
| 2119 | Debounces.CanAttack = true | |
| 2120 | Debounces.NoIdl = false | |
| 2121 | Debounces.on = false | |
| 2122 | end | |
| 2123 | end | |
| 2124 | end | |
| 2125 | end) | |
| 2126 | ---------------------------------------------------- | |
| 2127 | mouse.KeyDown:connect(function(key) | |
| 2128 | if key == "g" then | |
| 2129 | if Debounces.CanAttack == true then | |
| 2130 | Debounces.CanAttack = false | |
| 2131 | Debounces.NoIdl = true | |
| 2132 | Debounces.on = true | |
| 2133 | local shell = Instance.new("Part",torso)
| |
| 2134 | shell.BrickColor = BrickColor.new("Cyan")
| |
| 2135 | shell.Anchored = true | |
| 2136 | shell.CanCollide = false | |
| 2137 | shell.Locked = true | |
| 2138 | shell.TopSurface = "SmoothNoOutlines" | |
| 2139 | shell.BottomSurface = "SmoothNoOutlines" | |
| 2140 | shell.Size = Vector3.new(1,1,1) | |
| 2141 | shellm = Instance.new("SpecialMesh",shell)
| |
| 2142 | shellm.MeshType = "Sphere" | |
| 2143 | shellm.Scale = Vector3.new(1,1,1) | |
| 2144 | local shell2 = Instance.new("Part",torso)
| |
| 2145 | shell2.BrickColor = BrickColor.new("Cyan")
| |
| 2146 | shell2.Anchored = true | |
| 2147 | shell2.CanCollide = false | |
| 2148 | shell2.Locked = true | |
| 2149 | shell2.TopSurface = "SmoothNoOutlines" | |
| 2150 | shell2.BottomSurface = "SmoothNoOutlines" | |
| 2151 | shell2.Size = Vector3.new(1,1,1) | |
| 2152 | shellm2 = Instance.new("SpecialMesh",shell2)
| |
| 2153 | shellm2.MeshType = "Sphere" | |
| 2154 | shellm2.Scale = Vector3.new(1,1,1) | |
| 2155 | ||
| 2156 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 2157 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 2158 | local List = {}
| |
| 2159 | for i,v in pairs(workspace:GetChildren())do | |
| 2160 | if v:IsA("Model")then
| |
| 2161 | if v:findFirstChild("Torso")then
| |
| 2162 | if v ~= char then | |
| 2163 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 2164 | table.insert(List,v) | |
| 2165 | end | |
| 2166 | end | |
| 2167 | end | |
| 2168 | end | |
| 2169 | end | |
| 2170 | return List | |
| 2171 | end | |
| 2172 | ||
| 2173 | Shell = function() | |
| 2174 | local X = Instance.new("Part",char)
| |
| 2175 | local O = Instance.new("ObjectValue",X)
| |
| 2176 | O.Name = "creator" | |
| 2177 | X.Locked = true | |
| 2178 | X.Name = "Shell" | |
| 2179 | X.Anchored = false | |
| 2180 | X.CanCollide = false | |
| 2181 | X.Transparency = 0 | |
| 2182 | X.Reflectance = 0 | |
| 2183 | X.BottomSurface = 0 | |
| 2184 | X.TopSurface = 0 | |
| 2185 | X.Shape = 0 | |
| 2186 | local V = Instance.new("ObjectValue",X)
| |
| 2187 | V.Value = char | |
| 2188 | V.Name = "creator" | |
| 2189 | X.BrickColor = BrickColor.new("Cyan")
| |
| 2190 | X.Size = Vector3.new(1,1,1) | |
| 2191 | --X.Material = "Neon" | |
| 2192 | local Z = Instance.new("SpecialMesh",X)
| |
| 2193 | Z.MeshType = "Sphere" | |
| 2194 | Z.Scale = Vector3.new(1,1,1) | |
| 2195 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 2196 | local bv = Instance.new("BodyVelocity",X)
| |
| 2197 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 2198 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 2199 | bv.velocity = root.CFrame.lookVector*65 | |
| 2200 | Explode = X.Touched:connect(function(hit) | |
| 2201 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then
| |
| 2202 | local cf = X.CFrame | |
| 2203 | bv:Destroy() | |
| 2204 | X.Anchored = true | |
| 2205 | Z:Remove() | |
| 2206 | Explode:disconnect() | |
| 2207 | X.Size = Vector3.new(3,3,3) | |
| 2208 | X.Touched:connect(function(hit) end) | |
| 2209 | X.CanCollide = false | |
| 2210 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
| 2211 | if v:FindFirstChild('Humanoid') then
| |
| 2212 | v.Humanoid:TakeDamage(math.random(6,12)) | |
| 2213 | end | |
| 2214 | end | |
| 2215 | for i = 1, (40) do rs:wait() | |
| 2216 | X.Transparency = X.Transparency + (1/40) | |
| 2217 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 2218 | X.CFrame = cf | |
| 2219 | end | |
| 2220 | X:Destroy() | |
| 2221 | end | |
| 2222 | end) | |
| 2223 | end | |
| 2224 | Shell() | |
| 2225 | for i = 1, 10 do | |
| 2226 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2227 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2228 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2229 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2230 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
| 2231 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
| 2232 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
| 2233 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
| 2234 | if Debounces.on == false then break end | |
| 2235 | rs:wait() | |
| 2236 | end | |
| 2237 | Shell() | |
| 2238 | shell.Transparency = 1 | |
| 2239 | for i = 1, 10 do | |
| 2240 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2241 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2242 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2243 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2244 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2245 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2246 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2247 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2248 | if Debounces.on == false then break end | |
| 2249 | rs:wait() | |
| 2250 | end | |
| 2251 | Shell() | |
| 2252 | shell.Transparency = 0 | |
| 2253 | shell2.Transparency = 1 | |
| 2254 | for i = 1, 10 do | |
| 2255 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2256 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2257 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2258 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2259 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 2260 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2261 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2262 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2263 | if Debounces.on == false then break end | |
| 2264 | rs:wait() | |
| 2265 | end | |
| 2266 | Shell() | |
| 2267 | shell2.Transparency = 0 | |
| 2268 | shell.Transparency = 1 | |
| 2269 | for i = 1, 10 do | |
| 2270 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2271 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2272 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2273 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2274 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2275 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2276 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2277 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2278 | if Debounces.on == false then break end | |
| 2279 | rs:wait() | |
| 2280 | end | |
| 2281 | Shell() | |
| 2282 | shell.Transparency = 0 | |
| 2283 | shell2.Transparency = 1 | |
| 2284 | for i = 1, 10 do | |
| 2285 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2286 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2287 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2288 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2289 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 2290 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2291 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2292 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2293 | if Debounces.on == false then break end | |
| 2294 | rs:wait() | |
| 2295 | end | |
| 2296 | Shell() | |
| 2297 | shell2.Transparency = 0 | |
| 2298 | shell.Transparency = 1 | |
| 2299 | for i = 1, 10 do | |
| 2300 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2301 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2302 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2303 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2304 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2305 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2306 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2307 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2308 | if Debounces.on == false then break end | |
| 2309 | rs:wait() | |
| 2310 | end | |
| 2311 | Shell() | |
| 2312 | shell.Transparency = 0 | |
| 2313 | shell2.Transparency = 1 | |
| 2314 | for i = 1, 10 do | |
| 2315 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2316 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2317 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2318 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
| 2319 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2320 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2321 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2322 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2323 | if Debounces.on == false then break end | |
| 2324 | rs:wait() | |
| 2325 | end | |
| 2326 | Shell() | |
| 2327 | shell2.Transparency = 0 | |
| 2328 | shell.Transparency = 1 | |
| 2329 | for i = 1, 10 do | |
| 2330 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2331 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2332 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2333 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2334 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2335 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2336 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2337 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2338 | if Debounces.on == false then break end | |
| 2339 | rs:wait() | |
| 2340 | end | |
| 2341 | Shell() | |
| 2342 | shell.Transparency = 0 | |
| 2343 | shell2.Transparency = 1 | |
| 2344 | for i = 1, 10 do | |
| 2345 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2346 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2347 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2348 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2349 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 2350 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2351 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2352 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2353 | if Debounces.on == false then break end | |
| 2354 | rs:wait() | |
| 2355 | end | |
| 2356 | Shell() | |
| 2357 | shell2.Transparency = 0 | |
| 2358 | shell.Transparency = 1 | |
| 2359 | for i = 1, 10 do | |
| 2360 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2361 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2362 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2363 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2364 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2365 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2366 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2367 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2368 | if Debounces.on == false then break end | |
| 2369 | rs:wait() | |
| 2370 | end | |
| 2371 | Shell() | |
| 2372 | shell.Transparency = 0 | |
| 2373 | shell2.Transparency = 1 | |
| 2374 | for i = 1, 10 do | |
| 2375 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2376 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2377 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2378 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2379 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 2380 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2381 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2382 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2383 | if Debounces.on == false then break end | |
| 2384 | rs:wait() | |
| 2385 | end | |
| 2386 | Shell() | |
| 2387 | shell2.Transparency = 0 | |
| 2388 | shell.Transparency = 1 | |
| 2389 | for i = 1, 10 do | |
| 2390 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2391 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2392 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 2393 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 2394 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 2395 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 2396 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 2397 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 2398 | if Debounces.on == false then break end | |
| 2399 | rs:wait() | |
| 2400 | end | |
| 2401 | Shell() | |
| 2402 | shell.Transparency = 0 | |
| 2403 | shell2.Transparency = 1 | |
| 2404 | for i = 1, 10 do | |
| 2405 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 2406 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 2407 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 2408 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 2409 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 2410 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 2411 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 2412 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 2413 | if Debounces.on == false then break end | |
| 2414 | rs:wait() | |
| 2415 | end | |
| 2416 | shell.Transparency = 1 | |
| 2417 | if Debounces.CanAttack == false then | |
| 2418 | Debounces.CanAttack = true | |
| 2419 | Debounces.NoIdl = false | |
| 2420 | Debounces.on = false | |
| 2421 | end | |
| 2422 | end | |
| 2423 | end | |
| 2424 | end) | |
| 2425 | ---------------------------------------------------- | |
| 2426 | Search = false | |
| 2427 | mouse.KeyDown:connect(function(key) | |
| 2428 | if key == "n" then | |
| 2429 | if Search == false then | |
| 2430 | Search = true | |
| 2431 | for i,v in pairs(game.Players:getPlayers()) do | |
| 2432 | if v.Name~=char.Name then | |
| 2433 | for j,k in pairs(v.Character:GetChildren()) do | |
| 2434 | if k:IsA("BasePart") and k.Transparency >= 1 then
| |
| 2435 | bawx=Instance.new("SelectionBox",cam)
| |
| 2436 | bawx.Color = BrickColor.new("Pastel blue-green")
| |
| 2437 | bawx.Transparency = .5 | |
| 2438 | bawx.Adornee = k | |
| 2439 | end | |
| 2440 | end | |
| 2441 | end | |
| 2442 | end | |
| 2443 | elseif Search == true then | |
| 2444 | Search = false | |
| 2445 | for i, v in pairs(cam:GetChildren()) do | |
| 2446 | if v:IsA("SelectionBox") then
| |
| 2447 | v:Destroy() | |
| 2448 | end | |
| 2449 | end | |
| 2450 | end | |
| 2451 | end | |
| 2452 | end) | |
| 2453 | ---------------------------------------------------- | |
| 2454 | Grab = false | |
| 2455 | mouse.KeyDown:connect(function(key) | |
| 2456 | if key == "z" then | |
| 2457 | Debounces.on = true | |
| 2458 | Debounces.NoIdl = true | |
| 2459 | Debounces.ks = true | |
| 2460 | if Grab == false then | |
| 2461 | gp = nil | |
| 2462 | for i = 1, 20 do | |
| 2463 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
| 2464 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
| 2465 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 2466 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
| 2467 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
| 2468 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
| 2469 | if Debounces.on == false then break end | |
| 2470 | rs:wait() | |
| 2471 | end | |
| 2472 | con1=larm.Touched:connect(function(hit) -- this is grab | |
| 2473 | ht = hit.Parent | |
| 2474 | hum1=ht:FindFirstChild('Humanoid')
| |
| 2475 | if hum1 ~= nil then | |
| 2476 | if Debounces.ks==true then | |
| 2477 | z = Instance.new("Sound",hed)
| |
| 2478 | z.SoundId = "rbxassetid://169380525" | |
| 2479 | z.Volume = 1 | |
| 2480 | z:Play() | |
| 2481 | Debounces.ks=false | |
| 2482 | end | |
| 2483 | hum1.PlatformStand=true | |
| 2484 | gp = ht | |
| 2485 | Grab = true | |
| 2486 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0))
| |
| 2487 | asd.Parent = larm | |
| 2488 | asd.Name = "asd" | |
| 2489 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
| 2490 | --[[elseif hum1 == nil then | |
| 2491 | con1:disconnect() | |
| 2492 | wait() return]]-- | |
| 2493 | end | |
| 2494 | end) | |
| 2495 | for i = 1, 20 do | |
| 2496 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
| 2497 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
| 2498 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 2499 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
| 2500 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 2501 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
| 2502 | if Debounces.on == false then break end | |
| 2503 | rs:wait() | |
| 2504 | end | |
| 2505 | if hum1 == nil then | |
| 2506 | Debounces.on = false | |
| 2507 | Debounces.NoIdl = false | |
| 2508 | end | |
| 2509 | con1:disconnect() | |
| 2510 | elseif Grab == true then | |
| 2511 | Grab = false | |
| 2512 | Punch() | |
| 2513 | z = Instance.new("Sound",hed)
| |
| 2514 | z.SoundId = "rbxassetid://169380525" | |
| 2515 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2516 | z.Volume = 1 | |
| 2517 | z:Play() | |
| 2518 | for i = 1, 10 do | |
| 2519 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2520 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2521 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2522 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2523 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2524 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2525 | if Debounces.on == false then break end | |
| 2526 | rs:wait() | |
| 2527 | end | |
| 2528 | Punch() | |
| 2529 | z = Instance.new("Sound",hed)
| |
| 2530 | z.SoundId = "rbxassetid://169380525" | |
| 2531 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2532 | z.Volume = 1 | |
| 2533 | z:Play() | |
| 2534 | for i = 1, 10 do | |
| 2535 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2536 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2537 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2538 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2539 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2540 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2541 | if Debounces.on == false then break end | |
| 2542 | rs:wait() | |
| 2543 | end | |
| 2544 | Punch() | |
| 2545 | z = Instance.new("Sound",hed)
| |
| 2546 | z.SoundId = "rbxassetid://169380525" | |
| 2547 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2548 | z.Volume = 1 | |
| 2549 | z:Play() | |
| 2550 | for i = 1, 10 do | |
| 2551 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2552 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2553 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2554 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2555 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2556 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2557 | if Debounces.on == false then break end | |
| 2558 | rs:wait() | |
| 2559 | end | |
| 2560 | Punch() | |
| 2561 | z = Instance.new("Sound",hed)
| |
| 2562 | z.SoundId = "rbxassetid://169380525" | |
| 2563 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2564 | z.Volume = 1 | |
| 2565 | z:Play() | |
| 2566 | for i = 1, 10 do | |
| 2567 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2568 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2569 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2570 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2571 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2572 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2573 | if Debounces.on == false then break end | |
| 2574 | rs:wait() | |
| 2575 | end | |
| 2576 | Punch() | |
| 2577 | z = Instance.new("Sound",hed)
| |
| 2578 | z.SoundId = "rbxassetid://169380525" | |
| 2579 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2580 | z.Volume = 1 | |
| 2581 | z:Play() | |
| 2582 | for i = 1, 10 do | |
| 2583 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2584 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2585 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2586 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2587 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2588 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2589 | if Debounces.on == false then break end | |
| 2590 | rs:wait() | |
| 2591 | end | |
| 2592 | Punch() | |
| 2593 | z = Instance.new("Sound",hed)
| |
| 2594 | z.SoundId = "rbxassetid://169380525" | |
| 2595 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2596 | z.Volume = 1 | |
| 2597 | z:Play() | |
| 2598 | for i = 1, 10 do | |
| 2599 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2600 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2601 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2602 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2603 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2604 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2605 | if Debounces.on == false then break end | |
| 2606 | rs:wait() | |
| 2607 | end | |
| 2608 | Punch() | |
| 2609 | z = Instance.new("Sound",hed)
| |
| 2610 | z.SoundId = "rbxassetid://169380525" | |
| 2611 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2612 | z.Volume = 1 | |
| 2613 | z:Play() | |
| 2614 | for i = 1, 10 do | |
| 2615 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2616 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2617 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2618 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2619 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2620 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2621 | if Debounces.on == false then break end | |
| 2622 | rs:wait() | |
| 2623 | end | |
| 2624 | Punch() | |
| 2625 | z = Instance.new("Sound",hed)
| |
| 2626 | z.SoundId = "rbxassetid://169380525" | |
| 2627 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2628 | z.Volume = 1 | |
| 2629 | z:Play() | |
| 2630 | for i = 1, 10 do | |
| 2631 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2632 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2633 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2634 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2635 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2636 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2637 | if Debounces.on == false then break end | |
| 2638 | rs:wait() | |
| 2639 | end | |
| 2640 | Punch() | |
| 2641 | z = Instance.new("Sound",hed)
| |
| 2642 | z.SoundId = "rbxassetid://169380525" | |
| 2643 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2644 | z.Volume = 1 | |
| 2645 | z:Play() | |
| 2646 | for i = 1, 10 do | |
| 2647 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2648 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2649 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2650 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2651 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2652 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2653 | if Debounces.on == false then break end | |
| 2654 | rs:wait() | |
| 2655 | end | |
| 2656 | Punch() | |
| 2657 | z = Instance.new("Sound",hed)
| |
| 2658 | z.SoundId = "rbxassetid://169380525" | |
| 2659 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2660 | z.Volume = 1 | |
| 2661 | z:Play() | |
| 2662 | for i = 1, 10 do | |
| 2663 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2664 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2665 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2666 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2667 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2668 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2669 | if Debounces.on == false then break end | |
| 2670 | rs:wait() | |
| 2671 | end | |
| 2672 | Punch() | |
| 2673 | z = Instance.new("Sound",hed)
| |
| 2674 | z.SoundId = "rbxassetid://169380525" | |
| 2675 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2676 | z.Volume = 1 | |
| 2677 | z:Play() | |
| 2678 | for i = 1, 10 do | |
| 2679 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 2680 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 2681 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 2682 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 2683 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2684 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2685 | if Debounces.on == false then break end | |
| 2686 | rs:wait() | |
| 2687 | end | |
| 2688 | Punch() | |
| 2689 | z = Instance.new("Sound",hed)
| |
| 2690 | z.SoundId = "rbxassetid://169380525" | |
| 2691 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 2692 | z.Volume = 1 | |
| 2693 | z:Play() | |
| 2694 | for i = 1, 10 do | |
| 2695 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 2696 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 2697 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 2698 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 2699 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 2700 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 2701 | if Debounces.on == false then break end | |
| 2702 | rs:wait() | |
| 2703 | end | |
| 2704 | con1:disconnect() | |
| 2705 | Debounces.on = false | |
| 2706 | Debounces.NoIdl = false | |
| 2707 | if gp ~= nil then | |
| 2708 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140
| |
| 2709 | for i,v in pairs(larm:GetChildren()) do | |
| 2710 | if v.Name == "asd" and v:IsA("Weld") then
| |
| 2711 | v:Remove() | |
| 2712 | end | |
| 2713 | end | |
| 2714 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
| |
| 2715 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
| 2716 | bv.P = 125000 | |
| 2717 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
| 2718 | hum1=nil | |
| 2719 | ht=nil | |
| 2720 | Debounces.on = false | |
| 2721 | Debounces.NoIdl = false | |
| 2722 | elseif ht == nil then wait() | |
| 2723 | Grab = false | |
| 2724 | Debounces.on = false | |
| 2725 | Debounces.NoIdl = false | |
| 2726 | end | |
| 2727 | end | |
| 2728 | end | |
| 2729 | end) | |
| 2730 | ---------------------------------------------------- | |
| 2731 | mouse.KeyDown:connect(function(key) | |
| 2732 | if string.byte(key) == 52 then | |
| 2733 | char.Humanoid.WalkSpeed = 60 | |
| 2734 | end | |
| 2735 | end) | |
| 2736 | mouse.KeyUp:connect(function(key) | |
| 2737 | if string.byte(key) == 52 then | |
| 2738 | char.Humanoid.WalkSpeed = 8 | |
| 2739 | end | |
| 2740 | end) | |
| 2741 | ------------------------------- | |
| 2742 | local animpose = "Idle" | |
| 2743 | local lastanimpose = "Idle" | |
| 2744 | local sine = 0 | |
| 2745 | local change = 1 | |
| 2746 | local val = 0 | |
| 2747 | local ffing = false | |
| 2748 | ------------------------------- | |
| 2749 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 2750 | --[[if char.Humanoid.Jump == true then | |
| 2751 | jump = true | |
| 2752 | else | |
| 2753 | jump = false | |
| 2754 | end]] | |
| 2755 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2756 | if f then | |
| 2757 | ffing = true | |
| 2758 | else | |
| 2759 | ffing = false | |
| 2760 | end | |
| 2761 | end) | |
| 2762 | sine = sine + change | |
| 2763 | if jumpn == true then | |
| 2764 | animpose = "Jumping" | |
| 2765 | elseif ffing == true then | |
| 2766 | animpose = "Freefalling" | |
| 2767 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2768 | animpose = "Idle" | |
| 2769 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2770 | animpose = "Walking" | |
| 2771 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2772 | animpose = "Running" | |
| 2773 | end | |
| 2774 | if animpose ~= lastanimpose then | |
| 2775 | sine = 0 | |
| 2776 | if Debounces.NoIdl == false then | |
| 2777 | if animpose == "Idle" then | |
| 2778 | for i = 1, 2 do | |
| 2779 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
| 2780 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
| 2781 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 2782 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 2783 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 2784 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 2785 | end | |
| 2786 | elseif animpose == "Walking" then | |
| 2787 | for i = 1, 2 do | |
| 2788 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 2789 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 2790 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 2791 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 2792 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 2793 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 2794 | end | |
| 2795 | elseif animpose == "Running" then | |
| 2796 | for i = 1, 2 do | |
| 2797 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) | |
| 2798 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) | |
| 2799 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) | |
| 2800 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) | |
| 2801 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) | |
| 2802 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) | |
| 2803 | wait() | |
| 2804 | end | |
| 2805 | end | |
| 2806 | else | |
| 2807 | end | |
| 2808 | end | |
| 2809 | lastanimpose = animpose | |
| 2810 | if Debounces.NoIdl == false then | |
| 2811 | if animpose == "Idle" then | |
| 2812 | change = 0.5 | |
| 2813 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8+2*math.cos(sine/14))), 0.4) | |
| 2814 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8-2*math.cos(sine/14))), 0.4) | |
| 2815 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
| 2816 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
| 2817 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
| 2818 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
| 2819 | elseif animpose == "Walking" then | |
| 2820 | change = 1 | |
| 2821 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 2822 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 2823 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 2824 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 2825 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 2826 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 2827 | elseif animpose == "Running" then | |
| 2828 | change = 1 | |
| 2829 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
| 2830 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
| 2831 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
| 2832 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
| 2833 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
| 2834 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
| 2835 | end | |
| 2836 | end | |
| 2837 | end) | |
| 2838 | ||
| 2839 | hum.MaxHealth = 9001 | |
| 2840 | wait(3) | |
| 2841 | hum.Health = 9001 | |
| 2842 | ||
| 2843 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
| 2844 | --[[Part0 = Vector3 (Start pos) | |
| 2845 | Part1 = Vector3 (End pos) | |
| 2846 | Times = number (Amount of lightning parts) | |
| 2847 | Offset = number (Offset) | |
| 2848 | Color = color (brickcolor value) | |
| 2849 | Thickness = number (thickness) | |
| 2850 | Trans = number (transparency) | |
| 2851 | ]]-- | |
| 2852 | local magz = (Part0 - Part1).magnitude | |
| 2853 | local curpos = Part0 | |
| 2854 | local trz = {-Offset,Offset}
| |
| 2855 | for i=1,Times do | |
| 2856 | local li = Instance.new("Part", torso)
| |
| 2857 | li.Name = "Lightning" | |
| 2858 | li.TopSurface =0 | |
| 2859 | li.Material = "Neon" | |
| 2860 | li.BottomSurface = 0 | |
| 2861 | li.Anchored = true | |
| 2862 | li.Locked = true | |
| 2863 | li.Transparency = Trans or 0.4 | |
| 2864 | li.BrickColor = BrickColor.new(Color) | |
| 2865 | li.formFactor = "Custom" | |
| 2866 | li.CanCollide = false | |
| 2867 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
| 2868 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 2869 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
| 2870 | if Times == i then | |
| 2871 | local magz2 = (curpos - Part1).magnitude | |
| 2872 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 2873 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
| 2874 | else | |
| 2875 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 2876 | end | |
| 2877 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
| 2878 | game.Debris:AddItem(li,.1) | |
| 2879 | end | |
| 2880 | end | |
| 2881 | ||
| 2882 | BodyParts = {} -- Parts to emit lightning effects from
| |
| 2883 | for _, v in pairs(char:GetChildren()) do | |
| 2884 | if v:IsA("Part") then
| |
| 2885 | table.insert(BodyParts, v) | |
| 2886 | end | |
| 2887 | end | |
| 2888 | ||
| 2889 | Bounding = {} -- Calculate the bounding boxes
| |
| 2890 | for _, v in pairs(BodyParts) do | |
| 2891 | local temp = {X=nil, Y=nil, Z=nil}
| |
| 2892 | temp.X = v.Size.X/2 * 10 | |
| 2893 | temp.Y = v.Size.Y/2 * 10 | |
| 2894 | temp.Z = v.Size.Z/2 * 10 | |
| 2895 | Bounding[v.Name] = temp | |
| 2896 | --table.insert(Bounding, v.Name, temp) | |
| 2897 | end | |
| 2898 | ||
| 2899 | while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly | |
| 2900 | local Body1 = BodyParts[math.random(#BodyParts)] | |
| 2901 | local Body2 = BodyParts[math.random(#BodyParts)] | |
| 2902 | local Pos1 = Vector3.new( | |
| 2903 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
| 2904 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
| 2905 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
| 2906 | ) | |
| 2907 | local Pos2 = Vector3.new( | |
| 2908 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
| 2909 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
| 2910 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
| 2911 | ) | |
| 2912 | local SPos1 = Body1.Position + Pos1 | |
| 2913 | local SPos2 = Body2.Position + Pos2 | |
| 2914 | Lightning(SPos1, SPos2, 4, 3, "Bright red", .3, .56) | |
| 2915 | end |