SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[Name:The Jully Of Death]]-- |
| 1 | + | --[[Name:Code Bounded]]-- |
| 2 | --[[Create:KingAbsalom]]-- | |
| 3 | --[[Edit:Skrubl0rdzI,VV_rk]]-- | |
| 4 | local p = game.Players.LocalPlayer | |
| 5 | local char = p.Character | |
| 6 | local mouse = p:GetMouse() | |
| 7 | local larm = char["Left Arm"] | |
| 8 | local rarm = char["Right Arm"] | |
| 9 | local lleg = char["Left Leg"] | |
| 10 | local rleg = char["Right Leg"] | |
| 11 | local hed = char.Head | |
| 12 | local torso = char.Torso | |
| 13 | local hum = char.Humanoid | |
| 14 | local cam = game.Workspace.CurrentCamera | |
| 15 | local root = char.HumanoidRootPart | |
| 16 | local rj = root.RootJoint | |
| 17 | local deb = false | |
| 18 | local shot = 0 | |
| 19 | local stanceToggle = "Idle1" | |
| 20 | local l = game:GetService("Lighting")
| |
| 21 | local rs = game:GetService("RunService").RenderStepped
| |
| 22 | local hb = game:GetService("RunService").Heartbeat
| |
| 23 | local Stepped = game:GetService("RunService").Stepped
| |
| 24 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 25 | TorsoColor = torso.BrickColor | |
| 26 | local ch = char:GetChildren() | |
| 27 | for i = 1, #ch do | |
| 28 | if ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" or ch[i].ClassName == "Accessory" then | |
| 29 | ch[i]:Destroy() | |
| 30 | elseif ch[i].ClassName == "Part" then | |
| 31 | - | ch[i].BrickColor = BrickColor.new("Institutional white")
|
| 31 | + | ch[i].BrickColor = BrickColor.new("Really black")
|
| 32 | if ch[i].Name == "Torso" then | |
| 33 | ch[i].roblox.Texture = "" | |
| 34 | elseif ch[i].Name == "Head" then | |
| 35 | ch[i].face.Texture = "http://www.roblox.com/asset/?id=679717479" | |
| 36 | ch[i].Transparency = 1 | |
| 37 | end | |
| 38 | end | |
| 39 | end | |
| 40 | ||
| 41 | ||
| 42 | hed.face:Destroy() | |
| 43 | hum.JumpPower = 150 | |
| 44 | hum.WalkSpeed = 75 | |
| 45 | Debounces = {
| |
| 46 | CanAttack = true; | |
| 47 | NoIdl = false; | |
| 48 | Slashing = false; | |
| 49 | Slashed = false; | |
| 50 | RPunch = false; | |
| 51 | RPunched = false; | |
| 52 | LPunch = false; | |
| 53 | LPunched = false; | |
| 54 | } | |
| 55 | ||
| 56 | fat = Instance.new("BindableEvent", script)
| |
| 57 | fat.Name = "Heartbeat" | |
| 58 | script:WaitForChild("Heartbeat")
| |
| 59 | frame = 0.013333333333333 | |
| 60 | tf = 0 | |
| 61 | allowframeloss = false | |
| 62 | tossremainder = false | |
| 63 | lastframe = tick() | |
| 64 | script.Heartbeat:Fire() | |
| 65 | local ss = Instance.new("Sound",char)
| |
| 66 | ss.Volume = 3 | |
| 67 | ss.Looped = true | |
| 68 | ss.Pitch = 1 | |
| 69 | - | ss.SoundId = "rbxassetid://388728873" |
| 69 | + | ss.SoundId = "rbxassetid://177866114" |
| 70 | ss:Play() | |
| 71 | function sbchat(msg,displayname) | |
| 72 | if not displayname then | |
| 73 | displayname = 'bela' | |
| 74 | end | |
| 75 | for i,v in pairs(game:GetService('Players'):GetChildren()) do
| |
| 76 | local st = Instance.new('StringValue')
| |
| 77 | st.Name = 'SB_Chat' | |
| 78 | st.Value = displayname..'/'..msg | |
| 79 | delay(0.2,function() st.Parent = v end) | |
| 80 | end | |
| 81 | end | |
| 82 | ||
| 83 | sbchat("DEATH WAY!!",'[Might Guy]')
| |
| 84 | spawn(function() --_RHas | |
| 85 | local ef1=Instance.new('Part',larm)
| |
| 86 | local am=Instance.new('BlockMesh',ef1)
| |
| 87 | ef1.Anchored,ef1.CanCollide=false,false | |
| 88 | ef1.Transparency=0.3 | |
| 89 | ef1.Material = "Sand" | |
| 90 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
| 91 | ef1.Size=Vector3.new(.2,.2,.2) | |
| 92 | local ef2=ef1:Clone() | |
| 93 | local ef3=ef2:Clone() | |
| 94 | local ef4=ef3:Clone() | |
| 95 | ef2.Material = "Sand" | |
| 96 | ef3.Material = "Sand" | |
| 97 | ef4.Material = "Sand" | |
| 98 | ef3.Parent,ef4.Parent=larm,rarm | |
| 99 | ef2.Parent=lleg | |
| 100 | local wa,wb=Instance.new('Weld',larm),Instance.new('Weld',larm)
| |
| 101 | local wc,wd=Instance.new('Weld',rarm),Instance.new('Weld',rarm)
| |
| 102 | wa.Part0,wb.Part0=larm,rarm | |
| 103 | wa.Part1,wb.Part1=ef1,ef2 | |
| 104 | wc.Part0,wd.Part0=larm,rarm | |
| 105 | wc.Part1,wd.Part1=ef3,ef4 | |
| 106 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 107 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 108 | while wait(0) do | |
| 109 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 110 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 111 | ef1.BrickColor=BrickColor.new("Lime green")
| |
| 112 | ef3.BrickColor=BrickColor.new("Lime green")
| |
| 113 | ef4.BrickColor=BrickColor.new("Lime green")
| |
| 114 | ef2.BrickColor=BrickColor.new("Lime green")
| |
| 115 | end | |
| 116 | end) | |
| 117 | ||
| 118 | spawn(function() --_RHas | |
| 119 | local selectionBoxOfTorso = Instance.new("SelectionBox",torso)
| |
| 120 | selectionBoxOfTorso.Adornee = torso | |
| 121 | selectionBoxOfTorso.Color = BrickColor.new("Lime green")
| |
| 122 | selectionBoxOfTorso.LineThickness = 0.01 | |
| 123 | selectionBoxOfTorso.Transparency = 0 | |
| 124 | ||
| 125 | local selectionBoxOfRightArm = Instance.new("SelectionBox",char["rarm"])
| |
| 126 | selectionBoxOfRightArm.Adornee = char["rarm"] | |
| 127 | selectionBoxOfRightArm.Color = BrickColor.new("Lime green")
| |
| 128 | selectionBoxOfRightArm.LineThickness = 0.01 | |
| 129 | selectionBoxOfRightArm.Transparency = 0 | |
| 130 | ||
| 131 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",rleg)
| |
| 132 | selectionBoxOfRightLeg.Adornee = rleg | |
| 133 | selectionBoxOfRightLeg.Color = BrickColor.new("Lime green")
| |
| 134 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
| 135 | selectionBoxOfRightLeg.Transparency = 0 | |
| 136 | ||
| 137 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",larm)
| |
| 138 | selectionBoxOfLeftArm.Adornee = larm | |
| 139 | selectionBoxOfLeftArm.Color = BrickColor.new("Lime green")
| |
| 140 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
| 141 | selectionBoxOfLeftArm.Transparency = 0 | |
| 142 | ||
| 143 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",char["lleg"])
| |
| 144 | selectionBoxOfLeftLeg.Adornee = char["lleg"] | |
| 145 | selectionBoxOfLeftLeg.Color = BrickColor.new("Lime green")
| |
| 146 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
| 147 | selectionBoxOfLeftLeg.Transparency = 0 | |
| 148 | ||
| 149 | local ef1=Instance.new('Part',lleg)
| |
| 150 | local am=Instance.new('BlockMesh',ef1)
| |
| 151 | ef1.Anchored,ef1.CanCollide=false,false | |
| 152 | ef1.Transparency=0.3 | |
| 153 | ef1.Material = "Sand" | |
| 154 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
| 155 | ef1.Size=Vector3.new(.2,.2,.2) | |
| 156 | local ef2=ef1:Clone() | |
| 157 | local ef3=ef2:Clone() | |
| 158 | local ef4=ef3:Clone() | |
| 159 | ef2.Material = "Sand" | |
| 160 | ef3.Material = "Sand" | |
| 161 | ef4.Material = "Sand" | |
| 162 | ef3.Parent,ef4.Parent=lleg,rleg | |
| 163 | ef2.Parent=lleg | |
| 164 | local wa,wb=Instance.new('Weld',lleg),Instance.new('Weld',lleg)
| |
| 165 | local wc,wd=Instance.new('Weld',rleg),Instance.new('Weld',rleg)
| |
| 166 | wa.Part0,wb.Part0=lleg,rleg | |
| 167 | wa.Part1,wb.Part1=ef1,ef2 | |
| 168 | wc.Part0,wd.Part0=lleg,rleg | |
| 169 | wc.Part1,wd.Part1=ef3,ef4 | |
| 170 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 171 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 172 | while wait(0) do | |
| 173 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 174 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 175 | ef1.BrickColor=BrickColor.new("Lime green")
| |
| 176 | ef2.BrickColor=BrickColor.new("Lime green")
| |
| 177 | ef3.BrickColor=BrickColor.new("Lime green")
| |
| 178 | ef4.BrickColor=BrickColor.new("Lime green")
| |
| 179 | end | |
| 180 | end) | |
| 181 | ||
| 182 | local runServ = game:GetService("RunService").RenderStepped
| |
| 183 | ||
| 184 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
| |
| 185 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 186 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
| |
| 187 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 188 | HBill.Name = "Health Display" | |
| 189 | HBill.StudsOffset = Vector3.new(0,4,0) | |
| 190 | HBill.AlwaysOnTop = true | |
| 191 | HBill.Enabled = true | |
| 192 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 193 | HMain.BackgroundTransparency = 1 | |
| 194 | HMain.Size = UDim2.new(1,0,1,0) | |
| 195 | HBarBack.Parent = HMain | |
| 196 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
| 197 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 198 | HBarBack.BorderSizePixel = 2 | |
| 199 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 200 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 201 | HBar.Parent = HBarBack | |
| 202 | HBar.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 203 | HBar.BorderColor3 = Color3.new(0,0,0) | |
| 204 | HBar.Size = UDim2.new(.5,0,1,0) | |
| 205 | HHealth.BackgroundTransparency = 1 | |
| 206 | HHealth.Size = UDim2.new(1,0,1,0) | |
| 207 | HHealth.Font = "Code" | |
| 208 | HHealth.Text = " " | |
| 209 | HHealth.TextScaled = true | |
| 210 | HHealth.TextColor3 = Color3.new(255,250,0) | |
| 211 | HHealth.TextStrokeColor3 = Color3.new(1,0,0) | |
| 212 | HHealth.TextStrokeTransparency = 0 | |
| 213 | HName.Parent = HMain | |
| 214 | HName.BackgroundTransparency = 1 | |
| 215 | HName.Size = UDim2.new(1,0,.5,0) | |
| 216 | HName.Font = "Code" | |
| 217 | - | HName.Text = "Ultra" |
| 217 | + | HName.Text = "Code Bounded" |
| 218 | HName.TextScaled = true | |
| 219 | HName.TextColor3 = Color3.new(1,0,0) | |
| 220 | HName.TextStrokeColor3 = Color3.new(0,1,0) | |
| 221 | HName.TextStrokeTransparency = 0 | |
| 222 | HName.TextYAlignment = "Top" | |
| 223 | ||
| 224 | runServ:connect(function() | |
| 225 | HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]" | |
| 226 | HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4) | |
| 227 | end) | |
| 228 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 229 | ||
| 230 | tf = tf + s | |
| 231 | if frame <= tf then | |
| 232 | if allowframeloss then | |
| 233 | script.Heartbeat:Fire() | |
| 234 | lastframe = tick() | |
| 235 | else | |
| 236 | for i = 1, math.floor(tf / frame) do | |
| 237 | script.Heartbeat:Fire() | |
| 238 | end | |
| 239 | lastframe = tick() | |
| 240 | end | |
| 241 | if tossremainder then | |
| 242 | tf = 0 | |
| 243 | else | |
| 244 | tf = tf - frame * math.floor(tf / frame) | |
| 245 | end | |
| 246 | end | |
| 247 | end | |
| 248 | ) | |
| 249 | for i,v in pairs(hed:GetChildren()) do | |
| 250 | if v:IsA("Sound") then
| |
| 251 | v:Destroy() | |
| 252 | end | |
| 253 | end | |
| 254 | Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false}
| |
| 255 | weld5 = function(part0, part1, c0, c1) | |
| 256 | ||
| 257 | weeld = Instance.new("Weld", part0)
| |
| 258 | weeld.Part0 = part0 | |
| 259 | weeld.Part1 = part1 | |
| 260 | weeld.C0 = c0 | |
| 261 | weeld.C1 = c1 | |
| 262 | return weeld | |
| 263 | end | |
| 264 | ||
| 265 | NewPart = function(prnt, siz, cf, trans, anc, mat, col) | |
| 266 | ||
| 267 | local prt = Instance.new("Part")
| |
| 268 | prt.Parent = prnt | |
| 269 | prt.Name = "Part" | |
| 270 | prt.Size = siz | |
| 271 | prt.CanCollide = false | |
| 272 | prt.Anchored = anc | |
| 273 | prt.Locked = true | |
| 274 | prt.Transparency = trans | |
| 275 | prt.TopSurface = 10 | |
| 276 | prt.BottomSurface = 10 | |
| 277 | prt.FrontSurface = 10 | |
| 278 | prt.BackSurface = 10 | |
| 279 | prt.LeftSurface = 10 | |
| 280 | prt.RightSurface = 10 | |
| 281 | prt:BreakJoints() | |
| 282 | if not cf then | |
| 283 | prt.CFrame = CFrame.new(30, 10, 30) | |
| 284 | prt.Material = mat | |
| 285 | prt.BrickColor = BrickColor.new(col) | |
| 286 | m = Instance.new("SpecialMesh", prt)
| |
| 287 | m.MeshType = 6 | |
| 288 | return prt | |
| 289 | end | |
| 290 | end | |
| 291 | ||
| 292 | lerp = function(a, b, t) | |
| 293 | ||
| 294 | return a + (b - a) * t | |
| 295 | end | |
| 296 | ||
| 297 | slerp = function(a, b, t) | |
| 298 | ||
| 299 | dot = a:Dot(b) | |
| 300 | if t > 0.5 or not a then | |
| 301 | do return dot <= 0.99999 and dot >= -0.99999 or b end | |
| 302 | r = math.acos(dot) | |
| 303 | do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end | |
| 304 | end | |
| 305 | end | |
| 306 | ||
| 307 | matrixInterpolate = function(a, b, t) | |
| 308 | ||
| 309 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 310 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 311 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t) | |
| 312 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) | |
| 313 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) | |
| 314 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) | |
| 315 | local t = v1:Dot(v2) | |
| 316 | if t >= 0 and t ~= 0 and t <= 0 then | |
| 317 | return CFrame.new() | |
| 318 | end | |
| 319 | return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) | |
| 320 | end | |
| 321 | ||
| 322 | genWeld = function(a, b) | |
| 323 | ||
| 324 | local w = Instance.new("Weld", a)
| |
| 325 | w.Part0 = a | |
| 326 | w.Part1 = b | |
| 327 | return w | |
| 328 | end | |
| 329 | ||
| 330 | weld = function(a, b) | |
| 331 | ||
| 332 | local weld = Instance.new("Weld")
| |
| 333 | weld.Name = "W" | |
| 334 | weld.Part0 = a | |
| 335 | weld.Part1 = b | |
| 336 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 337 | weld.Parent = a | |
| 338 | return weld | |
| 339 | end | |
| 340 | ||
| 341 | Lerp = function(c1, c2, al) | |
| 342 | ||
| 343 | local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
| |
| 344 | local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
| |
| 345 | for i,v in pairs(com1) do | |
| 346 | com1[i] = v + (com2[i] - v) * al | |
| 347 | end | |
| 348 | return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1))) | |
| 349 | end | |
| 350 | ||
| 351 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 352 | ||
| 353 | local wld = Instance.new("Weld", wp1)
| |
| 354 | wld.Part0 = wp0 | |
| 355 | wld.Part1 = wp1 | |
| 356 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 357 | end | |
| 358 | ||
| 359 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 360 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 361 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 362 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 363 | newWeld(torso, hed, 0, 1.5, 0) | |
| 364 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 365 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 366 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 367 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 368 | newWeld(root, torso, 0, -1, 0) | |
| 369 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 370 | ||
| 371 | New = function(Object, Parent, Name, Data) | |
| 372 | ||
| 373 | local Object = Instance.new(Object) | |
| 374 | if not Data then | |
| 375 | for Index,Value in pairs({}) do
| |
| 376 | Object[Index] = Value | |
| 377 | end | |
| 378 | Object.Parent = Parent | |
| 379 | Object.Name = Name | |
| 380 | return Object | |
| 381 | end | |
| 382 | end | |
| 383 | spawn(function() --_RHas | |
| 384 | local ef1=Instance.new('Part',part1)
| |
| 385 | local am=Instance.new('BlockMesh',ef1)
| |
| 386 | ef1.Anchored,ef1.CanCollide=false,false | |
| 387 | ef1.Transparency=0.3 | |
| 388 | ef1.Material = "Sand" | |
| 389 | am.Scale=Vector3.new(0.1,0.1,0.1) | |
| 390 | ef1.Size=Vector3.new(0.1) | |
| 391 | local ef2=ef1:Clone() | |
| 392 | local ef3=ef2:Clone() | |
| 393 | local ef4=ef3:Clone() | |
| 394 | ef2.Material = "Sand" | |
| 395 | ef3.Material = "Sand" | |
| 396 | ef4.Material = "Sand" | |
| 397 | ef3.Parent,ef4.Parent=part1,part1 | |
| 398 | ef2.Parent=part1 | |
| 399 | local wa,wb=Instance.new('Weld',part1),Instance.new('Weld',part1)
| |
| 400 | local wc,wd=Instance.new('Weld',part1),Instance.new('Weld',part1)
| |
| 401 | wa.Part0,wb.Part0=part1,part1 | |
| 402 | wa.Part1,wb.Part1=ef1,ef2 | |
| 403 | wc.Part0,wd.Part0=part1,part1 | |
| 404 | wc.Part1,wd.Part1=ef3,ef4 | |
| 405 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 406 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 407 | while wait(0) do | |
| 408 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 409 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 410 | ef1.BrickColor=BrickColor.new("Lime green")
| |
| 411 | ef3.BrickColor=BrickColor.new("Lime green")
| |
| 412 | ef4.BrickColor=BrickColor.new("Lime green")
| |
| 413 | ef2.BrickColor=BrickColor.new("Lime green")
| |
| 414 | end | |
| 415 | end) | |
| 416 | local animpose = "Idle1" | |
| 417 | local lastanimpose = "Idle1" | |
| 418 | local grab = false | |
| 419 | local Smooth = 0.5 | |
| 420 | local sine = 0 | |
| 421 | local change = 0.5 | |
| 422 | local val = 0 | |
| 423 | local ffing = false | |
| 424 | mod4 = Instance.new("Model", char)
| |
| 425 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 426 | FindNearestTorso = function(Position, Distance, SinglePlayer) | |
| 427 | ||
| 428 | if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then | |
| 429 | do return not SinglePlayer end | |
| 430 | do | |
| 431 | local List = {}
| |
| 432 | for i,v in pairs(workspace:GetChildren()) do | |
| 433 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then
| |
| 434 | table.insert(List, v) | |
| 435 | end | |
| 436 | end | |
| 437 | do return List end | |
| 438 | -- DECOMPILER ERROR: 3 unprocessed JMP targets | |
| 439 | end | |
| 440 | end | |
| 441 | end | |
| 442 | ||
| 443 | Slam = function() | |
| 444 | ||
| 445 | local part = Instance.new("Part", mod4)
| |
| 446 | part.Anchored = true | |
| 447 | part.CanCollide = false | |
| 448 | part.FormFactor = "Custom" | |
| 449 | part.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 450 | part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0) | |
| 451 | part.Transparency = 0.7 | |
| 452 | part.BrickColor = BrickColor.new("Really black")
| |
| 453 | mesh = Instance.new("SpecialMesh", part)
| |
| 454 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 455 | mesh.Scale = Vector3.new(3, 3, 3) | |
| 456 | local part2 = Instance.new("Part", mod4)
| |
| 457 | part2.Anchored = true | |
| 458 | part2.CanCollide = false | |
| 459 | part2.FormFactor = "Custom" | |
| 460 | part2.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 461 | part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6) | |
| 462 | part2.Transparency = 0.7 | |
| 463 | part2.BrickColor = BrickColor.new("Lime green")
| |
| 464 | mesh2 = Instance.new("SpecialMesh", part2)
| |
| 465 | mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 466 | mesh2.Scale = Vector3.new(3, 1.5, 3) | |
| 467 | x = Instance.new("Sound", larm)
| |
| 468 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
| 469 | x.Pitch = ptez[math.random(1, #ptez)] | |
| 470 | x.Volume = 1 | |
| 471 | x1 = Instance.new("Sound", larm)
| |
| 472 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
| 473 | x1.Pitch = ptez[math.random(1, #ptez)] | |
| 474 | x1.Volume = 1 | |
| 475 | x:Play() | |
| 476 | x1:Play() | |
| 477 | for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do | |
| 478 | if v:FindFirstChild("Humanoid") then
| |
| 479 | v.Humanoid.Health = 0 | |
| 480 | end | |
| 481 | end | |
| 482 | coroutine.resume(coroutine.create(function() | |
| 483 | ||
| 484 | for i = 0, 0.62, 0.13 do | |
| 485 | fat.Event:wait() | |
| 486 | part.CFrame = part.CFrame | |
| 487 | part.Transparency = i | |
| 488 | mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4) | |
| 489 | part2.CFrame = part2.CFrame | |
| 490 | part2.Transparency = i | |
| 491 | mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4) | |
| 492 | end | |
| 493 | part.Parent = nil | |
| 494 | part2.Parent = nil | |
| 495 | x:Destroy() | |
| 496 | end | |
| 497 | )) | |
| 498 | end | |
| 499 | ||
| 500 | wPart = function(x, y, z, color, tr, cc, an, parent) | |
| 501 | ||
| 502 | local wp = Instance.new("WedgePart", parent or Weapon)
| |
| 503 | wp.formFactor = "Custom" | |
| 504 | wp.Size = Vector3.new(x, y, z) | |
| 505 | wp.BrickColor = BrickColor.new(color) | |
| 506 | wp.CanCollide = cc | |
| 507 | wp.Transparency = tr | |
| 508 | wp.Anchored = an | |
| 509 | wp.TopSurface = 0 | |
| 510 | return wp | |
| 511 | end | |
| 512 | ||
| 513 | Mesh = function(par, num, x, y, z) | |
| 514 | ||
| 515 | local msh = _ | |
| 516 | if num == 1 then | |
| 517 | msh = Instance.new("CylinderMesh", par)
| |
| 518 | else | |
| 519 | if num == 2 then | |
| 520 | msh = Instance.new("SpecialMesh", par)
| |
| 521 | msh.MeshType = 3 | |
| 522 | else | |
| 523 | if num == 3 then | |
| 524 | msh = Instance.new("BlockMesh", par)
| |
| 525 | else | |
| 526 | if num == 4 then | |
| 527 | msh = Instance.new("SpecialMesh", par)
| |
| 528 | msh.MeshType = "Torso" | |
| 529 | else | |
| 530 | if type(num) == "string" then | |
| 531 | msh = Instance.new("SpecialMesh", par)
| |
| 532 | msh.MeshId = num | |
| 533 | end | |
| 534 | end | |
| 535 | end | |
| 536 | end | |
| 537 | end | |
| 538 | msh.Scale = Vector3.new(x, y, z) | |
| 539 | return msh | |
| 540 | end | |
| 541 | ||
| 542 | local CFrameFromTopBack = function(at, top, back) | |
| 543 | ||
| 544 | local right = top:Cross(back) | |
| 545 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 546 | end | |
| 547 | ||
| 548 | Triangle = function(a, b, c) | |
| 549 | ||
| 550 | local edg1 = c - a:Dot(b - a.unit) | |
| 551 | local edg2 = a - b:Dot(c - b.unit) | |
| 552 | local edg3 = b - c:Dot(a - c.unit) | |
| 553 | if edg1 <= b - a.magnitude and edg1 >= 0 then | |
| 554 | a = a | |
| 555 | else | |
| 556 | -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg' | |
| 557 | ||
| 558 | if edg2 <= c - b.magnitude and edg2 >= 0 then | |
| 559 | a = b | |
| 560 | else | |
| 561 | -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg' | |
| 562 | ||
| 563 | -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg' | |
| 564 | ||
| 565 | if edg3 <= a - c.magnitude and edg3 >= 0 then | |
| 566 | a = c | |
| 567 | else | |
| 568 | print("unreachable")
| |
| 569 | end | |
| 570 | end | |
| 571 | end | |
| 572 | local len1 = c - a:Dot(b - a.unit) | |
| 573 | local len2 = b - a.magnitude - len1 | |
| 574 | local width = a + b - a.unit * len1 - c.magnitude | |
| 575 | local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit) | |
| 576 | local list = {}
| |
| 577 | if len1 > 0.01 then | |
| 578 | local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
| 579 | do | |
| 580 | local sz = Vector3.new(0.2, width, len1) | |
| 581 | w1.Size = sz | |
| 582 | local sp = Mesh(w1, 2, 0, 0, 0) | |
| 583 | sp.MeshType = "Wedge" | |
| 584 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
| 585 | w1:BreakJoints() | |
| 586 | w1.Anchored = true | |
| 587 | w1.Transparency = 0.7 | |
| 588 | Spawn(function() | |
| 589 | ||
| 590 | for i = 0, 1, 0.1 do | |
| 591 | fat.Event:wait() | |
| 592 | w1.Transparency = w1.Transparency + 0.03 | |
| 593 | end | |
| 594 | end | |
| 595 | ) | |
| 596 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
| 597 | table.insert(list, w1) | |
| 598 | end | |
| 599 | end | |
| 600 | do | |
| 601 | if len2 > 0.01 then | |
| 602 | local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
| 603 | local sz = Vector3.new(0.2, width, len2) | |
| 604 | w2.Size = sz | |
| 605 | local sp = Mesh(w2, 2, 0, 0, 0) | |
| 606 | sp.MeshType = "Wedge" | |
| 607 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
| 608 | w2:BreakJoints() | |
| 609 | w2.Anchored = true | |
| 610 | w2.Transparency = 0.7 | |
| 611 | Spawn(function() | |
| 612 | ||
| 613 | for i = 0, 1, 0.1 do | |
| 614 | fat.Event:wait() | |
| 615 | w2.Transparency = w2.Transparency + 0.03 | |
| 616 | end | |
| 617 | end | |
| 618 | ) | |
| 619 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
| 620 | table.insert(list, w2) | |
| 621 | end | |
| 622 | do | |
| 623 | return unpack(list) | |
| 624 | end | |
| 625 | end | |
| 626 | end | |
| 627 | ||
| 628 | trail = function(p, t, h) | |
| 629 | ||
| 630 | Spawn(function() | |
| 631 | ||
| 632 | local blcf = p.CFrame | |
| 633 | local scfr = blcf | |
| 634 | for i = 1, t do | |
| 635 | local blcf = p.CFrame | |
| 636 | if scfr and p.Position - scfr.p.magnitude > 0.1 then | |
| 637 | local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p) | |
| 638 | if a then | |
| 639 | game.Debris:AddItem(a, 1) | |
| 640 | end | |
| 641 | if b then | |
| 642 | game.Debris:AddItem(b, 1) | |
| 643 | end | |
| 644 | local a, b = Triangle(blcf * CFrame.new(0, h / 2, 0).p, blcf * CFrame.new(0, -h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p) | |
| 645 | if a then | |
| 646 | game.Debris:AddItem(a, 1) | |
| 647 | end | |
| 648 | if b then | |
| 649 | game.Debris:AddItem(b, 1) | |
| 650 | end | |
| 651 | scfr = blcf | |
| 652 | else | |
| 653 | do | |
| 654 | do | |
| 655 | if not scfr then | |
| 656 | scfr = blcf | |
| 657 | end | |
| 658 | fat.Event:wait() | |
| 659 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT | |
| 660 | ||
| 661 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 662 | ||
| 663 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT | |
| 664 | ||
| 665 | end | |
| 666 | end | |
| 667 | end | |
| 668 | end | |
| 669 | scfr = nil | |
| 670 | end | |
| 671 | ) | |
| 672 | end | |
| 673 | ||
| 674 | rarm.Touched:connect(function(ht) | |
| 675 | ||
| 676 | hit = ht.Parent | |
| 677 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then
| |
| 678 | Debounces.RPunched = true | |
| 679 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
| |
| 680 | if Debounces.ks == true then | |
| 681 | z = Instance.new("Sound", hed)
| |
| 682 | z.SoundId = "rbxassetid://169380525" | |
| 683 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 684 | z.Volume = 1 | |
| 685 | z:Play() | |
| 686 | end | |
| 687 | wait(0.4) | |
| 688 | Debounces.RPunched = false | |
| 689 | end | |
| 690 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.RPunch == true and Debounces.RPunched == false then
| |
| 691 | Debounces.RPunched = true | |
| 692 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
| |
| 693 | if Debounces.ks == true then | |
| 694 | z = Instance.new("Sound", hed)
| |
| 695 | z.SoundId = "rbxassetid://169380525" | |
| 696 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 697 | z.Volume = 1 | |
| 698 | z:Play() | |
| 699 | end | |
| 700 | wait(0.4) | |
| 701 | Debounces.RPunched = false | |
| 702 | end | |
| 703 | end | |
| 704 | ) | |
| 705 | larm.Touched:connect(function(ht) | |
| 706 | ||
| 707 | hit = ht.Parent | |
| 708 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then
| |
| 709 | Debounces.LPunched = true | |
| 710 | hit:FindFirstChild("Humanoid").Health = 0
| |
| 711 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160
| |
| 712 | if Debounces.ks2 == true then | |
| 713 | z = Instance.new("Sound", hed)
| |
| 714 | z.SoundId = "rbxassetid://169380525" | |
| 715 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 716 | z.Volume = 1 | |
| 717 | z:Play() | |
| 718 | end | |
| 719 | wait(0.4) | |
| 720 | Debounces.LPunched = false | |
| 721 | end | |
| 722 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.LPunch == true and Debounces.LPunched == false then
| |
| 723 | Debounces.LPunched = true | |
| 724 | hit.Parent:FindFirstChild("Humanoid").Health = 0
| |
| 725 | if Debounces.ks2 == true then | |
| 726 | z = Instance.new("Sound", hed)
| |
| 727 | z.SoundId = "rbxassetid://169380525" | |
| 728 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 729 | z.Volume = 1 | |
| 730 | z:Play() | |
| 731 | end | |
| 732 | wait(0.4) | |
| 733 | Debounces.LPunched = false | |
| 734 | end | |
| 735 | end | |
| 736 | ) | |
| 737 | local acos = math.acos | |
| 738 | local sqrt = math.sqrt | |
| 739 | local Vec3 = Vector3.new | |
| 740 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 741 | local toAxisAngle = function(CFr) | |
| 742 | ||
| 743 | local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components() | |
| 744 | local Angle = math.acos((R00 + R11 + R22 - 1) / 2) | |
| 745 | local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 746 | if A ~= 0 or not 1e-05 then | |
| 747 | local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 748 | if B ~= 0 or not 1e-05 then | |
| 749 | local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 750 | if C ~= 0 or not 1e-05 then | |
| 751 | local x = (R21 - R12) / sqrt(A) | |
| 752 | local y = (R02 - R20) / sqrt(B) | |
| 753 | local z = (R10 - R01) / sqrt(C) | |
| 754 | return Vec3(x, y, z), Angle | |
| 755 | end | |
| 756 | end | |
| 757 | end | |
| 758 | end | |
| 759 | ||
| 760 | ApplyTrig = function(Num, Func) | |
| 761 | ||
| 762 | local Min, Max = Func(0), Func(1) | |
| 763 | local i = Func(Num) | |
| 764 | return (i - Min) / (Max - Min) | |
| 765 | end | |
| 766 | ||
| 767 | LerpCFrame = function(CFrame1, CFrame2, Num) | |
| 768 | ||
| 769 | local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2) | |
| 770 | return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num | |
| 771 | end | |
| 772 | ||
| 773 | Crater = function(Torso, Radius) | |
| 774 | ||
| 775 | Spawn(function() | |
| 776 | ||
| 777 | local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10) | |
| 778 | local Ignore = {}
| |
| 779 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 780 | if v.Character ~= nil then | |
| 781 | Ignore[#Ignore + 1] = v.Character | |
| 782 | end | |
| 783 | end | |
| 784 | local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
| 785 | if Hit == nil then | |
| 786 | return | |
| 787 | end | |
| 788 | local Parts = {}
| |
| 789 | for i = 1, 360, 10 do | |
| 790 | local P = Instance.new("Part", Torso.Parent)
| |
| 791 | P.Anchored = true | |
| 792 | P.FormFactor = "Custom" | |
| 793 | P.BrickColor = Hit.BrickColor | |
| 794 | P.Material = Hit.Material | |
| 795 | P.TopSurface = "Smooth" | |
| 796 | P.BottomSurface = "Smooth" | |
| 797 | P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100) | |
| 798 | 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))) | |
| 799 | 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}
| |
| 800 | if math.random(0, 5) == 0 then | |
| 801 | local P = Instance.new("Part", Torso.Parent)
| |
| 802 | P.Anchored = true | |
| 803 | P.FormFactor = "Custom" | |
| 804 | P.BrickColor = Hit.BrickColor | |
| 805 | P.Material = Hit.Material | |
| 806 | P.TopSurface = "Smooth" | |
| 807 | P.BottomSurface = "Smooth" | |
| 808 | P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100) | |
| 809 | 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))) | |
| 810 | 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}
| |
| 811 | end | |
| 812 | end | |
| 813 | for i = 0, 1, 0.05 do | |
| 814 | for i2,v in pairs(Parts) do | |
| 815 | v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos)) | |
| 816 | end | |
| 817 | wait(0.02) | |
| 818 | end | |
| 819 | for i,v in pairs(Parts) do | |
| 820 | if v[1].Size.X > 2.1 then | |
| 821 | v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0) | |
| 822 | end | |
| 823 | v[1].Anchored = false | |
| 824 | end | |
| 825 | for i = 0, 1, 0.05 do | |
| 826 | for i2,v in pairs(Parts) do | |
| 827 | v[1].Transparency = i | |
| 828 | if i == 1 then | |
| 829 | v[1]:Destroy() | |
| 830 | else | |
| 831 | if i >= 0.25 then | |
| 832 | v[1].CanCollide = false | |
| 833 | end | |
| 834 | end | |
| 835 | end | |
| 836 | wait(0.02) | |
| 837 | end | |
| 838 | Parts = nil | |
| 839 | end | |
| 840 | ) | |
| 841 | end | |
| 842 | local Emitter = Instance.new("ParticleEmitter",torso)
| |
| 843 | Emitter.Color = ColorSequence.new(Color3.fromRGB(255,255,255)) | |
| 844 | Emitter.Size = NumberSequence.new(.2) | |
| 845 | Emitter.LightEmission = 1 | |
| 846 | Emitter.Texture = "http://www.roblox.com/asset/?id=243005838" | |
| 847 | Emitter.Lifetime = NumberRange.new(1.5) | |
| 848 | Emitter.Rate = 1000 | |
| 849 | Emitter.Rotation = NumberRange.new(0) | |
| 850 | Emitter.RotSpeed = NumberRange.new(10) | |
| 851 | Emitter.Speed = NumberRange.new(10) | |
| 852 | Emitter.VelocitySpread = 200 | |
| 853 | Emitter.Parent = torso | |
| 854 | -------------------------------------------------- | |
| 855 | function Dmg() | |
| 856 | local partofdeath = hitb | |
| 857 | local function CreateRegion3FromLocAndSize(Position, Size) | |
| 858 | local SizeOffset = Size/2 | |
| 859 | local Point1 = Position - SizeOffset | |
| 860 | local Point2 = Position + SizeOffset | |
| 861 | return Region3.new(Point1, Point2) | |
| 862 | end | |
| 863 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
| 864 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
| 865 | Spawn(function() | |
| 866 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 867 | Debounces.Slashed = true | |
| 868 | ypcall(function() | |
| 869 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 870 | humanoid.Health = 0 | |
| 871 | end) | |
| 872 | wait(.4) | |
| 873 | Debounces.Slashed = false | |
| 874 | end | |
| 875 | end) | |
| 876 | end | |
| 877 | end | |
| 878 | ||
| 879 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 880 | ptz = {0.7, 0.8, 0.9, 1, 1.1}
| |
| 881 | ||
| 882 | mouse.KeyDown:connect(function(key) | |
| 883 | if key == "f" then | |
| 884 | if Debounces.CanAttack == true then | |
| 885 | Debounces.CanAttack = false | |
| 886 | Debounces.on = true | |
| 887 | Debounces.NoIdl = true | |
| 888 | sbchat("PHANTOM FIST!!!",'[Might Guy]')
| |
| 889 | for i = 1, 25 do | |
| 890 | 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) | |
| 891 | 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) | |
| 892 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 893 | 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) | |
| 894 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 895 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 896 | if Debounces.on == false then break end | |
| 897 | rs:wait() | |
| 898 | end | |
| 899 | Spawn(function() | |
| 900 | local Parts = {}
| |
| 901 | for Y = 1,1 do | |
| 902 | local P = Instance.new("Part",char)
| |
| 903 | P.Anchored = true | |
| 904 | P.FormFactor = "Custom" | |
| 905 | P.CanCollide = false | |
| 906 | P.Size = Vector3.new(20,20,999) | |
| 907 | P.TopSurface = "SmoothNoOutlines" | |
| 908 | P.BottomSurface = "SmoothNoOutlines" | |
| 909 | P.Transparency = 0.5 | |
| 910 | P.Material = "Neon" | |
| 911 | P.BrickColor = BrickColor.new("Really black")
| |
| 912 | P.Name = tostring(Y) | |
| 913 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 914 | local color1 = Color3.new(1, 0, 0) | |
| 915 | local color2 = Color3.new(0, 0, 0) | |
| 916 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 917 | Emitter.Size = NumberSequence.new(20) | |
| 918 | Emitter.Texture = "rbxassetid://243098098" | |
| 919 | Emitter.Lifetime = NumberRange.new(1) | |
| 920 | Emitter.Rate = 1000 | |
| 921 | Emitter.Rotation = NumberRange.new(720) | |
| 922 | Emitter.RotSpeed = NumberRange.new(140) | |
| 923 | Emitter.Speed = NumberRange.new(100) | |
| 924 | Emitter.VelocitySpread = 360 | |
| 925 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 926 | local color1 = Color3.new(1, 0, 0) | |
| 927 | local color2 = Color3.new(0, 0, 0) | |
| 928 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 929 | Emitter.Size = NumberSequence.new(20) | |
| 930 | Emitter.Texture = "rbxassetid://243098098" | |
| 931 | Emitter.Lifetime = NumberRange.new(1) | |
| 932 | Emitter.Rate = 1000 | |
| 933 | Emitter.Rotation = NumberRange.new(720) | |
| 934 | Emitter.RotSpeed = NumberRange.new(140) | |
| 935 | Emitter.Speed = NumberRange.new(100) | |
| 936 | Emitter.VelocitySpread = 360 | |
| 937 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 938 | local color1 = Color3.new(1, 0, 0) | |
| 939 | local color2 = Color3.new(0, 0, 0) | |
| 940 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 941 | Emitter.Size = NumberSequence.new(20) | |
| 942 | Emitter.Texture = "rbxassetid://243098098" | |
| 943 | Emitter.Lifetime = NumberRange.new(1) | |
| 944 | Emitter.Rate = 1000 | |
| 945 | Emitter.Rotation = NumberRange.new(720) | |
| 946 | Emitter.RotSpeed = NumberRange.new(140) | |
| 947 | Emitter.Speed = NumberRange.new(100) | |
| 948 | Emitter.VelocitySpread = 360 | |
| 949 | local i = (Y+5)/(10) | |
| 950 | i = 0-math.cos(math.pi*i-(math.pi/10)) | |
| 951 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*5))*CFrame.Angles(math.rad(Y*1),0,math.rad(180)) | |
| 952 | --[[P.Touched:connect(function(ht) | |
| 953 | local hit = ht.Parent | |
| 954 | if hit:FindFirstChild("Humanoid") then
| |
| 955 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
| 956 | end | |
| 957 | end)]]-- | |
| 958 | s = Instance.new("Sound",P)
| |
| 959 | s.SoundId = "rbxassetid://228343271" | |
| 960 | s.Volume = 1 | |
| 961 | s.Pitch = 0.9 | |
| 962 | s:Play() | |
| 963 | sa = Instance.new("Sound",P)
| |
| 964 | sa.SoundId = "rbxassetid://419447292" | |
| 965 | sa.Volume = 1 | |
| 966 | sa.Pitch = 1 | |
| 967 | sa:Play() | |
| 968 | P.Touched:connect(function(ht) | |
| 969 | hit = ht.Parent | |
| 970 | if ht and hit:IsA("Model") then
| |
| 971 | if hit:FindFirstChild("Humanoid") then
| |
| 972 | if hit.Name ~= p.Name then | |
| 973 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 974 | Debounces.Slashed = true]]-- | |
| 975 | hit:FindFirstChild("Humanoid").Health = -1
| |
| 976 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 977 | wait() | |
| 978 | --Debounces.Slashed = false | |
| 979 | --end | |
| 980 | end | |
| 981 | end | |
| 982 | elseif ht and hit:IsA("Hat") then
| |
| 983 | if hit.Parent.Name ~= p.Name then | |
| 984 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 985 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 986 | Debounces.Slashed = true | |
| 987 | hit.Parent:FindFirstChild("Humanoid").Health = -1
| |
| 988 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 989 | wait() | |
| 990 | Debounces.Slashed = false | |
| 991 | end | |
| 992 | end | |
| 993 | end | |
| 994 | end | |
| 995 | end) | |
| 996 | Parts[#Parts+1] = P | |
| 997 | end | |
| 998 | local BREAKIT = false | |
| 999 | local CParts = {}
| |
| 1000 | local Rocks = {}
| |
| 1001 | local LastPos = nil | |
| 1002 | for i = 1,100 do | |
| 1003 | for i2,v in pairs(Parts) do | |
| 1004 | v.CFrame = v.CFrame*CFrame.new(0,0,0) | |
| 1005 | local cf = v.CFrame | |
| 1006 | v.Size = v.Size+Vector3.new(0.1,0.1,10) | |
| 1007 | v.CFrame = cf | |
| 1008 | v.Transparency = v.Transparency+0.01 | |
| 1009 | if v.Transparency >= 0.975 then BREAKIT = true end | |
| 1010 | if v.Name == "0" then | |
| 1011 | local Ignore = {}
| |
| 1012 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 1013 | if v.Character ~= nil then | |
| 1014 | Ignore[#Ignore+1] = v.Character | |
| 1015 | end | |
| 1016 | end | |
| 1017 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-500,0)) | |
| 1018 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
| 1019 | if Hit ~= nil then | |
| 1020 | if #Rocks == 1 then | |
| 1021 | for i = 1,5 do | |
| 1022 | local P = Instance.new("Part",char)
| |
| 1023 | Rocks[#Rocks+1] = P | |
| 1024 | P.Anchored = true | |
| 1025 | P.FormFactor = "Custom" | |
| 1026 | P.BrickColor = BrickColor.new("Lime green")
| |
| 1027 | P.Material = "Grass" | |
| 1028 | P.Transparency = 0 | |
| 1029 | P.TopSurface = "Smooth" | |
| 1030 | P.BottomSurface = "Smooth" | |
| 1031 | P.Size = Vector3.new(3,3,3)*(math.random(500,900)/100) | |
| 1032 | end | |
| 1033 | end | |
| 1034 | for i,P in pairs(Rocks) do | |
| 1035 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1036 | end | |
| 1037 | local P = Instance.new("Part",char)
| |
| 1038 | CParts[#CParts+1] = {P,tick()}
| |
| 1039 | P.Anchored = true | |
| 1040 | P.FormFactor = "Custom" | |
| 1041 | P.BrickColor = BrickColor.new("Dark red")
| |
| 1042 | P.Material = "Grass" | |
| 1043 | P.Transparency = 0 | |
| 1044 | P.TopSurface = "Smooth" | |
| 1045 | P.BottomSurface = "Smooth" | |
| 1046 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
| 1047 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1048 | Pos = Pos.p | |
| 1049 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1050 | local P = P:Clone() | |
| 1051 | CParts[#CParts+1] = {P,tick()}
| |
| 1052 | P.Parent = char | |
| 1053 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
| 1054 | Pos = Pos.p | |
| 1055 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
| 1056 | if LastPos ~= nil then | |
| 1057 | local P = P:Clone() | |
| 1058 | CParts[#CParts+1] = {P,tick()}
| |
| 1059 | P.Parent = char | |
| 1060 | P.BrickColor = BrickColor.new("Dark red")
| |
| 1061 | P.Material = "Grass" | |
| 1062 | P.Transparency = 0 | |
| 1063 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1064 | Pos = Pos.p | |
| 1065 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1066 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
| 1067 | --P.Velocity = Vector3.new(0,-1000,0) | |
| 1068 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
| 1069 | end | |
| 1070 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1071 | end | |
| 1072 | end | |
| 1073 | end | |
| 1074 | if BREAKIT then break end | |
| 1075 | wait() | |
| 1076 | end | |
| 1077 | for i,v in pairs(Rocks) do | |
| 1078 | CParts[#CParts+1] = {v,tick()}
| |
| 1079 | end | |
| 1080 | for i,v in pairs(Parts) do | |
| 1081 | v:Destroy() | |
| 1082 | end | |
| 1083 | Parts = nil | |
| 1084 | while true do | |
| 1085 | local t = tick() | |
| 1086 | local p = nil | |
| 1087 | for i,v in pairs(CParts) do | |
| 1088 | if t-v[2] > 4 then | |
| 1089 | v[1].Transparency = v[1].Transparency+0.05 | |
| 1090 | if v[1].Transparency >= 1 then | |
| 1091 | v[1]:Destroy() | |
| 1092 | CParts[i] = nil | |
| 1093 | end | |
| 1094 | end | |
| 1095 | p = v | |
| 1096 | end | |
| 1097 | if p == nil then break end | |
| 1098 | wait() | |
| 1099 | end | |
| 1100 | for i,v in pairs(CParts) do | |
| 1101 | v:Destroy() | |
| 1102 | end | |
| 1103 | CParts = {}
| |
| 1104 | end) | |
| 1105 | for i = 1, 20 do | |
| 1106 | 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) | |
| 1107 | 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) | |
| 1108 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 1109 | 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) | |
| 1110 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 1111 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 1112 | if Debounces.on == false then break end | |
| 1113 | rs:wait() | |
| 1114 | end | |
| 1115 | if Debounces.CanAttack == false then | |
| 1116 | Debounces.CanAttack = true | |
| 1117 | Debounces.on = false | |
| 1118 | Debounces.NoIdl = false | |
| 1119 | end | |
| 1120 | end | |
| 1121 | end | |
| 1122 | end) | |
| 1123 | mouse.KeyDown:connect(function(key) | |
| 1124 | if key == "e" then | |
| 1125 | if Debounces.CanAttack == true then | |
| 1126 | Debounces.CanAttack = false | |
| 1127 | Debounces.on = true | |
| 1128 | Debounces.NoIdl = true | |
| 1129 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 1130 | z = Instance.new("Sound", rarm)
| |
| 1131 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1132 | z.Volume = 1.25 | |
| 1133 | z.Pitch = pt[math.random(1,#pt)] | |
| 1134 | z.Looped = false | |
| 1135 | z:Play() | |
| 1136 | Debounces.RPunch = true | |
| 1137 | Debounces.LPunch = true | |
| 1138 | Debounces.ks = true | |
| 1139 | Debounces.ks2 = true | |
| 1140 | for i = 1, 1 do | |
| 1141 | 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) | |
| 1142 | 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) | |
| 1143 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1144 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1145 | 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) | |
| 1146 | 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) | |
| 1147 | if Debounces.on == false then break end | |
| 1148 | wait() | |
| 1149 | end | |
| 1150 | z2 = Instance.new("Sound", larm)
| |
| 1151 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1152 | z2.Volume = 1.25 | |
| 1153 | z2.Pitch = pt[math.random(1,#pt)] | |
| 1154 | z2.Looped = false | |
| 1155 | z2:Play() | |
| 1156 | for i = 1, 1 do | |
| 1157 | 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) | |
| 1158 | 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) | |
| 1159 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1160 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1161 | 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) | |
| 1162 | 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) | |
| 1163 | if Debounces.on == false then break end | |
| 1164 | wait() | |
| 1165 | end | |
| 1166 | z3 = Instance.new("Sound", rarm)
| |
| 1167 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1168 | z3.Volume = 1.25 | |
| 1169 | z3.Pitch = pt[math.random(1,#pt)] | |
| 1170 | z3.Looped = false | |
| 1171 | z3:Play() | |
| 1172 | for i = 1, 1 do | |
| 1173 | 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) | |
| 1174 | 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) | |
| 1175 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1176 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1177 | 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) | |
| 1178 | 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) | |
| 1179 | if Debounces.on == false then break end | |
| 1180 | wait() | |
| 1181 | end | |
| 1182 | z4 = Instance.new("Sound", larm)
| |
| 1183 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1184 | z4.Volume = 1.25 | |
| 1185 | z4.Pitch = pt[math.random(1,#pt)] | |
| 1186 | z4.Looped = false | |
| 1187 | z4:Play() | |
| 1188 | for i = 1, 1 do | |
| 1189 | 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) | |
| 1190 | 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) | |
| 1191 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1192 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1193 | 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) | |
| 1194 | 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) | |
| 1195 | if Debounces.on == false then break end | |
| 1196 | wait() | |
| 1197 | end | |
| 1198 | z5 = Instance.new("Sound", rarm)
| |
| 1199 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1200 | z5.Volume = 1.25 | |
| 1201 | z5.Pitch = pt[math.random(1,#pt)] | |
| 1202 | z5.Looped = false | |
| 1203 | z5:Play() | |
| 1204 | for i = 1, 1 do | |
| 1205 | 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) | |
| 1206 | 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) | |
| 1207 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1208 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1209 | 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) | |
| 1210 | 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) | |
| 1211 | if Debounces.on == false then break end | |
| 1212 | wait() | |
| 1213 | end | |
| 1214 | z6 = Instance.new("Sound", larm)
| |
| 1215 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1216 | z6.Volume = 1.25 | |
| 1217 | z6.Pitch = pt[math.random(1,#pt)] | |
| 1218 | z6.Looped = false | |
| 1219 | z6:Play() | |
| 1220 | for i = 1, 1 do | |
| 1221 | 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) | |
| 1222 | 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) | |
| 1223 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1224 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1225 | 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) | |
| 1226 | 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) | |
| 1227 | if Debounces.on == false then break end | |
| 1228 | wait() | |
| 1229 | end | |
| 1230 | z7 = Instance.new("Sound", rarm)
| |
| 1231 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1232 | z7.Volume = 1.25 | |
| 1233 | z7.Pitch = pt[math.random(1,#pt)] | |
| 1234 | z7.Looped = false | |
| 1235 | z7:Play() | |
| 1236 | for i = 1, 1 do | |
| 1237 | 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) | |
| 1238 | 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) | |
| 1239 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1240 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1241 | 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) | |
| 1242 | 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) | |
| 1243 | if Debounces.on == false then break end | |
| 1244 | wait() | |
| 1245 | end | |
| 1246 | z8 = Instance.new("Sound", larm)
| |
| 1247 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1248 | z8.Volume = 1.25 | |
| 1249 | z8.Pitch = pt[math.random(1,#pt)] | |
| 1250 | z8.Looped = false | |
| 1251 | z8:Play() | |
| 1252 | for i = 1, 1 do | |
| 1253 | 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) | |
| 1254 | 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) | |
| 1255 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1256 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1257 | 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) | |
| 1258 | 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) | |
| 1259 | if Debounces.on == false then break end | |
| 1260 | wait() | |
| 1261 | end | |
| 1262 | z9 = Instance.new("Sound", rarm)
| |
| 1263 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1264 | z9.Volume = 1.25 | |
| 1265 | z9.Pitch = pt[math.random(1,#pt)] | |
| 1266 | z9.Looped = false | |
| 1267 | z9:Play() | |
| 1268 | for i = 1, 1 do | |
| 1269 | 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) | |
| 1270 | 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) | |
| 1271 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1272 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1273 | 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) | |
| 1274 | 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) | |
| 1275 | if Debounces.on == false then break end | |
| 1276 | wait() | |
| 1277 | end | |
| 1278 | z10 = Instance.new("Sound", larm)
| |
| 1279 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1280 | z10.Volume = 1.25 | |
| 1281 | z10.Pitch = pt[math.random(1,#pt)] | |
| 1282 | z10.Looped = false | |
| 1283 | z10:Play() | |
| 1284 | for i = 1, 1 do | |
| 1285 | 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) | |
| 1286 | 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) | |
| 1287 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1288 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1289 | 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) | |
| 1290 | 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) | |
| 1291 | if Debounces.on == false then break end | |
| 1292 | wait() | |
| 1293 | end | |
| 1294 | z11 = Instance.new("Sound", rarm)
| |
| 1295 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1296 | z11.Volume = 1.25 | |
| 1297 | z11.Pitch = pt[math.random(1,#pt)] | |
| 1298 | z11.Looped = false | |
| 1299 | z11:Play() | |
| 1300 | for i = 1, 1 do | |
| 1301 | 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) | |
| 1302 | 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) | |
| 1303 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1304 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1305 | 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) | |
| 1306 | 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) | |
| 1307 | if Debounces.on == false then break end | |
| 1308 | wait() | |
| 1309 | end | |
| 1310 | z12 = Instance.new("Sound", larm)
| |
| 1311 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1312 | z12.Volume = 1.25 | |
| 1313 | z12.Pitch = pt[math.random(1,#pt)] | |
| 1314 | z12.Looped = false | |
| 1315 | z12:Play() | |
| 1316 | for i = 1, 1 do | |
| 1317 | 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) | |
| 1318 | 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) | |
| 1319 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1320 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1321 | 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) | |
| 1322 | 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) | |
| 1323 | if Debounces.on == false then break end | |
| 1324 | wait() | |
| 1325 | end | |
| 1326 | z13 = Instance.new("Sound", rarm)
| |
| 1327 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1328 | z13.Volume = 1.25 | |
| 1329 | z13.Pitch = pt[math.random(1,#pt)] | |
| 1330 | z13.Looped = false | |
| 1331 | z13:Play() | |
| 1332 | for i = 1, 1 do | |
| 1333 | 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) | |
| 1334 | 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) | |
| 1335 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1336 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1337 | 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) | |
| 1338 | 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) | |
| 1339 | if Debounces.on == false then break end | |
| 1340 | wait() | |
| 1341 | end | |
| 1342 | z14 = Instance.new("Sound", larm)
| |
| 1343 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1344 | z14.Volume = 1.25 | |
| 1345 | z14.Pitch = pt[math.random(1,#pt)] | |
| 1346 | z14.Looped = false | |
| 1347 | z14:Play() | |
| 1348 | for i = 1, 1 do | |
| 1349 | 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) | |
| 1350 | 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) | |
| 1351 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1352 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1353 | 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) | |
| 1354 | 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) | |
| 1355 | if Debounces.on == false then break end | |
| 1356 | wait() | |
| 1357 | end | |
| 1358 | z15 = Instance.new("Sound", rarm)
| |
| 1359 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1360 | z15.Volume = 1.25 | |
| 1361 | z15.Pitch = pt[math.random(1,#pt)] | |
| 1362 | z15.Looped = false | |
| 1363 | z15:Play() | |
| 1364 | for i = 1, 1 do | |
| 1365 | 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) | |
| 1366 | 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) | |
| 1367 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1368 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1369 | 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) | |
| 1370 | 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) | |
| 1371 | if Debounces.on == false then break end | |
| 1372 | wait() | |
| 1373 | end | |
| 1374 | z16 = Instance.new("Sound", larm)
| |
| 1375 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1376 | z16.Volume = 1.25 | |
| 1377 | z16.Pitch = pt[math.random(1,#pt)] | |
| 1378 | z16.Looped = false | |
| 1379 | z16:Play() | |
| 1380 | for i = 1, 1 do | |
| 1381 | 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) | |
| 1382 | 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) | |
| 1383 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1384 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1385 | 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) | |
| 1386 | 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) | |
| 1387 | if Debounces.on == false then break end | |
| 1388 | wait() | |
| 1389 | end | |
| 1390 | z17 = Instance.new("Sound", rarm)
| |
| 1391 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1392 | z17.Volume = 1.25 | |
| 1393 | z17.Pitch = pt[math.random(1,#pt)] | |
| 1394 | z17.Looped = false | |
| 1395 | z17:Play() | |
| 1396 | for i = 1, 1 do | |
| 1397 | 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) | |
| 1398 | 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) | |
| 1399 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1400 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1401 | 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) | |
| 1402 | 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) | |
| 1403 | if Debounces.on == false then break end | |
| 1404 | wait() | |
| 1405 | end | |
| 1406 | z18 = Instance.new("Sound", larm)
| |
| 1407 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1408 | z18.Volume = 1.25 | |
| 1409 | z18.Pitch = pt[math.random(1,#pt)] | |
| 1410 | z18.Looped = false | |
| 1411 | z18:Play() | |
| 1412 | for i = 1, 1 do | |
| 1413 | 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) | |
| 1414 | 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) | |
| 1415 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1416 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1417 | 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) | |
| 1418 | 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) | |
| 1419 | if Debounces.on == false then break end | |
| 1420 | wait() | |
| 1421 | end | |
| 1422 | z19 = Instance.new("Sound", rarm)
| |
| 1423 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1424 | z19.Volume = 1.25 | |
| 1425 | z19.Pitch = pt[math.random(1,#pt)] | |
| 1426 | z19.Looped = false | |
| 1427 | z19:Play() | |
| 1428 | for i = 1, 1 do | |
| 1429 | 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) | |
| 1430 | 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) | |
| 1431 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1432 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1433 | 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) | |
| 1434 | 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) | |
| 1435 | if Debounces.on == false then break end | |
| 1436 | wait() | |
| 1437 | end | |
| 1438 | z20 = Instance.new("Sound", larm)
| |
| 1439 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1440 | z20.Volume = 1.25 | |
| 1441 | z20.Pitch = pt[math.random(1,#pt)] | |
| 1442 | z20.Looped = false | |
| 1443 | z20:Play() | |
| 1444 | for i = 1, 1 do | |
| 1445 | 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) | |
| 1446 | 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) | |
| 1447 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1448 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1449 | 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) | |
| 1450 | 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) | |
| 1451 | if Debounces.on == false then break end | |
| 1452 | wait() | |
| 1453 | end | |
| 1454 | z:Destroy() | |
| 1455 | z2:Destroy() | |
| 1456 | z3:Destroy() | |
| 1457 | z4:Destroy() | |
| 1458 | z5:Destroy() | |
| 1459 | z6:Destroy() | |
| 1460 | z7:Destroy() | |
| 1461 | z8:Destroy() | |
| 1462 | z9:Destroy() | |
| 1463 | z10:Destroy() | |
| 1464 | z11:Destroy() | |
| 1465 | z12:Destroy() | |
| 1466 | z13:Destroy() | |
| 1467 | z14:Destroy() | |
| 1468 | z15:Destroy() | |
| 1469 | z16:Destroy() | |
| 1470 | z17:Destroy() | |
| 1471 | z18:Destroy() | |
| 1472 | z19:Destroy() | |
| 1473 | z20:Destroy() | |
| 1474 | Debounces.LPunch = false | |
| 1475 | Debounces.RPunch = false | |
| 1476 | Debounces.ks = false | |
| 1477 | Debounces.ks2 = false | |
| 1478 | if Debounces.CanAttack == false then | |
| 1479 | Debounces.CanAttack = true | |
| 1480 | Debounces.on = false | |
| 1481 | Debounces.NoIdl = false | |
| 1482 | end | |
| 1483 | end | |
| 1484 | end | |
| 1485 | end) | |
| 1486 | ||
| 1487 | mouse.KeyDown:connect(function(key) | |
| 1488 | if key == "q" then | |
| 1489 | if Debounces.CanAttack == true then | |
| 1490 | Debounces.CanAttack = false | |
| 1491 | Debounces.NoIdl = true | |
| 1492 | Debounces.on = true | |
| 1493 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1494 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1495 | local List = {}
| |
| 1496 | for i,v in pairs(workspace:GetChildren())do | |
| 1497 | if v:IsA("Model")then
| |
| 1498 | if v:findFirstChild("Torso")then
| |
| 1499 | if v ~= char then | |
| 1500 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1501 | table.insert(List,v) | |
| 1502 | end | |
| 1503 | end | |
| 1504 | end | |
| 1505 | end | |
| 1506 | end | |
| 1507 | return List | |
| 1508 | end | |
| 1509 | z = Instance.new("Sound",hed)
| |
| 1510 | z.SoundId = "rbxassetid://232213955" | |
| 1511 | z.Pitch = 1 | |
| 1512 | z.Volume = 1 | |
| 1513 | wait(0.2) | |
| 1514 | z:Play() | |
| 1515 | sp = Instance.new("Part",rarm)
| |
| 1516 | sp.Anchored = true | |
| 1517 | sp.CanCollide = false | |
| 1518 | sp.Locked = true | |
| 1519 | sp.Transparency = 0 | |
| 1520 | sp.Material = "Neon" | |
| 1521 | sp.Size = Vector3.new(1,1,1) | |
| 1522 | sp.TopSurface = "SmoothNoOutlines" | |
| 1523 | sp.BottomSurface = "SmoothNoOutlines" | |
| 1524 | sp.BrickColor = BrickColor.new("Lime green")
| |
| 1525 | spm = Instance.new("SpecialMesh",sp)
| |
| 1526 | spm.MeshType = "Sphere" | |
| 1527 | spm.Scale = Vector3.new(21,21,21) | |
| 1528 | sp2 = Instance.new("Part", rarm)
| |
| 1529 | sp2.Name = "Energy" | |
| 1530 | sp2.BrickColor = BrickColor.new("Really black")
| |
| 1531 | sp2.Size = Vector3.new(1, 1, 1) | |
| 1532 | sp2.Shape = "Ball" | |
| 1533 | sp2.CanCollide = false | |
| 1534 | sp2.Anchored = true | |
| 1535 | sp2.Locked = true | |
| 1536 | sp2.TopSurface = 0 | |
| 1537 | sp2.BottomSurface = 0 | |
| 1538 | sp2.Transparency = 1 | |
| 1539 | spm2 = Instance.new("SpecialMesh",sp2)
| |
| 1540 | spm2.MeshId = "rbxassetid://9982590" | |
| 1541 | spm2.Scale = Vector3.new(2,2,2) | |
| 1542 | for i = 1, 20 do | |
| 1543 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 1544 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1545 | 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) | |
| 1546 | 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) | |
| 1547 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 1548 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1549 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1550 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1551 | if Debounces.on == false then break end | |
| 1552 | rs:wait() | |
| 1553 | end | |
| 1554 | for i = 1, 100, 20 do rs:wait() | |
| 1555 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1556 | end | |
| 1557 | for i = 1, 20 do | |
| 1558 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1559 | 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) | |
| 1560 | 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) | |
| 1561 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
| 1562 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
| 1563 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1564 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1565 | if Debounces.on == false then break end | |
| 1566 | rs:wait() | |
| 1567 | end | |
| 1568 | sp.Transparency = 1 | |
| 1569 | for i = 1, 20 do | |
| 1570 | 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) | |
| 1571 | 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) | |
| 1572 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
| 1573 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
| 1574 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1575 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1576 | if Debounces.on == false then break end | |
| 1577 | rs:wait() | |
| 1578 | end | |
| 1579 | wait(1) | |
| 1580 | sp.Transparency = 0 | |
| 1581 | sp2.Transparency = 0.84 | |
| 1582 | for i = 1, 20 do | |
| 1583 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 1584 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1585 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 1586 | 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) | |
| 1587 | 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) | |
| 1588 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 1589 | 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) | |
| 1590 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 1591 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 1592 | if Debounces.on == false then break end | |
| 1593 | rs:wait() | |
| 1594 | end | |
| 1595 | for i = 1, 2880, 50 do | |
| 1596 | rs:wait() | |
| 1597 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1598 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 1599 | rs:wait() | |
| 1600 | end | |
| 1601 | sp:Destroy() | |
| 1602 | sp2:Destroy() | |
| 1603 | local X = Instance.new("Part",char)
| |
| 1604 | local O = Instance.new("ObjectValue",X)
| |
| 1605 | O.Name = "creator" | |
| 1606 | X.Locked = true | |
| 1607 | X.Name = "Shell" | |
| 1608 | X.Anchored = false | |
| 1609 | X.CanCollide = false | |
| 1610 | X.Transparency = 0 | |
| 1611 | X.Reflectance = 0 | |
| 1612 | X.BottomSurface = 0 | |
| 1613 | X.TopSurface = 0 | |
| 1614 | X.Shape = 0 | |
| 1615 | local V = Instance.new("ObjectValue",X)
| |
| 1616 | V.Value = char | |
| 1617 | V.Name = "creator" | |
| 1618 | X.BrickColor = BrickColor.new("Crimson")
| |
| 1619 | X.Size = Vector3.new(2,2,2) | |
| 1620 | X.Material = "Neon" | |
| 1621 | local Z = Instance.new("SpecialMesh",X)
| |
| 1622 | Z.MeshType = "Sphere" | |
| 1623 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 1624 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
| 1625 | local bv = Instance.new("BodyVelocity",X)
| |
| 1626 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 1627 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
| 1628 | bv.velocity = X.CFrame.lookVector*65 | |
| 1629 | ||
| 1630 | Explode = X.Touched:connect(function(hit) | |
| 1631 | if hit ~= char and hit.Name ~= "Shell" then | |
| 1632 | local cf = X.CFrame | |
| 1633 | bv:Destroy() | |
| 1634 | X.Anchored = true | |
| 1635 | Z:Remove() | |
| 1636 | Explode:disconnect() | |
| 1637 | X.Size = Vector3.new(3,3,3) | |
| 1638 | X.Touched:connect(function(hit) end) | |
| 1639 | X.CanCollide = false | |
| 1640 | local part3 = Instance.new("Part", rarm)
| |
| 1641 | part3.Anchored=true | |
| 1642 | part3.CanCollide=false | |
| 1643 | part3.Locked = true | |
| 1644 | part3.TopSurface = "SmoothNoOutlines" | |
| 1645 | part3.BottomSurface = "SmoothNoOutlines" | |
| 1646 | part3.FormFactor='Custom' | |
| 1647 | part3.Size=Vector3.new(1,1, 1) | |
| 1648 | part3.CFrame=X.CFrame | |
| 1649 | part3.Transparency=0 | |
| 1650 | part3.BrickColor=BrickColor.new("Gold")
| |
| 1651 | local mesh3 = Instance.new("SpecialMesh",part3)
| |
| 1652 | mesh3.MeshType = "Sphere" | |
| 1653 | mesh3.Scale = Vector3.new(1,1,1) | |
| 1654 | --debris:AddItem(X,8) | |
| 1655 | local part4 = Instance.new("Part", rarm)
| |
| 1656 | part4.Material = "Neon" | |
| 1657 | part4.Anchored=true | |
| 1658 | part4.CanCollide=false | |
| 1659 | part4.Locked = true | |
| 1660 | part4.TopSurface = "SmoothNoOutlines" | |
| 1661 | part4.BottomSurface = "SmoothNoOutlines" | |
| 1662 | part4.FormFactor='Custom' | |
| 1663 | part4.Size=Vector3.new(1,1, 1) | |
| 1664 | part4.CFrame=X.CFrame | |
| 1665 | part4.Transparency=0 | |
| 1666 | part4.BrickColor=BrickColor.new("Hot pink")
| |
| 1667 | local mesh4 = Instance.new("SpecialMesh",part4)
| |
| 1668 | mesh4.MeshType = "Sphere" | |
| 1669 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
| 1670 | local part7 = Instance.new("Part", rarm)
| |
| 1671 | part7.Material = "Neon" | |
| 1672 | part7.Anchored=true | |
| 1673 | part7.CanCollide=false | |
| 1674 | part7.Locked = true | |
| 1675 | part7.TopSurface = "SmoothNoOutlines" | |
| 1676 | part7.BottomSurface = "SmoothNoOutlines" | |
| 1677 | part7.FormFactor='Custom' | |
| 1678 | part7.Size=Vector3.new(1,1, 1) | |
| 1679 | part7.CFrame=X.CFrame | |
| 1680 | part7.Transparency=0 | |
| 1681 | part7.BrickColor=BrickColor.new("Teal")
| |
| 1682 | local mesh7 = Instance.new("SpecialMesh",part7)
| |
| 1683 | mesh7.MeshType = "Sphere" | |
| 1684 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
| 1685 | --[[X.Touched:connect(function(ht) | |
| 1686 | hit = ht.Parent | |
| 1687 | if ht and hit:IsA("Model") then
| |
| 1688 | if hit:FindFirstChild("Humanoid") then
| |
| 1689 | if hit.Name ~= p.Name then | |
| 1690 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1691 | wait(.3) | |
| 1692 | end | |
| 1693 | end | |
| 1694 | elseif ht and hit:IsA("Hat") then
| |
| 1695 | if hit.Parent.Name ~= p.Name then | |
| 1696 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1697 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1698 | wait(.3) | |
| 1699 | end | |
| 1700 | end | |
| 1701 | end | |
| 1702 | end) | |
| 1703 | part3.Touched:connect(function(ht) | |
| 1704 | hit = ht.Parent | |
| 1705 | if ht and hit:IsA("Model") then
| |
| 1706 | if hit:FindFirstChild("Humanoid") then
| |
| 1707 | if hit.Name ~= p.Name then | |
| 1708 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1709 | wait(.3) | |
| 1710 | end | |
| 1711 | end | |
| 1712 | elseif ht and hit:IsA("Hat") then
| |
| 1713 | if hit.Parent.Name ~= p.Name then | |
| 1714 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1715 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 1716 | wait(.3) | |
| 1717 | end | |
| 1718 | end | |
| 1719 | end | |
| 1720 | end)]]-- | |
| 1721 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
| 1722 | if v:FindFirstChild('Humanoid') then
| |
| 1723 | v.Humanoid:TakeDamage(math.random(9000,900000)) | |
| 1724 | v.Humanoid.PlatformStand = true | |
| 1725 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 1726 | end | |
| 1727 | end | |
| 1728 | ||
| 1729 | local acos = math.acos | |
| 1730 | local sqrt = math.sqrt | |
| 1731 | local Vec3 = Vector3.new | |
| 1732 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 1733 | ||
| 1734 | local function toAxisAngle(CFr) | |
| 1735 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 1736 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 1737 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 1738 | A = A == 0 and 0.00001 or A | |
| 1739 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 1740 | B = B == 0 and 0.00001 or B | |
| 1741 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 1742 | C = C == 0 and 0.00001 or C | |
| 1743 | local x = (R21-R12)/sqrt(A) | |
| 1744 | local y = (R02-R20)/sqrt(B) | |
| 1745 | local z = (R10-R01)/sqrt(C) | |
| 1746 | return Vec3(x,y,z),Angle | |
| 1747 | end | |
| 1748 | ||
| 1749 | function ApplyTrig(Num,Func) | |
| 1750 | local Min,Max = Func(0),Func(1) | |
| 1751 | local i = Func(Num) | |
| 1752 | return (i-Min)/(Max-Min) | |
| 1753 | end | |
| 1754 | ||
| 1755 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 1756 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 1757 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 1758 | end | |
| 1759 | ||
| 1760 | function Crater(Torso,Radius) | |
| 1761 | Spawn(function() | |
| 1762 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
| 1763 | local Ignore = {}
| |
| 1764 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 1765 | if v.Character ~= nil then | |
| 1766 | Ignore[#Ignore+1] = v.Character | |
| 1767 | end | |
| 1768 | end | |
| 1769 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 1770 | if Hit == nil then return end | |
| 1771 | local Parts = {}
| |
| 1772 | for i = 1,360,10 do | |
| 1773 | local P = Instance.new("Part",Torso.Parent)
| |
| 1774 | P.Anchored = true | |
| 1775 | P.FormFactor = "Custom" | |
| 1776 | P.BrickColor = Hit.BrickColor | |
| 1777 | P.Material = Hit.Material | |
| 1778 | P.TopSurface = "Smooth" | |
| 1779 | P.BottomSurface = "Smooth" | |
| 1780 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
| 1781 | 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))) | |
| 1782 | 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}
| |
| 1783 | if math.random(0,5) == 0 then -- rubble | |
| 1784 | local P = Instance.new("Part",Torso.Parent)
| |
| 1785 | P.Anchored = true | |
| 1786 | P.FormFactor = "Custom" | |
| 1787 | P.BrickColor = Hit.BrickColor | |
| 1788 | P.Material = Hit.Material | |
| 1789 | P.TopSurface = "Smooth" | |
| 1790 | P.BottomSurface = "Smooth" | |
| 1791 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
| 1792 | 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))) | |
| 1793 | 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}
| |
| 1794 | end | |
| 1795 | end | |
| 1796 | for i = 0,1,0.05 do | |
| 1797 | for i2,v in pairs(Parts) do | |
| 1798 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 1799 | end | |
| 1800 | wait(0.02) | |
| 1801 | end | |
| 1802 | for i,v in pairs(Parts) do | |
| 1803 | if v[1].Size.X > 2.1 then | |
| 1804 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 1805 | end | |
| 1806 | v[1].Anchored = false | |
| 1807 | end | |
| 1808 | for i = 0,1,0.05 do | |
| 1809 | for i2,v in pairs(Parts) do | |
| 1810 | v[1].Transparency = i | |
| 1811 | if i == 1 then | |
| 1812 | v[1]:Destroy() | |
| 1813 | elseif i >= 0.25 then | |
| 1814 | v[1].CanCollide = false | |
| 1815 | end | |
| 1816 | end | |
| 1817 | wait(0.02) | |
| 1818 | end | |
| 1819 | Parts = nil | |
| 1820 | end) | |
| 1821 | end | |
| 1822 | ||
| 1823 | ROW = function(out, trans, s, wt, t, ang, plus) | |
| 1824 | for i = 1, 360, 360/t do | |
| 1825 | local c = Instance.new("Part", game.Workspace)
| |
| 1826 | c.FormFactor = 3 | |
| 1827 | c.TopSurface = 0 | |
| 1828 | c.BottomSurface = 0 | |
| 1829 | c.Size = s | |
| 1830 | c.Anchored = true | |
| 1831 | c.CanCollide = wt | |
| 1832 | c.Material=workspace.Base.Material | |
| 1833 | c.Transparency = trans | |
| 1834 | c.BrickColor = workspace.Base.BrickColor | |
| 1835 | 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 | |
| 1836 | c.Locked=true | |
| 1837 | game.Debris:AddItem(c,15) | |
| 1838 | end | |
| 1839 | end | |
| 1840 | ||
| 1841 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 1842 | local p = Instance.new('Part',parent or Weapon)
| |
| 1843 | p.formFactor = 'Custom' | |
| 1844 | p.Size = Vector3.new(x,y,z) | |
| 1845 | p.BrickColor = BrickColor.new(color) | |
| 1846 | p.CanCollide = cc | |
| 1847 | p.Transparency = tr | |
| 1848 | p.Anchored = an | |
| 1849 | p.TopSurface,p.BottomSurface = 0,0 | |
| 1850 | p.Locked=true | |
| 1851 | p:BreakJoints() | |
| 1852 | return p end | |
| 1853 | ||
| 1854 | Mesh = function(par,num,x,y,z) | |
| 1855 | local msh = _ | |
| 1856 | if num == 1 then msh = Instance.new("CylinderMesh",par)
| |
| 1857 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
| |
| 1858 | elseif num == 3 then msh = Instance.new("BlockMesh",par)
| |
| 1859 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
| |
| 1860 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
| |
| 1861 | end msh.Scale = Vector3.new(x,y,z) | |
| 1862 | return msh end | |
| 1863 | ||
| 1864 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 1865 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
| 1866 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
| 1867 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
| 1868 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 1869 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 1870 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 1871 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 1872 | a.CFrame=cfr | |
| 1873 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1874 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1875 | ||
| 1876 | Spawn(function() | |
| 1877 | while wait() do | |
| 1878 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 1879 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 1880 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 1881 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 1882 | a.Transparency=a.Transparency+0.05 | |
| 1883 | a2.Transparency=a2.Transparency+0.05 | |
| 1884 | a3.Transparency=a3.Transparency+0.05 | |
| 1885 | end | |
| 1886 | end) | |
| 1887 | end | |
| 1888 | ||
| 1889 | Crater(X,20) | |
| 1890 | 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) | |
| 1891 | z = Instance.new("Sound",X)
| |
| 1892 | z.SoundId = "rbxassetid://231917744" | |
| 1893 | z.Pitch = .5 | |
| 1894 | z.Volume = 10 | |
| 1895 | z1 = Instance.new("Sound",X)
| |
| 1896 | z1.SoundId = "rbxassetid://231917744" | |
| 1897 | z1.Pitch = .5 | |
| 1898 | z1.Volume = 10 | |
| 1899 | z2 = Instance.new("Sound",X)
| |
| 1900 | z2.SoundId = "rbxassetid://231917744" | |
| 1901 | z2.Pitch = .5 | |
| 1902 | z2.Volume = 10 | |
| 1903 | z3 = Instance.new("Sound",X)
| |
| 1904 | z3.SoundId = "rbxassetid://245537790" | |
| 1905 | z3.Pitch = .7 | |
| 1906 | z3.Volume = 1 | |
| 1907 | z4 = Instance.new("Sound",X)
| |
| 1908 | z4.SoundId = "rbxassetid://245537790" | |
| 1909 | z4.Pitch = .7 | |
| 1910 | z4.Volume = 1 | |
| 1911 | wait(0.1) | |
| 1912 | z:Play() | |
| 1913 | z1:Play() | |
| 1914 | z2:Play() | |
| 1915 | z3:Play() | |
| 1916 | z4:Play() | |
| 1917 | ||
| 1918 | local part=Instance.new('Part',rarm)
| |
| 1919 | part.Anchored=true | |
| 1920 | part.CanCollide=false | |
| 1921 | part.Locked = true | |
| 1922 | part.FormFactor='Custom' | |
| 1923 | part.Size=Vector3.new(1,1,1) | |
| 1924 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
| 1925 | part.Transparency=0 | |
| 1926 | part.BrickColor=BrickColor.new('Lime green')
| |
| 1927 | local mesh=Instance.new('SpecialMesh',part)
| |
| 1928 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1929 | mesh.Scale=Vector3.new(2,2,2) | |
| 1930 | local part2=part:clone() | |
| 1931 | part2.Parent = rarm | |
| 1932 | - | part2.BrickColor=BrickColor.new("White")
|
| 1932 | + | part2.BrickColor=BrickColor.new("Really black")
|
| 1933 | local part5=part:clone() | |
| 1934 | part5.Parent = rarm | |
| 1935 | - | part5.BrickColor=BrickColor.new("Magenta")
|
| 1935 | + | part5.BrickColor=BrickColor.new("Really black")
|
| 1936 | local part6=part:clone() | |
| 1937 | part6.Parent = rarm | |
| 1938 | - | part6.BrickColor=BrickColor.new("Black")
|
| 1938 | + | part6.BrickColor=BrickColor.new("Lime green")
|
| 1939 | local mesh2=mesh:clone() | |
| 1940 | mesh2.Parent=part2 | |
| 1941 | mesh2.Scale=Vector3.new(3, 3, 3) | |
| 1942 | local mesh5=mesh:clone() | |
| 1943 | mesh5.Parent=part5 | |
| 1944 | mesh5.Scale=Vector3.new(3, 3, 3) | |
| 1945 | local mesh6=mesh:clone() | |
| 1946 | mesh6.Parent=part6 | |
| 1947 | mesh6.Scale=Vector3.new(3, 3, 3) | |
| 1948 | local blast = Instance.new("Part", rarm)
| |
| 1949 | blast.BrickColor = BrickColor.new("Hot pink")
| |
| 1950 | blast.Anchored = true | |
| 1951 | blast.CanCollide = false | |
| 1952 | blast.Locked = true | |
| 1953 | blast.Size = Vector3.new(1, 1, 1) | |
| 1954 | blast.TopSurface = "Smooth" | |
| 1955 | blast.BottomSurface = "Smooth" | |
| 1956 | blast.Transparency = 0 | |
| 1957 | blast.CFrame = HandCF | |
| 1958 | local bm = Instance.new("SpecialMesh", blast)
| |
| 1959 | bm.Scale = Vector3.new(5,1,5) | |
| 1960 | bm.MeshId = "rbxassetid://3270017" | |
| 1961 | local blast2 = Instance.new("Part", rarm)
| |
| 1962 | blast2.BrickColor = BrickColor.new("New Yeller")
| |
| 1963 | blast2.Anchored = true | |
| 1964 | blast2.CanCollide = false | |
| 1965 | blast2.Locked = true | |
| 1966 | blast2.Size = Vector3.new(1, 1, 1) | |
| 1967 | blast2.TopSurface = "Smooth" | |
| 1968 | blast2.BottomSurface = "Smooth" | |
| 1969 | blast2.Transparency = 0 | |
| 1970 | blast2.CFrame = HandCF | |
| 1971 | local bm2 = Instance.new("SpecialMesh", blast2)
| |
| 1972 | bm2.Scale = Vector3.new(3,1,3) | |
| 1973 | bm2.MeshId = "rbxassetid://3270017" | |
| 1974 | local blast3 = Instance.new("Part", rarm)
| |
| 1975 | blast3.BrickColor = BrickColor.new("Teal")
| |
| 1976 | blast3.Anchored = true | |
| 1977 | blast3.CanCollide = false | |
| 1978 | blast3.Locked = true | |
| 1979 | blast3.Size = Vector3.new(1, 1, 1) | |
| 1980 | blast3.TopSurface = "Smooth" | |
| 1981 | blast3.BottomSurface = "Smooth" | |
| 1982 | blast3.Transparency = 0 | |
| 1983 | blast3.CFrame = HandCF | |
| 1984 | local bm3 = Instance.new("SpecialMesh", blast3)
| |
| 1985 | bm3.Scale = Vector3.new(3,1,3) | |
| 1986 | bm3.MeshId = "rbxassetid://3270017" | |
| 1987 | for i = 1,120 do rs:wait() | |
| 1988 | X.Transparency = X.Transparency + (1/120) | |
| 1989 | part.Transparency = part.Transparency + (1/120) | |
| 1990 | part2.Transparency = part2.Transparency + (1/120) | |
| 1991 | part3.Transparency = part3.Transparency + (1/120) | |
| 1992 | part4.Transparency = part4.Transparency + (1/120) | |
| 1993 | part5.Transparency = part5.Transparency + (1/120) | |
| 1994 | part6.Transparency = part6.Transparency + (1/120) | |
| 1995 | part7.Transparency = part7.Transparency + (1/120) | |
| 1996 | blast.Transparency = blast.Transparency + (1/120) | |
| 1997 | blast2.Transparency = blast2.Transparency + (1/120) | |
| 1998 | blast3.Transparency = blast3.Transparency + (1/120) | |
| 1999 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
| 2000 | wpart3.Size = part3.Size + Vector3.new(3,3,3) | |
| 2001 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
| 2002 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
| 2003 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
| 2004 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
| 2005 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
| 2006 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
| 2007 | mesh7.Scale = mesh7.Scale + Vector3.new(10,10,10) | |
| 2008 | bm.Scale = bm.Scale + Vector3.new(12,12,.2) | |
| 2009 | bm2.Scale = bm2.Scale + Vector3.new(10,10,.2) | |
| 2010 | bm3.Scale = bm3.Scale + Vector3.new(10,10,.2) | |
| 2011 | X.CFrame = cf | |
| 2012 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
| 2013 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2014 | part3.CFrame=X.CFrame | |
| 2015 | part4.CFrame=X.CFrame | |
| 2016 | part7.CFrame=X.CFrame | |
| 2017 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
| 2018 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
| 2019 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 2020 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
| 2021 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
| 2022 | rs:wait() | |
| 2023 | end | |
| 2024 | X:Destroy() | |
| 2025 | part:Destroy() | |
| 2026 | part2:Destroy() | |
| 2027 | part3:Destroy() | |
| 2028 | part4:Destroy() | |
| 2029 | part5:Destroy() | |
| 2030 | part6:Destroy() | |
| 2031 | blast:Destroy() | |
| 2032 | blast2:Destroy() | |
| 2033 | blast3:Destroy() | |
| 2034 | z:Destroy() | |
| 2035 | z1:Destroy() | |
| 2036 | z2:Destroy() | |
| 2037 | z3:Destroy() | |
| 2038 | z4:Destroy() | |
| 2039 | end | |
| 2040 | end) | |
| 2041 | for i = 1, 20 do | |
| 2042 | 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) | |
| 2043 | 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) | |
| 2044 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2045 | 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) | |
| 2046 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 2047 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 2048 | if Debounces.on == false then break end | |
| 2049 | rs:wait() | |
| 2050 | end | |
| 2051 | if Debounces.CanAttack == false then | |
| 2052 | Debounces.CanAttack = true | |
| 2053 | Debounces.NoIdl = false | |
| 2054 | Debounces.on = false | |
| 2055 | end | |
| 2056 | end | |
| 2057 | end | |
| 2058 | end) | |
| 2059 | ||
| 2060 | ||
| 2061 | mouse.KeyDown:connect(function(key) | |
| 2062 | ||
| 2063 | if string.byte(key) == 52 then | |
| 2064 | Swing = 2 | |
| 2065 | char.Humanoid.WalkSpeed = 28 | |
| 2066 | end | |
| 2067 | end | |
| 2068 | ) | |
| 2069 | mouse.KeyUp:connect(function(key) | |
| 2070 | ||
| 2071 | if string.byte(key) == 52 then | |
| 2072 | Swing = 1 | |
| 2073 | char.Humanoid.WalkSpeed = 16 | |
| 2074 | end | |
| 2075 | end | |
| 2076 | ) | |
| 2077 | jump = false | |
| 2078 | rs:connect(function() | |
| 2079 | ||
| 2080 | if char.Humanoid.Jump == true then | |
| 2081 | jump = true | |
| 2082 | else | |
| 2083 | jump = false | |
| 2084 | end | |
| 2085 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2086 | ||
| 2087 | if f then | |
| 2088 | ffing = true | |
| 2089 | else | |
| 2090 | ffing = false | |
| 2091 | end | |
| 2092 | end | |
| 2093 | ) | |
| 2094 | sine = sine + change | |
| 2095 | if jump == true then | |
| 2096 | animpose = "Jumping" | |
| 2097 | else | |
| 2098 | if ffing == true then | |
| 2099 | animpose = "Freefalling" | |
| 2100 | else | |
| 2101 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2102 | animpose = "Idle" | |
| 2103 | else | |
| 2104 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2105 | animpose = "Walking" | |
| 2106 | else | |
| 2107 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2108 | animpose = "Running" | |
| 2109 | end | |
| 2110 | end | |
| 2111 | end | |
| 2112 | end | |
| 2113 | end | |
| 2114 | RightLeg = CFrame.new(0.5, -1, 0) | |
| 2115 | LeftLeg = CFrame.new(-0.5, -1, 0) | |
| 2116 | lefth = (torso.CFrame*LeftLeg) | |
| 2117 | righth = (torso.CFrame*RightLeg) | |
| 2118 | ||
| 2119 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 2120 | ||
| 2121 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
| 2122 | ||
| 2123 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 2124 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 2125 | if animpose ~= lastanimpose then | |
| 2126 | sine = 0 | |
| 2127 | if Debounces.NoIdl == false then | |
| 2128 | if stanceToggle == "Idle1" then | |
| 2129 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-12 - 4 * math.cos(sine / 22)), math.rad(-12 - 2 * math.cos(sine / 22)), math.rad(12 + 2 * math.cos(sine / 22))), 0.3) | |
| 2130 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, -0.2) * CFrame.Angles(math.rad(20 + 4 * math.cos(sine / 22)), math.rad(-22 - 2 * math.cos(sine / 22)), math.rad(-15 - 2 * math.cos(sine / 22))), 0.3) | |
| 2131 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-12 + 2.5 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.2) | |
| 2132 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2 + 2 * math.cos(sine / 22)), math.rad(0), 0), 0.2) | |
| 2133 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(5), math.rad(-5)), 0.2) | |
| 2134 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(-5), math.rad(5)), 0.2) | |
| 2135 | else | |
| 2136 | if stanceToggle == "Idle2" then | |
| 2137 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-22 - 4 * math.cos(sine / 12)), math.rad(-40 - 2 * math.cos(sine / 12)), math.rad(24 + 2 * math.cos(sine / 12))), 0.3) | |
| 2138 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.6, -0.6) * CFrame.Angles(math.rad(90 + 4 * math.cos(sine / 12)), math.rad(0), math.rad(50 - 2 * math.cos(sine / 12))), 0.3) | |
| 2139 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-6 + 2.5 * math.cos(sine / 12)), math.rad(0), math.rad(0)), 0.2) | |
| 2140 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20 + 2 * math.cos(sine / 12)), math.rad(0), 0), 0.2) | |
| 2141 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7 - 2 * math.cos(sine / 12)), math.rad(7), math.rad(-5)), 0.2) | |
| 2142 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30 - 2 * math.cos(sine / 12)), math.rad(-9), math.rad(5)), 0.2) | |
| 2143 | end | |
| 2144 | end | |
| 2145 | fat.Event:wait() | |
| 2146 | end | |
| 2147 | end | |
| 2148 | lastanimpose = animpose | |
| 2149 | if Debounces.NoIdl == false then | |
| 2150 | if animpose == "Idle" then | |
| 2151 | change = 0.2 | |
| 2152 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(20+10*math.cos(sine/10))), 0.4) | |
| 2153 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-40-20*math.cos(sine/10))), 0.4) | |
| 2154 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
| 2155 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2156 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
| 2157 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(30), math.rad(-10-2*math.cos(sine/10))), 0.4) | |
| 2158 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
| 2159 | else | |
| 2160 | if animpose == "Walking" then | |
| 2161 | change = 0.5 | |
| 2162 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.05 * math.cos(sine / -4), -math.sin(sine / -4) / -4) * CFrame.Angles(math.sin(sine / -4) / -2.8, -math.sin(sine / -4) / -3, math.rad(5 - -7 * math.cos(sine / -2)) + root.RotVelocity.Y / -15), 0.4) | |
| 2163 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7) | |
| 2164 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4) | |
| 2165 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7) | |
| 2166 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 + 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4) | |
| 2167 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7) | |
| 2168 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 10 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4) | |
| 2169 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2170 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.2, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8) | |
| 2171 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2172 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.2, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8) | |
| 2173 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2174 | else | |
| 2175 | if animpose == "Running" then | |
| 2176 | change = 1.1 | |
| 2177 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.54, 0) * CFrame.Angles(math.rad(-34), math.rad(-15), math.rad(26)), 0.2) | |
| 2178 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
| 2179 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(90), math.rad(20 + 70 * math.cos(sine / 4))), 0.2) | |
| 2180 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 2181 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2) | |
| 2182 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5) | |
| 2183 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2) | |
| 2184 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2185 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
| 2186 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2187 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
| 2188 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2189 | else | |
| 2190 | if animpose == "Jumping" then | |
| 2191 | change = 1 | |
| 2192 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2) | |
| 2193 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
| 2194 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2) | |
| 2195 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 2196 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2) | |
| 2197 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2198 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2199 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2200 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
| 2201 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2202 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2203 | else | |
| 2204 | if animpose == "Freefalling" then | |
| 2205 | change = 1 | |
| 2206 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2) | |
| 2207 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
| 2208 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2) | |
| 2209 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 2210 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2) | |
| 2211 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
| 2212 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2213 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 2214 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2215 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
| 2216 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2217 | end | |
| 2218 | end | |
| 2219 | end | |
| 2220 | end | |
| 2221 | end | |
| 2222 | end | |
| 2223 | end | |
| 2224 | ) | |
| 2225 | local tb = {}
| |
| 2226 | ||
| 2227 | local seg = 80 | |
| 2228 | ||
| 2229 | local a = Instance.new("Part", script)
| |
| 2230 | a.CanCollide = false | |
| 2231 | a.Size = Vector3.new() | |
| 2232 | a.Material = "Neon" | |
| 2233 | local w = Instance.new("Weld",a)
| |
| 2234 | w.Part0 = char.HumanoidRootPart | |
| 2235 | w.Part1 = a | |
| 2236 | w.C0 = CFrame.new(0,-1,.5) | |
| 2237 | ||
| 2238 | local p = Instance.new("Part", script)
| |
| 2239 | p.Material = "Neon" | |
| 2240 | p.Anchored = true | |
| 2241 | p.CanCollide = false | |
| 2242 | p.Size = Vector3.new() | |
| 2243 | table.insert(tb,p) | |
| 2244 | ||
| 2245 | for i = 1,seg-1 do | |
| 2246 | local p = p:clone() | |
| 2247 | p.Parent = script | |
| 2248 | table.insert(tb,p) | |
| 2249 | end | |
| 2250 | ||
| 2251 | getRainbowRGB = function (tick) | |
| 2252 | local section, secondary do | |
| 2253 | section = tick % 1 * 3 | |
| 2254 | secondary = .5 * math.pi * (section % 1) | |
| 2255 | if (section < 1) then | |
| 2256 | return Color3.new (1, 1 - math.cos (secondary), 1 - math.sin (secondary)) | |
| 2257 | elseif (section < 2) then | |
| 2258 | return Color3.new (1 - math.sin(secondary), 1, 1 - math.cos(secondary)) | |
| 2259 | else | |
| 2260 | return Color3.new (1 - math.cos(secondary), 1 - math.sin(secondary), 1) | |
| 2261 | end | |
| 2262 | end | |
| 2263 | end | |
| 2264 | ||
| 2265 | t = 0 | |
| 2266 | while true do | |
| 2267 | t = t + game:service"RunService".RenderStepped:wait() | |
| 2268 | for i = 0,#tb-1 do | |
| 2269 | local p1,p2 = tb[i],tb[i+1] | |
| 2270 | if i==0 then p1 = a end | |
| 2271 | local x = p1.Position.x - p2.Position.x | |
| 2272 | local y = p1.Position.y - p2.Position.y | |
| 2273 | local z = p1.Position.z - p2.Position.z | |
| 2274 | local dist = math.sqrt(x^2+y^2+z^2) | |
| 2275 | local diff = (p1.Size.z/(1/3) - dist)/dist | |
| 2276 | x = x*.5*diff | |
| 2277 | y = y*.5*diff | |
| 2278 | z = z*.5*diff | |
| 2279 | p2.Position = p2.Position - Vector3.new(x,y,z) | |
| 2280 | p2.CFrame = CFrame.new((p1.Position+p2.Position)/2,p1.Position) | |
| 2281 | p2.Color = getRainbowRGB(t + i/10) | |
| 2282 | p1.Color = getRainbowRGB(t + i/10) | |
| 2283 | end | |
| 2284 | end |