SHOW:
|
|
- or go back to the newest paste.
| 1 | -- made by .... (Idk...) | |
| 2 | Player=game:GetService("Players").LocalPlayer
| |
| 3 | Character=Player.Character | |
| 4 | PlayerGui=Player.PlayerGui | |
| 5 | Backpack=Player.Backpack | |
| 6 | Torso=Character.Torso | |
| 7 | Head=Character.Head | |
| 8 | Humanoid=Character.Humanoid | |
| 9 | m=Instance.new('Model',Character)
| |
| 10 | LeftArm=Character["Left Arm"] | |
| 11 | LeftLeg=Character["Left Leg"] | |
| 12 | RightArm=Character["Right Arm"] | |
| 13 | RightLeg=Character["Right Leg"] | |
| 14 | LS=Torso["Left Shoulder"] | |
| 15 | LH=Torso["Left Hip"] | |
| 16 | RS=Torso["Right Shoulder"] | |
| 17 | RH=Torso["Right Hip"] | |
| 18 | for i,v in pairs(Character:children()) do | |
| 19 | if v:IsA("Hat") then
| |
| 20 | v:Destroy() | |
| 21 | end | |
| 22 | end | |
| 23 | for i,v in pairs(Character:children()) do | |
| 24 | if v:IsA("Accessory") then
| |
| 25 | v:Destroy() | |
| 26 | end | |
| 27 | end | |
| 28 | Character.Head.face.Texture = "rbxassetid://648887959" | |
| 29 | Character.Shirt.ShirtTemplate = "rbxassetid://1469313219" | |
| 30 | Character.Pants.PantsTemplate = "rbxassetid://1470174529" | |
| 31 | Character["Body Colors"].HeadColor = BrickColor.new("White")
| |
| 32 | Character["Body Colors"].TorsoColor = BrickColor.new("White")
| |
| 33 | Character["Body Colors"].LeftArmColor = BrickColor.new("White")
| |
| 34 | Character["Body Colors"].RightArmColor = BrickColor.new("White")
| |
| 35 | Character["Body Colors"].LeftLegColor = BrickColor.new("White")
| |
| 36 | Character["Body Colors"].RightLegColor = BrickColor.new("White")
| |
| 37 | Face = Instance.new("Decal",Character.Head)
| |
| 38 | Face.Texture = "rbxassetid://865640345" | |
| 39 | Face.Face = "Front" | |
| 40 | Face.Transparency = 0 | |
| 41 | Face.Name = "Blood" | |
| 42 | function chatfunc(text) | |
| 43 | local chat = coroutine.wrap(function() | |
| 44 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 45 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 46 | end | |
| 47 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 48 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 49 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 50 | naeeym2.Adornee = Character.Head | |
| 51 | naeeym2.Name = "TalkingBillBoard" | |
| 52 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 53 | tecks2.BackgroundTransparency = 1 | |
| 54 | tecks2.BorderSizePixel = 0 | |
| 55 | tecks2.Text = "" | |
| 56 | tecks2.Font = "Fantasy" | |
| 57 | tecks2.TextSize = 30 | |
| 58 | tecks2.TextStrokeTransparency = 0 | |
| 59 | tecks2.TextColor3 = Color3.new(0,0,1) | |
| 60 | tecks2.TextStrokeColor3 = Color3.new(0,1,0) | |
| 61 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 62 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 63 | tecks3.BackgroundTransparency = 1 | |
| 64 | tecks3.BorderSizePixel = 0 | |
| 65 | tecks3.Text = "" | |
| 66 | tecks3.Font = "Fantasy" | |
| 67 | tecks3.TextSize = 30 | |
| 68 | tecks3.TextStrokeTransparency = 0 | |
| 69 | tecks3.TextColor3 = Color3.new(122,78,255) | |
| 70 | tecks3.TextStrokeColor3 = Color3.new(122,78,255) | |
| 71 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 72 | for i = 1,string.len(text),1 do | |
| 73 | tecks2.Text = string.sub(text,1,i) | |
| 74 | tecks3.Text = string.sub(text,1,i) | |
| 75 | wait(0.01) | |
| 76 | end | |
| 77 | wait(2) | |
| 78 | for i = 1, 50 do | |
| 79 | wait(0.0000000000000000000001) | |
| 80 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 81 | tecks2.Rotation = tecks2.Rotation - .8 | |
| 82 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 83 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 84 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 85 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 86 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 87 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 88 | end | |
| 89 | naeeym2:Destroy() | |
| 90 | end) | |
| 91 | chat() | |
| 92 | end | |
| 93 | function onChatted(msg) | |
| 94 | chatfunc(msg) | |
| 95 | end | |
| 96 | Face = Head.face | |
| 97 | Neck=Torso.Neck | |
| 98 | it=Instance.new | |
| 99 | attacktype=1 | |
| 100 | vt=Vector3.new | |
| 101 | cf=CFrame.new | |
| 102 | euler=CFrame.fromEulerAnglesXYZ | |
| 103 | angles=CFrame.Angles | |
| 104 | cloaked=false | |
| 105 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 106 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 107 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 108 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 109 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 110 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 111 | RootPart=Character.HumanoidRootPart | |
| 112 | RootJoint=RootPart.RootJoint | |
| 113 | RootCF=euler(-1.57,0,3.14) | |
| 114 | attack = false | |
| 115 | attackdebounce = false | |
| 116 | deb=false | |
| 117 | equipped=true | |
| 118 | hand=false | |
| 119 | MMouse=nil | |
| 120 | combo=0 | |
| 121 | mana=0 | |
| 122 | trispeed=1 | |
| 123 | pathtrans=.7 | |
| 124 | attackmode='none' | |
| 125 | local idle=0 | |
| 126 | local Anim="Idle" | |
| 127 | local Effects={}
| |
| 128 | local gun=false | |
| 129 | local shoot=false | |
| 130 | player=nil | |
| 131 | cloak=false | |
| 132 | lightcolor='Bright blue' | |
| 133 | ||
| 134 | local Color1=Torso.BrickColor | |
| 135 | ||
| 136 | warn'Edit By BonnieKunG1s' | |
| 137 | local p = game.Players.LocalPlayer | |
| 138 | local char = p.Character | |
| 139 | local hed = char.Head | |
| 140 | local hes = game.Players.LocalPlayer.Character.Humanoid | |
| 141 | for i,v in pairs(char:children()) do | |
| 142 | if v:IsA("Hat") then
| |
| 143 | v:Destroy() | |
| 144 | end | |
| 145 | end | |
| 146 | for i,v in pairs(hed:children()) do | |
| 147 | if v:IsA("Sound") then
| |
| 148 | v:Destroy() | |
| 149 | end | |
| 150 | end | |
| 151 | local Part2 = Instance.new("Weld",Part)
| |
| 152 | Part2.Part0 = hed | |
| 153 | Part2.Part1 = Part | |
| 154 | Part2.C0 = CFrame.new(0, 1, -0.5) | |
| 155 | hes.MaxHealth = math.huge | |
| 156 | plr = game.Players.LocalPlayer | |
| 157 | chr = plr.Character | |
| 158 | chr.Head.face.Texture = "rbxassetid://648887959" | |
| 159 | local plr = game:service'Players'.LocalPlayer | |
| 160 | local char = plr.Character | |
| 161 | for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v:Remove() end end
| |
| 162 | for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v:Remove() end end
| |
| 163 | local Part = Instance.new("Part",chr)
| |
| 164 | Part.BrickColor = BrickColor.new("Royal blue")
| |
| 165 | Part.Size = Vector3.new(1,1,1) | |
| 166 | Part.CanCollide = false | |
| 167 | Part.Material = "Neon" | |
| 168 | local M = Instance.new("SpecialMesh",Part)
| |
| 169 | M.MeshId = "rbxassetid://0" | |
| 170 | M.Scale = Vector3.new(1.2,1.2,1.2) | |
| 171 | M.TextureId = "rbxassetid://0" | |
| 172 | local Part2 = Instance.new("Weld",Part)
| |
| 173 | Part2.Part0 = chr.Head | |
| 174 | Part2.Part1 = Part | |
| 175 | Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0) | |
| 176 | local Part1 = Instance.new("Part",chr)
| |
| 177 | Part1.BrickColor = BrickColor.new("White")
| |
| 178 | Part1.Size = Vector3.new(1,1,1) | |
| 179 | Part1.CanCollide = false | |
| 180 | Part1.Material = "Neon" | |
| 181 | local M1 = Instance.new("SpecialMesh",Part1)
| |
| 182 | M1.MeshId = "rbxassetid://430440803" | |
| 183 | M1.Scale = Vector3.new(0.0067,0.0067,0.0067) | |
| 184 | local Part21 = Instance.new("Weld",Part1)
| |
| 185 | Part21.Part0 = chr.Head | |
| 186 | Part21.Part1 = Part1 | |
| 187 | Part21.C0 = CFrame.new(0,-1.2,0)*CFrame.Angles(0,1.55,0) | |
| 188 | local Part = Instance.new("Part",Character)
| |
| 189 | Part.BrickColor = BrickColor.new("Mint")
| |
| 190 | Part.Size = Vector3.new(1,1,1) | |
| 191 | Part.CanCollide = false | |
| 192 | Part.Material = "Neon" | |
| 193 | local M = Instance.new("SpecialMesh",Part)
| |
| 194 | M.MeshId = "rbxassetid://0" | |
| 195 | M.TextureId = "rbxassetid://0" | |
| 196 | M.Scale = Vector3.new(1,1,1.1) | |
| 197 | local Part2 = Instance.new("Weld",Part)
| |
| 198 | Part2.Part0 = Character.Head | |
| 199 | Part2.Part1 = Part | |
| 200 | Part2.C0 = CFrame.new(0,-0.5,0.9)*CFrame.Angles(math.rad(0),math.pi/90,0) | |
| 201 | Effects = { }
| |
| 202 | wait(1/60) | |
| 203 | wait(3)local | |
| 204 | Trail; --Making other Trails uses this in this Script | |
| 205 | ||
| 206 | --UpperBody Function | |
| 207 | UpperBody = function() | |
| 208 | if TrailSettings.R15 == false then | |
| 209 | A0 = Instance.new('Attachment',Character.Torso)
| |
| 210 | A1 = Instance.new('Attachment',Character.Head)
| |
| 211 | A2 = Instance.new('Attachment',Character['Right Arm'])
| |
| 212 | A3 = Instance.new('Attachment',Character['Left Arm'])
| |
| 213 | Trail = Instance.new('Trail',Character)
| |
| 214 | Trail.Attachment0 = A0 | |
| 215 | Trail.Attachment1 = A1 | |
| 216 | Trail.Texture = TrailSettings.Texture | |
| 217 | Trail.Color = TrailSettings.Color1 | |
| 218 | Trail.Lifetime = TrailSettings.Lifetime | |
| 219 | local Trail2 = Trail:Clone() | |
| 220 | Trail2.Parent = Character | |
| 221 | Trail2.Attachment1 = A2 | |
| 222 | local Trail3 = Trail:Clone() | |
| 223 | Trail3.Parent = Character | |
| 224 | Trail3.Attachment1 = A3 | |
| 225 | local Trail6 = Trail:Clone() | |
| 226 | Trail6.Parent = Character | |
| 227 | Trail6.Attachment0 = A1 | |
| 228 | Trail6.Attachment1 = A2 | |
| 229 | local Trail7 = Trail:Clone() | |
| 230 | Trail7.Parent = Character | |
| 231 | Trail7.Attachment0 = A1 | |
| 232 | Trail7.Attachment1 = A3 | |
| 233 | else | |
| 234 | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
| |
| 235 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
| |
| 236 | A1 = Instance.new('Attachment',Character.Head)
| |
| 237 | A2 = Instance.new('Attachment',Character['RightUpperArm'])
| |
| 238 | A2R = Instance.new('Attachment',Character['RightLowerArm'])
| |
| 239 | A3 = Instance.new('Attachment',Character['LeftUpperArm'])
| |
| 240 | A3R = Instance.new('Attachment',Character['LeftLowerArm'])
| |
| 241 | Trail = Instance.new('Trail',Character)
| |
| 242 | Trail.Attachment0 = A0 | |
| 243 | Trail.Attachment1 = A1 | |
| 244 | Trail.Texture = TrailSettings.Texture | |
| 245 | Trail.Color = TrailSettings.Color1 | |
| 246 | Trail.Lifetime = TrailSettings.Lifetime | |
| 247 | local Trail2 = Trail:Clone() | |
| 248 | Trail2.Parent = Character | |
| 249 | Trail2.Attachment1 = A2 | |
| 250 | local Trail3 = Trail:Clone() | |
| 251 | Trail3.Parent = Character | |
| 252 | Trail3.Attachment1 = A3 | |
| 253 | local Trail6 = Trail:Clone() | |
| 254 | Trail6.Parent = Character | |
| 255 | Trail6.Attachment0 = A1 | |
| 256 | Trail6.Attachment1 = A2 | |
| 257 | local Trail7 = Trail:Clone() | |
| 258 | Trail7.Parent = Character | |
| 259 | Trail7.Attachment0 = A1 | |
| 260 | Trail7.Attachment1 = A3 | |
| 261 | --R15 Trails | |
| 262 | local Trail1R = Trail:Clone() | |
| 263 | Trail1R.Parent = Character | |
| 264 | Trail1R.Attachment1 = A2R | |
| 265 | local Trail2R = Trail:Clone() | |
| 266 | Trail2R.Parent = Character | |
| 267 | Trail2R.Attachment1 = A3R | |
| 268 | local Trail6R = Trail:Clone() | |
| 269 | Trail6.Parent = Character | |
| 270 | Trail6.Attachment0 = A1 | |
| 271 | Trail6.Attachment1 = A2R | |
| 272 | local Trail7R = Trail:Clone() | |
| 273 | Trail7.Parent = Character | |
| 274 | Trail7.Attachment0 = A1 | |
| 275 | Trail7.Attachment1 = A3R | |
| 276 | end | |
| 277 | end | |
| 278 | local sky = game.Lighting | |
| 279 | game.Lighting.TimeOfDay = "00:00:00" | |
| 280 | sky.Ambient = BrickColor.new("Really black").Color
| |
| 281 | sky.Brightness = 0 | |
| 282 | sky.FogEnd = 50000 | |
| 283 | sky.FogColor = BrickColor.new("Really black").Color
| |
| 284 | CV="Really black" | |
| 285 | ||
| 286 | mouse=Player:GetMouse() | |
| 287 | --save shoulders | |
| 288 | RSH, LSH=nil, nil | |
| 289 | --welds | |
| 290 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 291 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 292 | LH=Torso["Left Hip"] | |
| 293 | RH=Torso["Right Hip"] | |
| 294 | TorsoColor=Torso.BrickColor | |
| 295 | function NoOutline(Part) | |
| 296 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 297 | end | |
| 298 | ||
| 299 | ||
| 300 | ||
| 301 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 302 | local fp=it("Part")
| |
| 303 | fp.formFactor=formfactor | |
| 304 | fp.Parent=parent | |
| 305 | fp.Reflectance=reflectance | |
| 306 | fp.Transparency=transparency | |
| 307 | fp.CanCollide=false | |
| 308 | fp.Locked=true | |
| 309 | fp.BrickColor=brickcolor | |
| 310 | fp.Name=name | |
| 311 | fp.Size=size | |
| 312 | fp.Position=Torso.Position | |
| 313 | NoOutline(fp) | |
| 314 | fp.Material="SmoothPlastic" | |
| 315 | fp:BreakJoints() | |
| 316 | return fp | |
| 317 | end | |
| 318 | ||
| 319 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 320 | local mesh=it(Mesh) | |
| 321 | mesh.Parent=part | |
| 322 | if Mesh=="SpecialMesh" then | |
| 323 | mesh.MeshType=meshtype | |
| 324 | if meshid~="nil" then | |
| 325 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 326 | end | |
| 327 | end | |
| 328 | mesh.Offset=offset | |
| 329 | mesh.Scale=scale | |
| 330 | return mesh | |
| 331 | end | |
| 332 | ||
| 333 | function weld(parent,part0,part1,c0) | |
| 334 | local weld=it("Weld")
| |
| 335 | weld.Parent=parent | |
| 336 | weld.Part0=part0 | |
| 337 | weld.Part1=part1 | |
| 338 | weld.C0=c0 | |
| 339 | return weld | |
| 340 | end | |
| 341 | ||
| 342 | local Color1=Torso.BrickColor | |
| 343 | ||
| 344 | ||
| 345 | ||
| 346 | ||
| 347 | ||
| 348 | Player=game:GetService('Players').LocalPlayer
| |
| 349 | Character=Player.Character | |
| 350 | Mouse=Player:GetMouse() | |
| 351 | m=Instance.new('Model',Character)
| |
| 352 | ||
| 353 | ||
| 354 | local function weldBetween(a, b) | |
| 355 | local weldd = Instance.new("ManualWeld")
| |
| 356 | weldd.Part0 = a | |
| 357 | weldd.Part1 = b | |
| 358 | weldd.C0 = CFrame.new() | |
| 359 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 360 | weldd.Parent = a | |
| 361 | return weldd | |
| 362 | end | |
| 363 | ||
| 364 | it=Instance.new | |
| 365 | ||
| 366 | function nooutline(part) | |
| 367 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 368 | end | |
| 369 | ||
| 370 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 371 | local fp=it("Part")
| |
| 372 | fp.formFactor=formfactor | |
| 373 | fp.Parent=parent | |
| 374 | fp.Reflectance=reflectance | |
| 375 | fp.Transparency=transparency | |
| 376 | fp.CanCollide=false | |
| 377 | fp.Locked=true | |
| 378 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 379 | fp.Name=name | |
| 380 | fp.Size=size | |
| 381 | fp.Position=Character.Torso.Position | |
| 382 | nooutline(fp) | |
| 383 | fp.Material=material | |
| 384 | fp:BreakJoints() | |
| 385 | return fp | |
| 386 | end | |
| 387 | ||
| 388 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 389 | local mesh=it(Mesh) | |
| 390 | mesh.Parent=part | |
| 391 | if Mesh=="SpecialMesh" then | |
| 392 | mesh.MeshType=meshtype | |
| 393 | mesh.MeshId=meshid | |
| 394 | end | |
| 395 | mesh.Offset=offset | |
| 396 | mesh.Scale=scale | |
| 397 | return mesh | |
| 398 | end | |
| 399 | ||
| 400 | function weld(parent,part0,part1,c0,c1) | |
| 401 | local weld=it("Weld")
| |
| 402 | weld.Parent=parent | |
| 403 | weld.Part0=part0 | |
| 404 | weld.Part1=part1 | |
| 405 | weld.C0=c0 | |
| 406 | weld.C1=c1 | |
| 407 | return weld | |
| 408 | end | |
| 409 | ||
| 410 | ||
| 411 | ||
| 412 | ||
| 413 | ||
| 414 | ||
| 415 | ||
| 416 | ||
| 417 | ||
| 418 | -------------------------------- | |
| 419 | local p = game.Players.LocalPlayer | |
| 420 | local char = p.Character | |
| 421 | local mouse = p:GetMouse() | |
| 422 | local larm = char["Left Arm"] | |
| 423 | local rarm = char["Right Arm"] | |
| 424 | local lleg = char["Left Leg"] | |
| 425 | local rleg = char["Right Leg"] | |
| 426 | local hed = char.Head | |
| 427 | local torso = char.Torso | |
| 428 | local hum = char.Humanoid | |
| 429 | local cam = game.Workspace.CurrentCamera | |
| 430 | local root = char.HumanoidRootPart | |
| 431 | local deb = false | |
| 432 | local shot = 0 | |
| 433 | local debris=game:service"Debris" | |
| 434 | local l = game:GetService("Lighting")
| |
| 435 | local rs = game:GetService("RunService").RenderStepped
| |
| 436 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 437 | math.randomseed(os.time()) | |
| 438 | for i,v in pairs(char:children()) do | |
| 439 | if v:IsA("Hat") then
| |
| 440 | v:Destroy() | |
| 441 | end | |
| 442 | end | |
| 443 | for i,v in pairs (hed:GetChildren()) do | |
| 444 | if v:IsA("Sound") then
| |
| 445 | v:Destroy() | |
| 446 | end | |
| 447 | end | |
| 448 | ---------------------------------------------------- | |
| 449 | z = Instance.new("Sound", torso)
| |
| 450 | z.SoundId = "rbxassetid://184215667" -- Put Music ID Here. | |
| 451 | z.Looped = true | |
| 452 | z.Volume = 10 | |
| 453 | wait(.1) | |
| 454 | z:Play() | |
| 455 | ----------------------------------------------------- | |
| 456 | Debounces = {
| |
| 457 | CanAttack = true; | |
| 458 | NoIdl = false; | |
| 459 | Slashing = false; | |
| 460 | Slashed = false; | |
| 461 | RPunch = false; | |
| 462 | RPunched = false; | |
| 463 | LPunch = false; | |
| 464 | LPunched = false; | |
| 465 | } | |
| 466 | local Touche = {char.Name, }
| |
| 467 | ---------------------------------------------------- | |
| 468 | ---------------------------------------------------- | |
| 469 | ---------------------------------------------------- | |
| 470 | local LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 471 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
| 472 | ||
| 473 | ------------------------------------------------------ | |
| 474 | local sw = Instance.new("Part",torso)
| |
| 475 | sw.CanCollide = false | |
| 476 | sw.BrickColor = BrickColor.new("Institutional white")
| |
| 477 | ||
| 478 | local m = Instance.new("SpecialMesh",sw)
| |
| 479 | m.MeshId = "rbxassetid://0" | |
| 480 | m.TextureId = "rbxassetid://0" | |
| 481 | m.Scale = Vector3.new(2.1,2.1,2.1) | |
| 482 | local w1 = Instance.new("Weld")
| |
| 483 | ||
| 484 | w1.Part1 = sw | |
| 485 | w1.Part0 = larm | |
| 486 | w1.Parent = char | |
| 487 | w1.C0 = CFrame.new(0,-0.7,-2.3) * CFrame.Angles(math.rad(180),0,-20),0.1 | |
| 488 | -------------------------------------------------------- | |
| 489 | local h = Instance.new("Trail",Character.Head)
| |
| 490 | h.Name = "Cat" | |
| 491 | h.Color = ColorSequence.new(Color3.new(255,0,0),Color3.new(255,0,0)) | |
| 492 | h.LightEmission = 0.6 | |
| 493 | h.Transparency = NumberSequence.new(0.6,1) | |
| 494 | h.Lifetime = 0.5 | |
| 495 | -------------------------------------------------------- | |
| 496 | local hl = Instance.new("Trail",Character.Head)
| |
| 497 | hl.Name = "Cat" | |
| 498 | hl.Color = ColorSequence.new(Color3.new(255,0,0),Color3.new(255,0,0)) | |
| 499 | hl.LightEmission = 0.6 | |
| 500 | hl.Transparency = NumberSequence.new(0.6,1) | |
| 501 | hl.Lifetime = 0.5 | |
| 502 | -------------------------------------------------------- | |
| 503 | local Link1 = Instance.new("Attachment",Character.Head)
| |
| 504 | Link1.Name = "Trail1" | |
| 505 | ---------------------------------------------------------------------- | |
| 506 | local Link2 = Instance.new("Attachment",Character.Head)
| |
| 507 | Link2.Name = "Trail2" | |
| 508 | ---------------------------------------------------------------------- | |
| 509 | local Link3 = Instance.new("Attachment",Character.Head)
| |
| 510 | Link3.Name = "Trail3" | |
| 511 | ---------------------------------------------------------------------- | |
| 512 | local Link4 = Instance.new("Attachment",Character.Head)
| |
| 513 | Link4.Name = "Trail4" | |
| 514 | ----------------------------------------------------- | |
| 515 | h.Attachment0 = Link1 | |
| 516 | h.Attachment1 = Link2 | |
| 517 | hl.Attachment0 = Link3 | |
| 518 | hl.Attachment1 = Link4 | |
| 519 | ---------------------------------------------------------------------- | |
| 520 | Link1.Position = Vector3.new(0.15,0.20,-0.8) | |
| 521 | Link2.Position = Vector3.new(0.20,0.25,-0.8) | |
| 522 | Link3.Position = Vector3.new(-0.15,0.20,-0.8) | |
| 523 | Link4.Position = Vector3.new(-0.20,0.25,-0.8) | |
| 524 | ---------------------------------------------------------------------- | |
| 525 | local LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 526 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
| 527 | ||
| 528 | ---------------------------------------- | |
| 529 | local p = game.Players.LocalPlayer | |
| 530 | local char = p.Character | |
| 531 | local mouse = p:GetMouse() | |
| 532 | local larm = char["Left Arm"] | |
| 533 | local rarm = char["Right Arm"] | |
| 534 | local lleg = char["Left Leg"] | |
| 535 | local rleg = char["Right Leg"] | |
| 536 | local hed = char.Head | |
| 537 | local torso = char.Torso | |
| 538 | local hum = char.Humanoid | |
| 539 | local cam = game.Workspace.CurrentCamera | |
| 540 | local root = char.HumanoidRootPart | |
| 541 | local rj = root.RootJoint | |
| 542 | local deb = false | |
| 543 | local shot = 0 | |
| 544 | local stanceToggle = "Idle1" | |
| 545 | local l = game:GetService("Lighting")
| |
| 546 | local rs = game:GetService("RunService").RenderStepped
| |
| 547 | local hb = game:GetService("RunService").Heartbeat
| |
| 548 | local Stepped = game:GetService("RunService").Stepped
| |
| 549 | math.randomseed(os.time()) | |
| 550 | ---------------------------------------------------- | |
| 551 | fat = Instance.new("BindableEvent",script)
| |
| 552 | fat.Name = "Heartbeat" | |
| 553 | ||
| 554 | script:WaitForChild("Heartbeat")
| |
| 555 | ||
| 556 | frame = 1/30 | |
| 557 | tf = 0 | |
| 558 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
| 559 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
| 560 | lastframe = tick() | |
| 561 | script.Heartbeat:Fire() --ayy lmao | |
| 562 | ||
| 563 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
| |
| 564 | tf = tf + s | |
| 565 | if tf >= frame then | |
| 566 | if allowframeloss then | |
| 567 | script.Heartbeat:Fire() | |
| 568 | lastframe=tick() | |
| 569 | else | |
| 570 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
| |
| 571 | for i=1, math.floor(tf/frame) do | |
| 572 | script.Heartbeat:Fire() | |
| 573 | end | |
| 574 | lastframe=tick() | |
| 575 | end | |
| 576 | if tossremainder then | |
| 577 | tf = 0 | |
| 578 | else | |
| 579 | tf = tf - frame * math.floor(tf/frame) | |
| 580 | end | |
| 581 | end | |
| 582 | end) | |
| 583 | ---------------------------------------------------- | |
| 584 | for i,v in pairs(char:children()) do | |
| 585 | if v:IsA("Hat") then
| |
| 586 | v:Destroy() | |
| 587 | end | |
| 588 | end | |
| 589 | for i,v in pairs (hed:GetChildren()) do | |
| 590 | if v:IsA("Sound") then
| |
| 591 | v:Destroy() | |
| 592 | end | |
| 593 | end | |
| 594 | ---------------------------------------------------- | |
| 595 | Debounces = {
| |
| 596 | CanAttack = true; | |
| 597 | CanJoke = true; | |
| 598 | NoIdl = false; | |
| 599 | Slashing = false; | |
| 600 | Slashed = false; | |
| 601 | ks = false; | |
| 602 | } | |
| 603 | ---------------------------------------------------- | |
| 604 | function weld5(part0, part1, c0, c1) | |
| 605 | weeld=Instance.new("Weld", part0)
| |
| 606 | weeld.Part0=part0 | |
| 607 | weeld.Part1=part1 | |
| 608 | weeld.C0=c0 | |
| 609 | weeld.C1=c1 | |
| 610 | return weeld | |
| 611 | end | |
| 612 | ---------------------------------------------------- | |
| 613 | function NewPart(prnt,siz,cf,trans,anc,mat,col) | |
| 614 | local prt=Instance.new("Part")
| |
| 615 | prt.Parent=prnt | |
| 616 | prt.Name="Part" | |
| 617 | prt.Size=siz | |
| 618 | prt.CanCollide=false | |
| 619 | prt.Anchored=anc | |
| 620 | prt.Locked=true | |
| 621 | prt.Transparency = trans | |
| 622 | prt.TopSurface=10 | |
| 623 | prt.BottomSurface=10 | |
| 624 | prt.FrontSurface=10 | |
| 625 | prt.BackSurface=10 | |
| 626 | prt.LeftSurface=10 | |
| 627 | prt.RightSurface=10 | |
| 628 | prt:BreakJoints() | |
| 629 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 630 | prt.Material=mat | |
| 631 | prt.BrickColor=BrickColor.new(col) | |
| 632 | m=Instance.new("SpecialMesh",prt)
| |
| 633 | m.MeshType=6 | |
| 634 | return prt | |
| 635 | end | |
| 636 | ---------------------------------------------------- | |
| 637 | function lerp(a, b, t) -- Linear interpolation | |
| 638 | return a + (b - a)*t | |
| 639 | end | |
| 640 | ||
| 641 | function slerp(a, b, t) --Spherical interpolation | |
| 642 | dot = a:Dot(b) | |
| 643 | if dot > 0.99999 or dot < -0.99999 then | |
| 644 | return t <= 0.5 and a or b | |
| 645 | else | |
| 646 | r = math.acos(dot) | |
| 647 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 648 | end | |
| 649 | end | |
| 650 | ||
| 651 | function matrixInterpolate(a, b, t) | |
| 652 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 653 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 654 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 655 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 656 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 657 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 658 | local t = v1:Dot(v2) | |
| 659 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 660 | return CFrame.new() | |
| 661 | end | |
| 662 | return CFrame.new( | |
| 663 | v0.x, v0.y, v0.z, | |
| 664 | v1.x, v1.y, v1.z, | |
| 665 | v2.x, v2.y, v2.z, | |
| 666 | v3.x, v3.y, v3.z) | |
| 667 | end | |
| 668 | ---------------------------------------------------- | |
| 669 | function genWeld(a,b) | |
| 670 | local w = Instance.new("Weld",a)
| |
| 671 | w.Part0 = a | |
| 672 | w.Part1 = b | |
| 673 | return w | |
| 674 | end | |
| 675 | function weld(a, b) | |
| 676 | local weld = Instance.new("Weld")
| |
| 677 | weld.Name = "W" | |
| 678 | weld.Part0 = a | |
| 679 | weld.Part1 = b | |
| 680 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 681 | weld.Parent = a | |
| 682 | return weld; | |
| 683 | end | |
| 684 | ---------------------------------------------------- | |
| 685 | function Lerp(c1,c2,al) | |
| 686 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 687 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 688 | for i,v in pairs(com1) do | |
| 689 | com1[i] = v+(com2[i]-v)*al | |
| 690 | end | |
| 691 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 692 | end | |
| 693 | ---------------------------------------------------- | |
| 694 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 695 | local wld = Instance.new("Weld", wp1)
| |
| 696 | wld.Part0 = wp0 | |
| 697 | wld.Part1 = wp1 | |
| 698 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 699 | end | |
| 700 | ---------------------------------------------------- | |
| 701 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 702 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 703 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 704 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 705 | newWeld(torso, hed, 0, 1.5, 0) | |
| 706 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 707 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 708 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 709 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 710 | newWeld(root, torso, 0, -1, 0) | |
| 711 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 712 | ---------------------------------------------------- | |
| 713 | z = Instance.new("Sound",char) --Smile: print(".-.")
| |
| 714 | z.SoundId = "rbxassetid://0"--410761150, 411368002 | |
| 715 | z.Looped = true | |
| 716 | z.Pitch = 1 | |
| 717 | z.Volume = 1 | |
| 718 | wait(0.1) | |
| 719 | z:Play() | |
| 720 | ---------------------------------------------------- | |
| 721 | New = function(Object, Parent, Name, Data) | |
| 722 | local Object = Instance.new(Object) | |
| 723 | for Index, Value in pairs(Data or {}) do
| |
| 724 | Object[Index] = Value | |
| 725 | end | |
| 726 | Object.Parent = Parent | |
| 727 | Object.Name = Name | |
| 728 | return Object | |
| 729 | end | |
| 730 | ---------------------------------------------------- | |
| 731 | --Left Arm | |
| 732 | m = Instance.new("Model")
| |
| 733 | m.Name = "LeftArm" | |
| 734 | ||
| 735 | p4 = Instance.new("Part", m)
| |
| 736 | p4.BrickColor = BrickColor.new("Really black")
| |
| 737 | p4.Material = Enum.Material.SmoothPlastic | |
| 738 | p4.Name = "LeftArmPlate" | |
| 739 | p4.Size = Vector3.new(1, 2, 1) | |
| 740 | p4.Transparency = 1 | |
| 741 | p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 742 | p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 743 | p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 744 | p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 745 | p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 746 | p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 747 | b4 = Instance.new("SpecialMesh", p4)
| |
| 748 | b4.MeshType = Enum.MeshType.Brick | |
| 749 | b4.Name = "Mesh" | |
| 750 | b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
| 751 | ||
| 752 | ||
| 753 | ||
| 754 | ||
| 755 | ||
| 756 | w1 = Instance.new("Weld", p4)
| |
| 757 | w1.Name = "Part_Weld" | |
| 758 | w1.Part0 = p4 | |
| 759 | w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 760 | w1.Part1 = p4 | |
| 761 | w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 762 | w2 = Instance.new("Weld", p4)
| |
| 763 | w2.Name = "Part_Weld" | |
| 764 | w2.Part0 = p4 | |
| 765 | w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 766 | w2.Part1 = p4 | |
| 767 | w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 768 | w3 = Instance.new("Weld", p4)
| |
| 769 | w3.Name = "LeftArmPlate_Weld" | |
| 770 | w3.Part0 = p4 | |
| 771 | w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 772 | w3.Part1 = p4 | |
| 773 | w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 774 | w4 = Instance.new("Weld", p4)
| |
| 775 | w4.Name = "Part_Weld" | |
| 776 | w4.Part0 = p4 | |
| 777 | w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 778 | w4.Part1 = p4 | |
| 779 | w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 780 | w5 = Instance.new("Weld", p4)
| |
| 781 | w5.Name = "Part_Weld" | |
| 782 | w5.Part0 = p4 | |
| 783 | w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 784 | w5.Part1 = p4 | |
| 785 | w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 786 | w6 = Instance.new("Weld", p4)
| |
| 787 | w6.Name = "Part_Weld" | |
| 788 | w6.Part0 = p4 | |
| 789 | w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 790 | w6.Part1 = p7 | |
| 791 | w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 792 | w7 = Instance.new("Weld", p7)
| |
| 793 | w7.Name = "Part_Weld" | |
| 794 | w7.Part0 = p7 | |
| 795 | w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 796 | w7.Part1 = p4 | |
| 797 | w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 798 | w8 = Instance.new("Weld", p4)
| |
| 799 | w8.Name = "Part_Weld" | |
| 800 | w8.Part0 = p4 | |
| 801 | w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 802 | w8.Part1 = p4 | |
| 803 | w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 804 | w9 = Instance.new("Weld", p4)
| |
| 805 | w9.Name = "Part_Weld" | |
| 806 | w9.Part0 = p4 | |
| 807 | w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 808 | w9.Part1 = p4 | |
| 809 | w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 810 | w10 = Instance.new("Weld", p4)
| |
| 811 | w10.Name = "Part_Weld" | |
| 812 | w10.Part0 = p4 | |
| 813 | w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 814 | w10.Part1 = p4 | |
| 815 | w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 816 | w11 = Instance.new("Weld", p4)
| |
| 817 | w11.Name = "Part_Weld" | |
| 818 | w11.Part0 = p4 | |
| 819 | w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 820 | w11.Part1 = p4 | |
| 821 | w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 822 | w12 = Instance.new("Weld", p4)
| |
| 823 | w12.Name = "Part_Weld" | |
| 824 | w12.Part0 = p4 | |
| 825 | w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 826 | w12.Part1 = p4 | |
| 827 | w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 828 | w13 = Instance.new("Weld", p4)
| |
| 829 | w13.Name = "Part_Weld" | |
| 830 | w13.Part0 = p4 | |
| 831 | w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 832 | w13.Part1 = p4 | |
| 833 | w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 834 | w14 = Instance.new("Weld", p4)
| |
| 835 | w14.Name = "Part_Weld" | |
| 836 | w14.Part0 = p4 | |
| 837 | w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 838 | w14.Part1 = p4 | |
| 839 | w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 840 | w15 = Instance.new("Weld", p4)
| |
| 841 | w15.Name = "Part_Weld" | |
| 842 | w15.Part0 = p4 | |
| 843 | w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 844 | w15.Part1 = p16 | |
| 845 | w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5) | |
| 846 | ||
| 847 | m.Parent = larm | |
| 848 | m:MakeJoints() | |
| 849 | ---------------------------------------------------- | |
| 850 | local cor = Instance.new("Part", larm.LeftArm)
| |
| 851 | cor.Name = "Thingy" | |
| 852 | cor.Locked = true | |
| 853 | cor.BottomSurface = 0 | |
| 854 | cor.CanCollide = false | |
| 855 | cor.Size = Vector3.new(1, 1, 1) | |
| 856 | cor.Transparency = 1 | |
| 857 | cor.TopSurface = 0 | |
| 858 | corw = Instance.new("Weld", cor)
| |
| 859 | corw.Part0 = larm | |
| 860 | corw.Part1 = cor | |
| 861 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 862 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 863 | weld1 = Instance.new("Weld", larm.LeftArm)
| |
| 864 | weld1.Part0 = cor | |
| 865 | weld1.Part1 = larm.LeftArm.LeftArmPlate | |
| 866 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 867 | --Right Arm | |
| 868 | m2 = Instance.new("Model")
| |
| 869 | m2.Name = "RightArm" | |
| 870 | ||
| 871 | p7 = Instance.new("Part", m2)
| |
| 872 | p7.BrickColor = BrickColor.new("Institutional white")
| |
| 873 | p7.Material = Enum.Material.SmoothPlastic | |
| 874 | p7.Transparency = 1 | |
| 875 | p7.Name = "RightArmPlate" | |
| 876 | p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 877 | p7.FormFactor = Enum.FormFactor.Symmetric | |
| 878 | p7.Size = Vector3.new(1, 2, 1) | |
| 879 | p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 880 | p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 881 | p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 882 | p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 883 | p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 884 | p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 885 | b7 = Instance.new("SpecialMesh", p7)
| |
| 886 | b7.MeshType = Enum.MeshType.Brick | |
| 887 | b7.Name = "Mesh" | |
| 888 | b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
| 889 | ||
| 890 | ||
| 891 | w1 = Instance.new("Weld", p4)
| |
| 892 | w1.Name = "Part_Weld" | |
| 893 | w1.Part0 = p4 | |
| 894 | w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 895 | w1.Part1 = p4 | |
| 896 | w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 897 | w2 = Instance.new("Weld", p4)
| |
| 898 | w2.Name = "Part_Weld" | |
| 899 | w2.Part0 = p4 | |
| 900 | w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 901 | w2.Part1 = p4 | |
| 902 | w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 903 | w3 = Instance.new("Weld", p4)
| |
| 904 | w3.Name = "Part_Weld" | |
| 905 | w3.Part0 = p4 | |
| 906 | w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 907 | w3.Part1 = p4 | |
| 908 | w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 909 | w4 = Instance.new("Weld", p4)
| |
| 910 | w4.Name = "Part_Weld" | |
| 911 | w4.Part0 = p4 | |
| 912 | w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 913 | w4.Part1 = p4 | |
| 914 | w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 915 | w5 = Instance.new("Weld", p4)
| |
| 916 | w5.Name = "Part_Weld" | |
| 917 | w5.Part0 = p4 | |
| 918 | w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 919 | w5.Part1 = p4 | |
| 920 | w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 921 | w6 = Instance.new("Weld", p4)
| |
| 922 | w6.Name = "RightArmPlate_Weld" | |
| 923 | w6.Part0 = p4 | |
| 924 | w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 925 | w6.Part1 = p7 | |
| 926 | w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 927 | w7 = Instance.new("Weld", p7)
| |
| 928 | w7.Name = "Part_Weld" | |
| 929 | w7.Part0 = p7 | |
| 930 | w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 931 | w7.Part1 = p4 | |
| 932 | w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 933 | w8 = Instance.new("Weld", p4)
| |
| 934 | w8.Name = "Part_Weld" | |
| 935 | w8.Part0 = p4 | |
| 936 | w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 937 | w8.Part1 = p4 | |
| 938 | w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 939 | w9 = Instance.new("Weld", p4)
| |
| 940 | w9.Name = "Part_Weld" | |
| 941 | w9.Part0 = p4 | |
| 942 | w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 943 | w9.Part1 = p4 | |
| 944 | w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 945 | w10 = Instance.new("Weld", p4)
| |
| 946 | w10.Name = "Part_Weld" | |
| 947 | w10.Part0 = p4 | |
| 948 | w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 949 | w10.Part1 = p4 | |
| 950 | w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 951 | w11 = Instance.new("Weld", p4)
| |
| 952 | w11.Name = "Part_Weld" | |
| 953 | w11.Part0 = p4 | |
| 954 | w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 955 | w11.Part1 = p4 | |
| 956 | w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 957 | w12 = Instance.new("Weld", p4)
| |
| 958 | w12.Name = "Part_Weld" | |
| 959 | w12.Part0 = p4 | |
| 960 | w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 961 | w12.Part1 = p4 | |
| 962 | w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 963 | w13 = Instance.new("Weld", p4)
| |
| 964 | w13.Name = "Part_Weld" | |
| 965 | w13.Part0 = p4 | |
| 966 | w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 967 | w13.Part1 = p4 | |
| 968 | w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 969 | w14 = Instance.new("Weld", p4)
| |
| 970 | w14.Name = "Part_Weld" | |
| 971 | w14.Part0 = p4 | |
| 972 | w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 973 | w14.Part1 = p4 | |
| 974 | w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 975 | w15 = Instance.new("Weld", p4)
| |
| 976 | w15.Name = "Part_Weld" | |
| 977 | w15.Part0 = p4 | |
| 978 | w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 979 | w15.Part1 = p16 | |
| 980 | w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 981 | w16 = Instance.new("Weld", p16)
| |
| 982 | w16.Name = "Part_Weld" | |
| 983 | w16.Part0 = p16 | |
| 984 | w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 985 | w16.Part1 = p4 | |
| 986 | w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 987 | w17 = Instance.new("Weld", p4)
| |
| 988 | w17.Name = "Part_Weld" | |
| 989 | w17.Part0 = p4 | |
| 990 | w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 991 | w17.Part1 = p4 | |
| 992 | w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 993 | w18 = Instance.new("Weld", p4)
| |
| 994 | w18.Name = "Part_Weld" | |
| 995 | w18.Part0 = p4 | |
| 996 | w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 997 | w18.Part1 = p4 | |
| 998 | w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 999 | m2.Parent = rarm | |
| 1000 | m2:MakeJoints() | |
| 1001 | ---------------------------------------------------- | |
| 1002 | local cor2 = Instance.new("Part", rarm.RightArm)
| |
| 1003 | cor2.Name = "Thingy" | |
| 1004 | cor2.Locked = true | |
| 1005 | cor2.BottomSurface = 0 | |
| 1006 | cor2.CanCollide = false | |
| 1007 | cor2.Size = Vector3.new(1, 1, 1) | |
| 1008 | cor2.Transparency = 1 | |
| 1009 | cor2.TopSurface = 0 | |
| 1010 | corw2 = Instance.new("Weld", cor2)
| |
| 1011 | corw2.Part0 = rarm | |
| 1012 | corw2.Part1 = cor2 | |
| 1013 | corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1014 | corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1015 | weld2 = Instance.new("Weld", rarm.RightArm)
| |
| 1016 | weld2.Part0 = cor2 | |
| 1017 | weld2.Part1 = rarm.RightArm.RightArmPlate | |
| 1018 | weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1019 | ||
| 1020 | ||
| 1021 | --Zyrodoxa | |
| 1022 | m8 = Instance.new("Model")
| |
| 1023 | m8.Name = "Zyrodoxa" | |
| 1024 | ||
| 1025 | p16 = Instance.new("Part", m8)
| |
| 1026 | p16.BrickColor = BrickColor.new("Instutional white")
| |
| 1027 | p16.Material = Enum.Material.Metal | |
| 1028 | p16.Name = "Handle" | |
| 1029 | p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007) | |
| 1030 | p16.CanCollide = false | |
| 1031 | p16.Locked = true | |
| 1032 | p16.FormFactor = Enum.FormFactor.Custom | |
| 1033 | p16.Size = Vector3.new(0, 0, 0) | |
| 1034 | p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1035 | p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1036 | p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1037 | p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1038 | p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1039 | p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1040 | b16 = Instance.new("BlockMesh", p16)
| |
| 1041 | b16.Name = "Mesh" | |
| 1042 | b16.Scale = Vector3.new(0, 0, 0) | |
| 1043 | ||
| 1044 | w16 = Instance.new("Weld", p16)
| |
| 1045 | w16.Name = "Block_Weld" | |
| 1046 | w16.Part0 = p16 | |
| 1047 | w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015) | |
| 1048 | w16.Part1 = p17 | |
| 1049 | w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1) | |
| 1050 | ||
| 1051 | m8.Parent = rarm | |
| 1052 | m8:MakeJoints() | |
| 1053 | ---------------------------------------------------- | |
| 1054 | local cor8 = Instance.new("Part", rarm.Zyrodoxa)
| |
| 1055 | cor8.Name = "Thingy" | |
| 1056 | cor8.Locked = true | |
| 1057 | cor8.BottomSurface = 0 | |
| 1058 | cor8.CanCollide = false | |
| 1059 | cor8.Size = Vector3.new(1, 1, 1) | |
| 1060 | cor8.Transparency = 1 | |
| 1061 | cor8.TopSurface = 0 | |
| 1062 | corw8 = Instance.new("Weld", cor8)
| |
| 1063 | corw8.Part0 = rarm | |
| 1064 | corw8.Part1 = cor8 | |
| 1065 | corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)) | |
| 1066 | corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1067 | weld8 = Instance.new("Weld", rarm.Zyrodoxa)
| |
| 1068 | weld8.Part0 = cor8 | |
| 1069 | weld8.Part1 = rarm.Zyrodoxa.Handle | |
| 1070 | weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1071 | ---------------------------------------------------- | |
| 1072 | models = {m,m2,m8}
| |
| 1073 | parts = {}
| |
| 1074 | Stepped:connect(function() | |
| 1075 | for i,v in pairs(models) do | |
| 1076 | for _, a in pairs(v:GetChildren()) do | |
| 1077 | if v:IsA("Part") and v.Name ~= "Thingy" then
| |
| 1078 | table.insert(parts, a) | |
| 1079 | for i,v in pairs(parts) do | |
| 1080 | v.CanCollide = false | |
| 1081 | end | |
| 1082 | end | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end) | |
| 1086 | ---------------------------------------------------- | |
| 1087 | local animpose = "Idle1" | |
| 1088 | local lastanimpose = "Idle1" | |
| 1089 | local grab = false | |
| 1090 | local Smooth = 1 | |
| 1091 | local sine = 0 | |
| 1092 | local change = 1 | |
| 1093 | local val = 0 | |
| 1094 | local ffing = false | |
| 1095 | ---------------------------------------------------- | |
| 1096 | --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k | |
| 1097 | ||
| 1098 | function FindHumanoids() | |
| 1099 | local function c_region(Position, Size) | |
| 1100 | local SizeOffset = Size/2 | |
| 1101 | local Point1 = Position - SizeOffset | |
| 1102 | local Point2 = Position + SizeOffset | |
| 1103 | local a = Instance.new("Part", workspace)
| |
| 1104 | a.Anchored = true | |
| 1105 | a.Size = Size | |
| 1106 | a.Position = Position | |
| 1107 | print("Hey!, I'm making a part!")
| |
| 1108 | return Region3.new(Point1, Point2) | |
| 1109 | end | |
| 1110 | ||
| 1111 | local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1112 | local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1113 | local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1114 | local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1115 | ||
| 1116 | local regions = {a, b, c, d}
| |
| 1117 | ||
| 1118 | local found_humanoids = {}
| |
| 1119 | local already_found = {char.Name}
| |
| 1120 | ||
| 1121 | for _, region in pairs(regions) do | |
| 1122 | for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do | |
| 1123 | print(part, part.Parent, part.Name) ---nope | |
| 1124 | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
| |
| 1125 | local humanoid = part.Parent:FindFirstChild("Humanoid")
| |
| 1126 | local name = humanoid.Parent.Name | |
| 1127 | local exists = false | |
| 1128 | for _, n in pairs(already_found) do | |
| 1129 | if n == name then | |
| 1130 | exists = true | |
| 1131 | end | |
| 1132 | end | |
| 1133 | if not exists then | |
| 1134 | table.insert(already_found, name) | |
| 1135 | table.insert(found_humanoids, humanoid) | |
| 1136 | end | |
| 1137 | elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
| |
| 1138 | local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1139 | local name = humanoid.Parent.Parent.Name | |
| 1140 | local exists = false | |
| 1141 | for _, n in pairs(already_found) do | |
| 1142 | if n == name then | |
| 1143 | exists = true | |
| 1144 | end | |
| 1145 | end | |
| 1146 | if not exists then | |
| 1147 | table.insert(already_found, name) | |
| 1148 | table.insert(found_humanoids, humanoid) | |
| 1149 | end | |
| 1150 | end | |
| 1151 | end | |
| 1152 | end | |
| 1153 | return found_humanoids | |
| 1154 | end | |
| 1155 | ||
| 1156 | local humanoids = FindHumanoids() | |
| 1157 | if #humanoids == 0 then | |
| 1158 | for i, v in pairs(humanoids) do | |
| 1159 | print(v.Parent.Name) | |
| 1160 | if Debounces.Slashing == true then | |
| 1161 | v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage? | |
| 1162 | elseif Debounces.Slashing == false then | |
| 1163 | wait() | |
| 1164 | end | |
| 1165 | end | |
| 1166 | wait(0.3) | |
| 1167 | end]]-- | |
| 1168 | ---------------------------------------------------- | |
| 1169 | --[[mouse.KeyDown:connect(function(key) | |
| 1170 | if key == "f" then | |
| 1171 | if Debounces.CanAttack == true then | |
| 1172 | Debounces.CanAttack = false | |
| 1173 | Debounces.NoIdl = true | |
| 1174 | Debounces.on = true | |
| 1175 | for i = 1, 20 do | |
| 1176 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 1177 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1178 | CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1) | |
| 1179 | CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1180 | CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1181 | CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1182 | CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1183 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8) | |
| 1184 | 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.5) | |
| 1185 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8) | |
| 1186 | 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) | |
| 1187 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5) | |
| 1188 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5) | |
| 1189 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1) | |
| 1190 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1) | |
| 1191 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1) | |
| 1192 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1) | |
| 1193 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1) | |
| 1194 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1) | |
| 1195 | if Debounces.on == false then | |
| 1196 | break | |
| 1197 | end | |
| 1198 | fat.Event:wait() | |
| 1199 | end | |
| 1200 | end | |
| 1201 | end | |
| 1202 | end)]]-- | |
| 1203 | ---------------------------------------------------- | |
| 1204 | mod4 = Instance.new("Model",char)
| |
| 1205 | ||
| 1206 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 1207 | ||
| 1208 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1209 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1210 | local List = {}
| |
| 1211 | for i,v in pairs(workspace:GetChildren())do | |
| 1212 | if v:IsA("Model")then
| |
| 1213 | if v:findFirstChild("Torso")then
| |
| 1214 | if v ~= char then | |
| 1215 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1216 | table.insert(List,v) | |
| 1217 | end | |
| 1218 | end | |
| 1219 | end | |
| 1220 | end | |
| 1221 | end | |
| 1222 | return List | |
| 1223 | end | |
| 1224 | ||
| 1225 | function Slam() | |
| 1226 | local part=Instance.new('Part',mod4)
| |
| 1227 | part.Anchored=true | |
| 1228 | part.CanCollide=false | |
| 1229 | part.FormFactor='Custom' | |
| 1230 | part.Size=Vector3.new(.2,.2,.2) | |
| 1231 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
| 1232 | part.Transparency=.7 | |
| 1233 | part.BrickColor=BrickColor.new('Really black')
| |
| 1234 | mesh=Instance.new('SpecialMesh',part)
| |
| 1235 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 1236 | mesh.Scale=Vector3.new(10,10,10) | |
| 1237 | local part2=Instance.new('Part',mod4)
| |
| 1238 | part2.Anchored=true | |
| 1239 | part2.CanCollide=false | |
| 1240 | part2.FormFactor='Custom' | |
| 1241 | part2.Size=Vector3.new(.2,.2,.2) | |
| 1242 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
| 1243 | part2.Transparency=.7 | |
| 1244 | part2.BrickColor=BrickColor.new('Institutional white')
| |
| 1245 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 1246 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1247 | mesh2.Scale=Vector3.new(9,1.5,9) | |
| 1248 | x = Instance.new("Sound",larm)
| |
| 1249 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
| 1250 | x.Pitch = ptez[math.random(1,#ptez)] | |
| 1251 | x.Volume = 1 | |
| 1252 | wait(.1) | |
| 1253 | x1 = Instance.new("Sound",larm)
| |
| 1254 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
| 1255 | x1.Pitch = ptez[math.random(1,#ptez)] | |
| 1256 | x1.Volume = 1 | |
| 1257 | wait(.1) | |
| 1258 | x:Play() | |
| 1259 | x1:Play() | |
| 1260 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 1261 | if v:FindFirstChild('Humanoid') then
| |
| 1262 | v.Humanoid:TakeDamage(math.random(30,45)) | |
| 1263 | end | |
| 1264 | end | |
| 1265 | coroutine.resume(coroutine.create(function() | |
| 1266 | for i=0,0.62,0.13 do | |
| 1267 | wait() | |
| 1268 | part.CFrame=part.CFrame | |
| 1269 | part.Transparency=i | |
| 1270 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 1271 | part2.CFrame=part2.CFrame | |
| 1272 | part2.Transparency=i | |
| 1273 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 1274 | end | |
| 1275 | part.Parent=nil | |
| 1276 | part2.Parent=nil | |
| 1277 | x:Destroy() | |
| 1278 | end)) | |
| 1279 | end | |
| 1280 | ---------------------------------------------------- | |
| 1281 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
| 1282 | local wp = Instance.new('WedgePart',parent or Weapon)
| |
| 1283 | wp.formFactor = 'Custom' | |
| 1284 | wp.Size = Vector3.new(x,y,z) | |
| 1285 | wp.BrickColor = BrickColor.new(color) | |
| 1286 | wp.CanCollide = cc | |
| 1287 | wp.Transparency = tr | |
| 1288 | wp.Anchored = an | |
| 1289 | wp.TopSurface,wp.BottomSurface = 0,0 | |
| 1290 | return wp | |
| 1291 | end | |
| 1292 | ||
| 1293 | Mesh = function(par,num,x,y,z) | |
| 1294 | local msh = _ | |
| 1295 | if num == 1 then | |
| 1296 | msh = Instance.new("CylinderMesh",par)
| |
| 1297 | elseif num == 2 then | |
| 1298 | msh = Instance.new("SpecialMesh",par)
| |
| 1299 | msh.MeshType = 3 | |
| 1300 | elseif num == 3 then | |
| 1301 | msh = Instance.new("BlockMesh",par)
| |
| 1302 | elseif num == 4 then | |
| 1303 | msh = Instance.new("SpecialMesh",par)
| |
| 1304 | msh.MeshType = "Torso" | |
| 1305 | elseif type(num) == 'string' then | |
| 1306 | msh = Instance.new("SpecialMesh",par)
| |
| 1307 | msh.MeshId = num | |
| 1308 | end | |
| 1309 | msh.Scale = Vector3.new(x,y,z) | |
| 1310 | return msh | |
| 1311 | end | |
| 1312 | ||
| 1313 | local function CFrameFromTopBack(at, top, back) | |
| 1314 | local right = top:Cross(back) | |
| 1315 | return CFrame.new(at.x, at.y, at.z, | |
| 1316 | right.x, top.x, back.x, | |
| 1317 | right.y, top.y, back.y, | |
| 1318 | right.z, top.z, back.z) | |
| 1319 | end | |
| 1320 | ||
| 1321 | function Triangle(a, b, c) | |
| 1322 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1323 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1324 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1325 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1326 | a, b, c = a, b, c | |
| 1327 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1328 | a, b, c = b, c, a | |
| 1329 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1330 | a, b, c = c, a, b | |
| 1331 | else | |
| 1332 | print("unreachable")
| |
| 1333 | end | |
| 1334 | local len1 = (c-a):Dot((b-a).unit) | |
| 1335 | local len2 = (b-a).magnitude - len1 | |
| 1336 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1337 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1338 | local list = {}
| |
| 1339 | if len1 > 0.01 then | |
| 1340 | local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
| 1341 | local sz = Vector3.new(0.2, width, len1) | |
| 1342 | w1.Size = sz | |
| 1343 | local sp = Mesh(w1,2,0,0,0) | |
| 1344 | sp.MeshType='Wedge' | |
| 1345 | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size | |
| 1346 | w1:BreakJoints() | |
| 1347 | w1.Anchored = true | |
| 1348 | w1.Transparency = 0.7 | |
| 1349 | Spawn(function() | |
| 1350 | for i=0,1,0.1 do | |
| 1351 | fat.Event:wait() | |
| 1352 | w1.Transparency=w1.Transparency+0.03 | |
| 1353 | end | |
| 1354 | end) | |
| 1355 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1356 | table.insert(list,w1) | |
| 1357 | end | |
| 1358 | if len2 > 0.01 then | |
| 1359 | local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
| 1360 | local sz = Vector3.new(0.2, width, len2) | |
| 1361 | w2.Size = sz | |
| 1362 | local sp = Mesh(w2,2,0,0,0) | |
| 1363 | sp.MeshType='Wedge' | |
| 1364 | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size | |
| 1365 | w2:BreakJoints() | |
| 1366 | w2.Anchored = true | |
| 1367 | w2.Transparency = 0.7 | |
| 1368 | Spawn(function() | |
| 1369 | for i=0,1,0.1 do | |
| 1370 | fat.Event:wait() | |
| 1371 | w2.Transparency=w2.Transparency+0.03 | |
| 1372 | end | |
| 1373 | end) | |
| 1374 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1375 | table.insert(list,w2) | |
| 1376 | end | |
| 1377 | return unpack(list) | |
| 1378 | end | |
| 1379 | ||
| 1380 | function trail(p,t,h) | |
| 1381 | Spawn(function() | |
| 1382 | local blcf = p.CFrame | |
| 1383 | local scfr = blcf | |
| 1384 | for i=1,t do | |
| 1385 | local blcf = p.CFrame | |
| 1386 | if scfr and (p.Position-scfr.p).magnitude > .1 then | |
| 1387 | 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) | |
| 1388 | if a then game.Debris:AddItem(a,1) end | |
| 1389 | if b then game.Debris:AddItem(b,1) end | |
| 1390 | 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) | |
| 1391 | if a then game.Debris:AddItem(a,1) end | |
| 1392 | if b then game.Debris:AddItem(b,1) end | |
| 1393 | scfr = blcf | |
| 1394 | elseif not scfr then | |
| 1395 | scfr = blcf | |
| 1396 | end | |
| 1397 | fat.Event:wait() | |
| 1398 | end | |
| 1399 | scfr=nil | |
| 1400 | end) | |
| 1401 | end | |
| 1402 | --trail(char.Sword.Blade,1e1000,5) | |
| 1403 | ---------------------------------------------------- | |
| 1404 | function Dmg() | |
| 1405 | local partofdeath = rarm.Zyrodoxa.Hitbox | |
| 1406 | local function CreateRegion3FromLocAndSize(Position, Size) | |
| 1407 | local SizeOffset = Size/2 | |
| 1408 | local Point1 = Position - SizeOffset | |
| 1409 | local Point2 = Position + SizeOffset | |
| 1410 | return Region3.new(Point1, Point2) | |
| 1411 | end | |
| 1412 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
| 1413 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
| 1414 | Spawn(function() | |
| 1415 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1416 | Debounces.Slashed = true | |
| 1417 | ypcall(function() | |
| 1418 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1419 | humanoid:TakeDamage(math.random(10,18)) | |
| 1420 | end) | |
| 1421 | wait(.4) | |
| 1422 | Debounces.Slashed = false | |
| 1423 | end | |
| 1424 | end) | |
| 1425 | end | |
| 1426 | end | |
| 1427 | ---------------------------------------------------- | |
| 1428 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 1429 | ptz = {0.7, 0.8, 0.9, 1}
| |
| 1430 | idz = {"161006212", "161006195"}
| |
| 1431 | function attackone() | |
| 1432 | for i = 1, 13 do | |
| 1433 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
| 1434 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8) | |
| 1435 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3) | |
| 1436 | 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.3) | |
| 1437 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5) | |
| 1438 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5) | |
| 1439 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5) | |
| 1440 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5) | |
| 1441 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7) | |
| 1442 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7) | |
| 1443 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
| 1444 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5) | |
| 1445 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
| 1446 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) | |
| 1447 | if Debounces.on == false then | |
| 1448 | break | |
| 1449 | end | |
| 1450 | fat.Event:wait() | |
| 1451 | end | |
| 1452 | trail(rarm.Zyrodoxa.Hitbox,20,2) | |
| 1453 | Debounces.Slashing = true | |
| 1454 | wait(0.2) | |
| 1455 | --[[z = Instance.new("Sound", hed)
| |
| 1456 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
| 1457 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1458 | z.Volume = 1 | |
| 1459 | wait(.01) | |
| 1460 | z:Play()]]-- | |
| 1461 | for i = 1, 14 do | |
| 1462 | Dmg() | |
| 1463 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
| 1464 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8) | |
| 1465 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4) | |
| 1466 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4) | |
| 1467 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4) | |
| 1468 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4) | |
| 1469 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7) | |
| 1470 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1471 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4) | |
| 1472 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1473 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
| 1474 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5) | |
| 1475 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
| 1476 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5) | |
| 1477 | if Debounces.on == false then break end | |
| 1478 | rs:wait() | |
| 1479 | end | |
| 1480 | Debounces.Slashing = false | |
| 1481 | end | |
| 1482 | function attacktwo() | |
| 1483 | Debounces.Slashing = true | |
| 1484 | for i = 1, 14 do | |
| 1485 | Dmg() | |
| 1486 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4) | |
| 1487 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4) | |
| 1488 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7) | |
| 1489 | 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) | |
| 1490 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5) | |
| 1491 | 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.4) | |
| 1492 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5) | |
| 1493 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1494 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
| 1495 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1496 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5) | |
| 1497 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1498 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5) | |
| 1499 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1500 | if Debounces.on == false then | |
| 1501 | break | |
| 1502 | end | |
| 1503 | rs:wait() | |
| 1504 | end | |
| 1505 | end | |
| 1506 | ---------------------------------------------------- | |
| 1507 | ||
| 1508 | ---------------------------------------------------- | |
| 1509 | definition = 5 | |
| 1510 | bc = {}
| |
| 1511 | bezierparts = {}
| |
| 1512 | function NoOutline(Part) | |
| 1513 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1514 | end | |
| 1515 | function draw(p,d) | |
| 1516 | for i=1,d do | |
| 1517 | local t = i/d | |
| 1518 | bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2 | |
| 1519 | end | |
| 1520 | ||
| 1521 | Spawn(function() fat.Event:wait() | |
| 1522 | for i,v in pairs(bezierparts) do | |
| 1523 | v.Transparency = 1 | |
| 1524 | end | |
| 1525 | end) | |
| 1526 | end | |
| 1527 | --local points = {larm.Position,rarn.Position,invisipart.Position}
| |
| 1528 | --draw(points,definition) | |
| 1529 | ||
| 1530 | fat.Event:wait() | |
| 1531 | ||
| 1532 | rpart = Instance.new("Part",rarm)
| |
| 1533 | NoOutline(rpart) | |
| 1534 | rpart.Anchored = false | |
| 1535 | rpart.Size = Vector3.new(1,1,1) | |
| 1536 | rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1537 | rpart.Transparency = 1 | |
| 1538 | newWeld(rarm, rpart, 0, 0, 0) | |
| 1539 | rpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
| 1540 | lpart = Instance.new("Part",larm)
| |
| 1541 | NoOutline(lpart) | |
| 1542 | lpart.Anchored = false | |
| 1543 | lpart.Size = Vector3.new(1,1,1) | |
| 1544 | lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1545 | lpart.Transparency = 1 | |
| 1546 | newWeld(larm, lpart, 0, 0, 0) | |
| 1547 | lpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
| 1548 | invisipart = Instance.new("Part",torso)
| |
| 1549 | NoOutline(invisipart) | |
| 1550 | invisipart.Anchored = false | |
| 1551 | invisipart.Size = Vector3.new(1,1,1) | |
| 1552 | invisipart.Transparency = 1 | |
| 1553 | invisipart.CFrame = torso.CFrame | |
| 1554 | newWeld(torso, invisipart, 0, 0, 0) | |
| 1555 | invisipart.Weld.C1 = CFrame.new(0, 0, 6) | |
| 1556 | table.insert(bezierparts, rpart) | |
| 1557 | table.insert(bezierparts, lpart) | |
| 1558 | table.insert(bezierparts, invisipart) | |
| 1559 | for i = 1, 40 do | |
| 1560 | local points = {lpart.Position,invisipart.Position,rpart.Position}
| |
| 1561 | draw(points,definition) | |
| 1562 | --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6) | |
| 1563 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1) | |
| 1564 | 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) | |
| 1565 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1) | |
| 1566 | 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) | |
| 1567 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2) | |
| 1568 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1569 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 1570 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1571 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2) | |
| 1572 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1573 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2) | |
| 1574 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1575 | if Debounces.on == false then | |
| 1576 | break | |
| 1577 | end | |
| 1578 | fat.Event:wait() | |
| 1579 | end | |
| 1580 | for i,v in pairs(bezierparts) do | |
| 1581 | v:Destroy() | |
| 1582 | end | |
| 1583 | --draw(points,definition) | |
| 1584 | if Debounces.CanAttack == false then | |
| 1585 | Debounces.CanAttack = true | |
| 1586 | Debounces.NoIdl = false | |
| 1587 | Debounces.on = false | |
| 1588 | end | |
| 1589 | ||
| 1590 | ---------------------------------------------------- | |
| 1591 | ---------------------------------------------------- | |
| 1592 | pt = {6.6, 6.8, 7, 7.2, 7.4}
| |
| 1593 | mouse.KeyDown:connect(function(key) | |
| 1594 | if key == "q" then | |
| 1595 | if Debounces.CanJoke == true then | |
| 1596 | Debounces.CanJoke = false | |
| 1597 | u = Instance.new("Sound",char)
| |
| 1598 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1599 | u.Pitch = pt[math.random(1,#pt)] | |
| 1600 | u.Volume = 0.3 | |
| 1601 | u2 = Instance.new("Sound",char)
| |
| 1602 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1603 | u2.Pitch = u.Pitch | |
| 1604 | u2.Volume = 0.3 | |
| 1605 | u3 = Instance.new("Sound",char)
| |
| 1606 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1607 | u3.Pitch = u.Pitch | |
| 1608 | u3.Volume = 0.3 | |
| 1609 | wait(.01) | |
| 1610 | u:Play() | |
| 1611 | u2:Play() | |
| 1612 | u3:Play() | |
| 1613 | wait(1.5) | |
| 1614 | u:Destroy() | |
| 1615 | u2:Destroy() | |
| 1616 | u3:Destroy() | |
| 1617 | if Debounces.CanJoke == false then | |
| 1618 | Debounces.CanJoke = true | |
| 1619 | end | |
| 1620 | end | |
| 1621 | end | |
| 1622 | end) | |
| 1623 | ----------------------------------------------------- | |
| 1624 | mouse.KeyDown:connect(function(key) | |
| 1625 | if key == "l" then | |
| 1626 | Debounces.on = true | |
| 1627 | Debounces.NoIdl = true | |
| 1628 | Debounces.ks = true | |
| 1629 | for i = 1, 20 do | |
| 1630 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(3.,0,0), 0.2) | |
| 1631 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1632 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-0.5,0),0.2) | |
| 1633 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1634 | if Debounces.on == false then break end | |
| 1635 | fat.Event:wait() | |
| 1636 | end | |
| 1637 | handleweld:remove() | |
| 1638 | local Weld = Instance.new("Weld",handle)
| |
| 1639 | Weld.Part0 = Character["Right Arm"] | |
| 1640 | Weld.Part1 = handle | |
| 1641 | Weld.C0 = CFrame.new(0,-1,-0.2)*CFrame.Angles(-1.55,1.55,0) | |
| 1642 | Debounces.on = false | |
| 1643 | Debounces.NoIdl = false | |
| 1644 | Debounces.ks = false | |
| 1645 | WOW:disconnect() | |
| 1646 | WOW2:disconnect() | |
| 1647 | WOW3:disconnect() | |
| 1648 | WOW4:disconnect() | |
| 1649 | mouse.Button1Down:connect(function() | |
| 1650 | print("IT WORKS LAZY")
| |
| 1651 | end) | |
| 1652 | end | |
| 1653 | end) | |
| 1654 | ---------------------------------------------------- | |
| 1655 | WOW = mouse.KeyDown:connect(function(key) | |
| 1656 | if key == "x" then | |
| 1657 | Character.Humanoid.WalkSpeed = 50 | |
| 1658 | Debounces.on = true | |
| 1659 | Debounces.NoIdl = true | |
| 1660 | Debounces.ks = true | |
| 1661 | for i = 1, 20 do | |
| 1662 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.5,0,1.3), 0.2) | |
| 1663 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1664 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 1665 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1666 | if Debounces.on == false then break end | |
| 1667 | fat.Event:wait() | |
| 1668 | end | |
| 1669 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1670 | HitBox.Size = Vector3.new(3,3,3) | |
| 1671 | HitBox.Transparency = 1 | |
| 1672 | HitBox.CanCollide = false | |
| 1673 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1674 | HitBox2.Part0 = Character["Right Arm"] | |
| 1675 | HitBox2.Part1 = HitBox | |
| 1676 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1677 | HitBox.Touched:connect(function(hit) | |
| 1678 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 1679 | HitBox:remove() | |
| 1680 | hit.Parent.Head.Transparency = 1e9 | |
| 1681 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 1682 | SFXZ.SoundId = "rbxassetid://206082273" | |
| 1683 | SFXZ.Volume = 1 | |
| 1684 | SFXZ.Pitch = 1 | |
| 1685 | SFXZ.Looped = false | |
| 1686 | wait(0.01) | |
| 1687 | SFXZ:Play() | |
| 1688 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1689 | HitBox.Transparency = 0 | |
| 1690 | HitBox.Size = Vector3.new(1,1,1) | |
| 1691 | HitBox.BrickColor = hit.Parent.Head.BrickColor | |
| 1692 | HitBox.CanCollide = false | |
| 1693 | local HitBoxM = Instance.new("SpecialMesh",HitBox)
| |
| 1694 | HitBoxM.MeshType = "Head" | |
| 1695 | HitBoxM.Scale = Vector3.new(1.25,1.25,1.25) | |
| 1696 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1697 | HitBox2.Part0 = Character["Right Arm"] | |
| 1698 | HitBox2.Part1 = HitBox | |
| 1699 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1700 | local D = Instance.new("Decal",HitBox)
| |
| 1701 | D.Face = "Front" | |
| 1702 | D.Texture = hit.Parent.Head.face.Texture | |
| 1703 | hit.Parent.Head.face:remove() | |
| 1704 | local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
| |
| 1705 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
| 1706 | partasdeff.LightEmission = .1 | |
| 1707 | partasdeff.Size = NumberSequence.new(0.2) | |
| 1708 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
| 1709 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 1710 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1711 | partasdeff.Transparency = bbb | |
| 1712 | partasdeff.Size = aaa | |
| 1713 | partasdeff.ZOffset = .9 | |
| 1714 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 1715 | partasdeff.LockedToPart = false | |
| 1716 | partasdeff.EmissionDirection = "Top" | |
| 1717 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 1718 | partasdeff.Rate = 1000 | |
| 1719 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 1720 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 1721 | partasdeff.Speed = NumberRange.new(10) | |
| 1722 | partasdeff.VelocitySpread = 20 | |
| 1723 | partasdeff.Enabled=true | |
| 1724 | hit.Parent.Head:remove() | |
| 1725 | wait(1) | |
| 1726 | for i = 1, 20 do | |
| 1727 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(1.66,0,-1), 0.2) | |
| 1728 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1729 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0),0.2) | |
| 1730 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1731 | if Debounces.on == false then break end | |
| 1732 | fat.Event:wait() | |
| 1733 | end | |
| 1734 | chatfunc("Heh Heh..")
| |
| 1735 | for i = 1,14 do | |
| 1736 | HitBoxM.Scale = HitBoxM.Scale - Vector3.new(0.1,0.1,0.1) | |
| 1737 | game:GetService("RunService").RenderStepped:wait()
| |
| 1738 | end | |
| 1739 | HitBox:remove() | |
| 1740 | wait(0.5) | |
| 1741 | partasdeff.Enabled = false | |
| 1742 | HitBox:remove() | |
| 1743 | Debounces.on = false | |
| 1744 | Debounces.NoIdl = false | |
| 1745 | Debounces.ks = false | |
| 1746 | Character.Humanoid.WalkSpeed = 50 | |
| 1747 | local a = Instance.new("Part",game.Players.LocalPlayer.Character.Head)
| |
| 1748 | a.Transparency = 1 | |
| 1749 | a.Size = Vector3.new(.2,.2,.2) | |
| 1750 | local b = Instance.new("Weld",a.Parent.Parent)
| |
| 1751 | b.Part0 = a | |
| 1752 | b.Part1 = a.Parent | |
| 1753 | b.C0 = CFrame.new(0,.3,0.65) | |
| 1754 | local p2mit = Instance.new("ParticleEmitter",a)
| |
| 1755 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 1756 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
| |
| 1757 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
| |
| 1758 | p2mit.Lifetime = NumberRange.new(1) | |
| 1759 | p2mit.Rate = 10 | |
| 1760 | p2mit.VelocitySpread = 10 | |
| 1761 | p2mit.Acceleration = Vector3.new(0,-10,0) | |
| 1762 | p2mit.Speed = NumberRange.new(0) | |
| 1763 | coroutine.wrap(function() | |
| 1764 | wait(15) | |
| 1765 | p2mit.Enabled=false | |
| 1766 | game:service'Debris':AddItem(a,2) | |
| 1767 | end)() | |
| 1768 | end | |
| 1769 | end) | |
| 1770 | for i = 1, 20 do | |
| 1771 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.9,0,0), 0.2) | |
| 1772 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1773 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1,0),0.2) | |
| 1774 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1775 | if Debounces.on == false then break end | |
| 1776 | fat.Event:wait() | |
| 1777 | end | |
| 1778 | wait(0.5) | |
| 1779 | HitBox:remove() | |
| 1780 | wait(3) | |
| 1781 | Debounces.on = false | |
| 1782 | Debounces.NoIdl = false | |
| 1783 | Debounces.ks = false | |
| 1784 | Character.Humanoid.WalkSpeed = 50 | |
| 1785 | end | |
| 1786 | end) | |
| 1787 | ---------------------------------------------------- | |
| 1788 | WOW2 = mouse.KeyDown:connect(function(key) | |
| 1789 | if key == "z" then | |
| 1790 | Character.Humanoid.WalkSpeed = 50 | |
| 1791 | Debounces.on = true | |
| 1792 | Debounces.NoIdl = true | |
| 1793 | Debounces.ks = true | |
| 1794 | for i = 1, 20 do | |
| 1795 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.5,0,1.3), 0.2) | |
| 1796 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1797 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 1798 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1799 | if Debounces.on == false then break end | |
| 1800 | fat.Event:wait() | |
| 1801 | end | |
| 1802 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1803 | HitBox.Size = Vector3.new(3,3,3) | |
| 1804 | HitBox.Transparency = 1 | |
| 1805 | HitBox.CanCollide = false | |
| 1806 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1807 | HitBox2.Part0 = Character["Right Arm"] | |
| 1808 | HitBox2.Part1 = HitBox | |
| 1809 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1810 | HitBox.Touched:connect(function(hit) | |
| 1811 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 1812 | HitBox:remove() | |
| 1813 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 1814 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 1815 | SFXZ.Volume = 1 | |
| 1816 | SFXZ.Pitch = 1 | |
| 1817 | SFXZ.Looped = false | |
| 1818 | SFXZ:Play() | |
| 1819 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(1.56,0,0) | |
| 1820 | wait(1.5) | |
| 1821 | hit.Parent.Torso.Anchored = true | |
| 1822 | torso.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,0,-2)*CFrame.Angles(-1.55,1.55,0) | |
| 1823 | Head.Anchored = true | |
| 1824 | hit.Parent.Head.Anchored = true | |
| 1825 | wait(0.01) | |
| 1826 | for i = 1, 20 do | |
| 1827 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(2.4,0,0.5), 0.2) | |
| 1828 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1829 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0.8,0,0), 0.2) | |
| 1830 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1831 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0.3,0,0),0.2) | |
| 1832 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-0.5,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1833 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.3, 0) * CFrame.Angles(-1.56,0,-0.5), 0.2) | |
| 1834 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0), 0.4) | |
| 1835 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1.3, 0) * CFrame.Angles(-1.56,0,0.5), 0.2) | |
| 1836 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0), 0.4) | |
| 1837 | if Debounces.on == false then break end | |
| 1838 | fat.Event:wait() | |
| 1839 | end | |
| 1840 | wait(1.2) | |
| 1841 | chatfunc("Heh.")
| |
| 1842 | for i = 1, 20 do | |
| 1843 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5,-0.2,-0.8)*CFrame.Angles(0.4,0,-0.5), 0.2) | |
| 1844 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1845 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0.8,0,0), 0.2) | |
| 1846 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1847 | if Debounces.on == false then break end | |
| 1848 | fat.Event:wait() | |
| 1849 | end | |
| 1850 | wait(2.5) | |
| 1851 | hit.Parent:BreakJoints() | |
| 1852 | wait(2.5) | |
| 1853 | Head.Anchored = false | |
| 1854 | Debounces.on = false | |
| 1855 | Debounces.NoIdl = false | |
| 1856 | Debounces.ks = false | |
| 1857 | Character.Humanoid.WalkSpeed = 50 | |
| 1858 | end | |
| 1859 | end) | |
| 1860 | for i = 1, 20 do | |
| 1861 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(1,0,-0.4), 0.2) | |
| 1862 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1863 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1.4,0),0.2) | |
| 1864 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1865 | if Debounces.on == false then break end | |
| 1866 | fat.Event:wait() | |
| 1867 | end | |
| 1868 | end | |
| 1869 | end) | |
| 1870 | ---------------------------------------------------- | |
| 1871 | WOW3 = mouse.KeyDown:connect(function(key) | |
| 1872 | if key == "r" then | |
| 1873 | Debounces.on = true | |
| 1874 | Debounces.NoIdl = true | |
| 1875 | Debounces.ks = true | |
| 1876 | for i = 1, 20 do | |
| 1877 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(1.55,0,1.3), 0.2) | |
| 1878 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1879 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 1880 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1881 | if Debounces.on == false then break end | |
| 1882 | fat.Event:wait() | |
| 1883 | end | |
| 1884 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1885 | HitBox.Size = Vector3.new(3,3,3) | |
| 1886 | HitBox.Transparency = 1 | |
| 1887 | HitBox.CanCollide = false | |
| 1888 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1889 | HitBox2.Part0 = Character["Right Arm"] | |
| 1890 | HitBox2.Part1 = HitBox | |
| 1891 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1892 | HitBox.Touched:connect(function(hit) | |
| 1893 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 1894 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 1895 | SFXZ.SoundId = "rbxassetid://283674624" | |
| 1896 | SFXZ.Volume = 1 | |
| 1897 | SFXZ.Pitch = 1 | |
| 1898 | SFXZ.Looped = false | |
| 1899 | SFXZ:Play() | |
| 1900 | HitBox:remove() | |
| 1901 | hit.Parent.Humanoid:TakeDamage(math.huge) | |
| 1902 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 1903 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1904 | Fl.velocity = Character.Torso.CFrame.lookVector*350 | |
| 1905 | wait(0.1) | |
| 1906 | Fl:remove() | |
| 1907 | coroutine.resume(coroutine.create(function() | |
| 1908 | for i = 1,30 do | |
| 1909 | local H = Instance.new("Part",hit.Parent.Head)
| |
| 1910 | H.Size = Vector3.new(1,1,1) | |
| 1911 | H.BrickColor = BrickColor.new("Really red")
| |
| 1912 | H.CanCollide = false | |
| 1913 | H.Anchored = true | |
| 1914 | H.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,0,1)*CFrame.Angles(0,0,0) | |
| 1915 | local H2 = Instance.new("SpecialMesh",H)
| |
| 1916 | H2.MeshId = "rbxassetid://3270017" | |
| 1917 | coroutine.resume(coroutine.create(function() | |
| 1918 | for i = 1,200 do | |
| 1919 | H2.Scale = H2.Scale + Vector3.new(4,4,4) | |
| 1920 | H.Transparency = H.Transparency + 0.09 | |
| 1921 | wait(0.00000000001) | |
| 1922 | end | |
| 1923 | end)) | |
| 1924 | wait(0.0000000000001) | |
| 1925 | end | |
| 1926 | end)) | |
| 1927 | end | |
| 1928 | end) | |
| 1929 | for i = 1, 20 do | |
| 1930 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(1.55,0,-0.4), 0.2) | |
| 1931 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1932 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1.4,0),0.2) | |
| 1933 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1934 | if Debounces.on == false then break end | |
| 1935 | fat.Event:wait() | |
| 1936 | end | |
| 1937 | HitBox:remove() | |
| 1938 | Debounces.on = false | |
| 1939 | Debounces.NoIdl = false | |
| 1940 | Debounces.ks = false | |
| 1941 | ||
| 1942 | end | |
| 1943 | end) | |
| 1944 | ---------------------------------------------------- | |
| 1945 | mouse.KeyDown:connect(function(key) | |
| 1946 | if key == "c" then | |
| 1947 | if Debounces.CanJoke == true then | |
| 1948 | Debounces.CanJoke = false | |
| 1949 | z = Instance.new("Sound",hed)
| |
| 1950 | z.SoundId = "rbxassetid://153317147" | |
| 1951 | z.Pitch = 1 | |
| 1952 | z.Volume = 50 | |
| 1953 | wait() | |
| 1954 | z:Play() | |
| 1955 | wait(5.5) | |
| 1956 | z:Destroy() | |
| 1957 | if Debounces.CanJoke == false then | |
| 1958 | Debounces.CanJoke = true | |
| 1959 | end | |
| 1960 | end | |
| 1961 | end | |
| 1962 | end) | |
| 1963 | ---------------------------------------------------- | |
| 1964 | Grab = false | |
| 1965 | WOW4 = mouse.KeyDown:connect(function(key) | |
| 1966 | if key == "e" then | |
| 1967 | Debounces.on = true | |
| 1968 | Debounces.NoIdl = true | |
| 1969 | Debounces.ks = true | |
| 1970 | if Grab == false then | |
| 1971 | gp = nil | |
| 1972 | for i = 1, 20 do | |
| 1973 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
| 1974 | 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.5) | |
| 1975 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
| 1976 | 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) | |
| 1977 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
| 1978 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 1979 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
| 1980 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 1981 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
| 1982 | 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) | |
| 1983 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
| 1984 | 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) | |
| 1985 | if Debounces.on == false then break end | |
| 1986 | fat.Event:wait() | |
| 1987 | end | |
| 1988 | con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit) | |
| 1989 | ht = hit.Parent | |
| 1990 | for i,v in pairs(ht:GetChildren()) do | |
| 1991 | if v:IsA("Part") then
| |
| 1992 | v.CanCollide = false | |
| 1993 | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) | |
| 1994 | end | |
| 1995 | end | |
| 1996 | hum1=ht:FindFirstChild('Humanoid')
| |
| 1997 | if hum1 ~= nil then | |
| 1998 | if Debounces.ks==true then | |
| 1999 | z = Instance.new("Sound",hed)
| |
| 2000 | z.SoundId = "rbxassetid://169380525" | |
| 2001 | z.Volume = 1 | |
| 2002 | z:Play() | |
| 2003 | Debounces.ks=false | |
| 2004 | end | |
| 2005 | hum1.PlatformStand=true | |
| 2006 | hum1:ChangeState'Physics' | |
| 2007 | gp = ht | |
| 2008 | Grab = true | |
| 2009 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
| |
| 2010 | asd.Parent = larm | |
| 2011 | asd.Name = "asd" | |
| 2012 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
| 2013 | stanceToggle = "Grabbed" | |
| 2014 | --[[elseif hum1 == nil then | |
| 2015 | con1:disconnect() | |
| 2016 | wait() return]]-- | |
| 2017 | end | |
| 2018 | end) | |
| 2019 | for i = 1, 20 do | |
| 2020 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
| 2021 | 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.5) | |
| 2022 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
| 2023 | 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) | |
| 2024 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) | |
| 2025 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2026 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
| 2027 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2028 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 2029 | 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) | |
| 2030 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
| 2031 | 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) | |
| 2032 | if Debounces.on == false then break end | |
| 2033 | fat.Event:wait() | |
| 2034 | end | |
| 2035 | con1:disconnect() | |
| 2036 | Debounces.on = false | |
| 2037 | Debounces.NoIdl = false | |
| 2038 | elseif Grab == true then | |
| 2039 | Grab = false | |
| 2040 | for i = 1, 16 do | |
| 2041 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3) | |
| 2042 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5) | |
| 2043 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3) | |
| 2044 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5) | |
| 2045 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
| 2046 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2047 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3) | |
| 2048 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2049 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
| 2050 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
| 2051 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
| 2052 | 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) | |
| 2053 | if Debounces.on == false then end | |
| 2054 | rs:wait() | |
| 2055 | end | |
| 2056 | for i = 1, 12 do | |
| 2057 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6) | |
| 2058 | 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.5) | |
| 2059 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6) | |
| 2060 | 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) | |
| 2061 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6) | |
| 2062 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2063 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6) | |
| 2064 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5) | |
| 2065 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6) | |
| 2066 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
| 2067 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6) | |
| 2068 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4) | |
| 2069 | if Debounces.on == false then end | |
| 2070 | rs:wait() | |
| 2071 | end | |
| 2072 | Slam() | |
| 2073 | if gp ~= nil then | |
| 2074 | for i,v in pairs(larm:GetChildren()) do | |
| 2075 | if v.Name == "asd" and v:IsA("Weld") then
| |
| 2076 | v:Remove() | |
| 2077 | end | |
| 2078 | if v:IsA("Part") then
| |
| 2079 | v.CanCollide = true | |
| 2080 | v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1) | |
| 2081 | end | |
| 2082 | end | |
| 2083 | end | |
| 2084 | stanceToggle = "Idle1" | |
| 2085 | Debounces.on = false | |
| 2086 | Debounces.NoIdl = false | |
| 2087 | elseif ht == nil then wait() | |
| 2088 | Grab = false | |
| 2089 | Debounces.on = false | |
| 2090 | Debounces.NoIdl = false | |
| 2091 | end | |
| 2092 | end | |
| 2093 | end) | |
| 2094 | ---------------------------------------------------- | |
| 2095 | Change = false | |
| 2096 | mouse.KeyDown:connect(function(key) | |
| 2097 | if key == "n" then | |
| 2098 | if Change == false then | |
| 2099 | Change = true | |
| 2100 | stanceToggle = "Idle2" | |
| 2101 | elseif Change == true then | |
| 2102 | Change = false | |
| 2103 | stanceToggle = "Idle1" | |
| 2104 | end | |
| 2105 | end | |
| 2106 | end) | |
| 2107 | ---------------------------------------------------- | |
| 2108 | mouse.KeyDown:connect(function(key) | |
| 2109 | if string.byte(key) == 48 then | |
| 2110 | Swing = 2 | |
| 2111 | char.Humanoid.WalkSpeed = 200 | |
| 2112 | end | |
| 2113 | end) | |
| 2114 | mouse.KeyUp:connect(function(key) | |
| 2115 | if string.byte(key) == 48 then | |
| 2116 | Swing = 1 | |
| 2117 | char.Humanoid.WalkSpeed = 50 | |
| 2118 | end | |
| 2119 | end) | |
| 2120 | ---------------------------------------------------- | |
| 2121 | ||
| 2122 | jump = false | |
| 2123 | rs:connect(function() | |
| 2124 | if char.Humanoid.Jump == true then | |
| 2125 | jump = true | |
| 2126 | else | |
| 2127 | jump = false | |
| 2128 | end | |
| 2129 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2130 | if f then | |
| 2131 | ffing = true | |
| 2132 | else | |
| 2133 | ffing = false | |
| 2134 | end | |
| 2135 | end) | |
| 2136 | sine = sine + change | |
| 2137 | if jump == true then | |
| 2138 | animpose = "Jumping" | |
| 2139 | elseif ffing == true then | |
| 2140 | animpose = "Freefalling" | |
| 2141 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2142 | animpose = "Idle" | |
| 2143 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2144 | animpose = "Walking" | |
| 2145 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2146 | animpose = "Running" | |
| 2147 | end | |
| 2148 | RightLeg = CFrame.new(0.5,-1,0) | |
| 2149 | LeftLeg = CFrame.new(-0.5,-1,0) | |
| 2150 | ||
| 2151 | lefth = (torso.CFrame*LeftLeg) | |
| 2152 | righth = (torso.CFrame*RightLeg) | |
| 2153 | ||
| 2154 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 2155 | ||
| 2156 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
| 2157 | ||
| 2158 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 2159 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 2160 | if animpose ~= lastanimpose then | |
| 2161 | sine = 0 | |
| 2162 | if Debounces.NoIdl == false then | |
| 2163 | if stanceToggle == "Idle1" then | |
| 2164 | 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) | |
| 2165 | 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) | |
| 2166 | 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) | |
| 2167 | 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) | |
| 2168 | 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) | |
| 2169 | 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) | |
| 2170 | elseif stanceToggle == "Idle2" then | |
| 2171 | 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) | |
| 2172 | 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) | |
| 2173 | 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) | |
| 2174 | 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) | |
| 2175 | 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) | |
| 2176 | 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) | |
| 2177 | end | |
| 2178 | fat.Event:wait() | |
| 2179 | end | |
| 2180 | else | |
| 2181 | end | |
| 2182 | lastanimpose = animpose | |
| 2183 | if Debounces.NoIdl == false then | |
| 2184 | if animpose == "Idle" then | |
| 2185 | change = 0.5 | |
| 2186 | if stanceToggle == "Idle1" then | |
| 2187 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2188 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3) | |
| 2189 | ||
| 2190 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
| 2191 | 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.5) | |
| 2192 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
| 2193 | 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) | |
| 2194 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
| 2195 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
| 2196 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
| 2197 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
| 2198 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2199 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
| 2200 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2201 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
| 2202 | elseif stanceToggle == "Idle2" then | |
| 2203 | ||
| 2204 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2205 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
| 2206 | 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.2) | |
| 2207 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
| 2208 | 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.2) | |
| 2209 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2210 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2211 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
| 2212 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
| 2213 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2214 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2215 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
| 2216 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2217 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
| 2218 | elseif stanceToggle == "Grabbed" then | |
| 2219 | grab = true | |
| 2220 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2221 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2222 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
| 2223 | 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.2) | |
| 2224 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
| 2225 | 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.2) | |
| 2226 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
| 2227 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2228 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
| 2229 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2230 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
| 2231 | 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) | |
| 2232 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
| 2233 | 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) | |
| 2234 | end | |
| 2235 | elseif animpose == "Walking" then | |
| 2236 | if stanceToggle == "Grabbed" then | |
| 2237 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2238 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2239 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.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) | |
| 2240 | 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) | |
| 2241 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3) | |
| 2242 | 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.2) | |
| 2243 | 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) | |
| 2244 | 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) | |
| 2245 | 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) | |
| 2246 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2247 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2248 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.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) | |
| 2249 | 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) | |
| 2250 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.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) | |
| 2251 | 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) | |
| 2252 | elseif stanceToggle ~= "Grabbed" then | |
| 2253 | change = 1 | |
| 2254 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2255 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2256 | ||
| 2257 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.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) | |
| 2258 | 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) | |
| 2259 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.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) | |
| 2260 | 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) | |
| 2261 | 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) | |
| 2262 | 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) | |
| 2263 | 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) | |
| 2264 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2265 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2266 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2267 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.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) | |
| 2268 | 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) | |
| 2269 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2270 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.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) | |
| 2271 | 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) | |
| 2272 | end | |
| 2273 | elseif animpose == "Running" then | |
| 2274 | change = 1 | |
| 2275 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2276 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2277 | ||
| 2278 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.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(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
| 2279 | 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) | |
| 2280 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.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(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
| 2281 | 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) | |
| 2282 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.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) | |
| 2283 | 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) | |
| 2284 | 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) | |
| 2285 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2286 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.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), .8) | |
| 2287 | 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) | |
| 2288 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.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), .8) | |
| 2289 | 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) | |
| 2290 | elseif animpose == "Jumping" then | |
| 2291 | ||
| 2292 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2293 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2294 | 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) | |
| 2295 | 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) | |
| 2296 | 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) | |
| 2297 | 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) | |
| 2298 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
| 2299 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2300 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2301 | 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) | |
| 2302 | 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) | |
| 2303 | 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) | |
| 2304 | 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) | |
| 2305 | elseif animpose == "Freefalling" then | |
| 2306 | ||
| 2307 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2308 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2309 | 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) | |
| 2310 | 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) | |
| 2311 | 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) | |
| 2312 | 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) | |
| 2313 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
| 2314 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
| 2315 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2316 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
| 2317 | 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) | |
| 2318 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
| 2319 | 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) | |
| 2320 | end | |
| 2321 | end | |
| 2322 | end) | |
| 2323 | hum.MaxHealth = math.huge | |
| 2324 | wait(3) | |
| 2325 | hum.Health = math.huge |