SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
| |
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 5 | local function NewFakeEvent() | |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | local Fake;Fake = {Connections = {},
| |
| 8 | fakeEvent=true; | |
| 9 | Connect=function(self,Func) | |
| 10 | Bind.Event:connect(Func) | |
| 11 | self.Connections[Bind] = true | |
| 12 | return setmetatable({Connected = true},{
| |
| 13 | __index = function (self,Index) | |
| 14 | if Index:lower() == "disconnect" then | |
| 15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 16 | end | |
| 17 | return Fake[Index] | |
| 18 | end; | |
| 19 | __tostring = function() return "Connection" end; | |
| 20 | }) | |
| 21 | end} | |
| 22 | Fake.connect = Fake.Connect;return Fake; | |
| 23 | end | |
| 24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | local Trigger = Mouse[Event] | |
| 31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 33 | end | |
| 34 | end | |
| 35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 37 | if FiredBy.Name ~= owner.Name then return end | |
| 38 | if Input.MouseEvent then | |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | else | |
| 41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 43 | for _,Action in pairs(ContextActionService.Actions) do | |
| 44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 45 | end | |
| 46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 48 | end | |
| 49 | end) | |
| 50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 51 | Event.Parent = NLS([[ | |
| 52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 53 | local Input = function(Input,gameProcessedEvent) | |
| 54 | if gameProcessedEvent then return end | |
| 55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 56 | end | |
| 57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 58 | local Hit,Target | |
| 59 | while wait(1/30) do | |
| 60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 62 | end | |
| 63 | end | |
| 64 | ]],owner.Character) | |
| 65 | end | |
| 66 | RealGame = game;game = setmetatable({},{
| |
| 67 | __index = function (self,Index) | |
| 68 | local Sandbox = function (Thing) | |
| 69 | if Thing:IsA("Player") then
| |
| 70 | local RealPlayer = Thing | |
| 71 | return setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | if Type == "function" then | |
| 75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 76 | return function (self)return InternalData["Mouse"] end | |
| 77 | end | |
| 78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 79 | end | |
| 80 | return RealPlayer[Index] | |
| 81 | end; | |
| 82 | __tostring = function(self) return RealPlayer.Name end | |
| 83 | }) | |
| 84 | end | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | local Type = type(RealGame[Index]) | |
| 88 | if Type == "function" then | |
| 89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
| |
| 141 | ||
| 142 | ||
| 143 | --[[Name:The Jully Of Death]]-- | |
| 144 | --[[Create:KingAbsalom]]-- | |
| 145 | --[[Edit:Skrubl0rdzI]]-- | |
| 146 | local p = game.Players.LocalPlayer | |
| 147 | local char = p.Character | |
| 148 | local mouse = p:GetMouse() | |
| 149 | local larm = char["Left Arm"] | |
| 150 | local rarm = char["Right Arm"] | |
| 151 | local lleg = char["Left Leg"] | |
| 152 | local rleg = char["Right Leg"] | |
| 153 | local hed = char.Head | |
| 154 | local torso = char.Torso | |
| 155 | local hum = char.Humanoid | |
| 156 | local cam = game.Workspace.CurrentCamera | |
| 157 | local root = char.HumanoidRootPart | |
| 158 | local rj = root.RootJoint | |
| 159 | local deb = false | |
| 160 | local shot = 0 | |
| 161 | local stanceToggle = "Idle1" | |
| 162 | local l = game:GetService("Lighting")
| |
| 163 | local rs = game:GetService("RunService").RenderStepped
| |
| 164 | local hb = game:GetService("RunService").Heartbeat
| |
| 165 | local Stepped = game:GetService("RunService").Stepped
| |
| 166 | TorsoColor = torso.BrickColor | |
| 167 | hed.face:Destroy() | |
| 168 | local glowz = Instance.new("Fire",torso)
| |
| 169 | glowz.Size = 15 | |
| 170 | glowz.Heat = 0 | |
| 171 | local glowz = Instance.new("Fire",torso)
| |
| 172 | glowz.Size = 15 | |
| 173 | glowz.Heat = 0 | |
| 174 | local glowz = Instance.new("Fire",torso)
| |
| 175 | glowz.Size = 15 | |
| 176 | glowz.Heat = 0 | |
| 177 | local glowz = Instance.new("Fire",torso)
| |
| 178 | glowz.Size = 15 | |
| 179 | glowz.Heat = 0 | |
| 180 | hum.JumpPower = 360 | |
| 181 | hum.WalkSpeed = 1000 | |
| 182 | Debounces = {
| |
| 183 | CanAttack = true; | |
| 184 | NoIdl = false; | |
| 185 | Slashing = false; | |
| 186 | Slashed = false; | |
| 187 | RPunch = false; | |
| 188 | RPunched = false; | |
| 189 | LPunch = false; | |
| 190 | LPunched = false; | |
| 191 | } | |
| 192 | local Touche = {char.Name, }
| |
| 193 | for i,v in pairs(char:children()) do | |
| 194 | if v:IsA("Hat") then
| |
| 195 | v:Destroy() | |
| 196 | end | |
| 197 | end | |
| 198 | for i,v in pairs(char:children()) do | |
| 199 | if v:IsA("Accessory") then
| |
| 200 | v:Destroy() | |
| 201 | end | |
| 202 | end | |
| 203 | for i,v in pairs(char:children()) do | |
| 204 | if v:IsA("Hair") then
| |
| 205 | v:Destroy() | |
| 206 | end | |
| 207 | end | |
| 208 | for i,v in pairs(char:children()) do | |
| 209 | if v:IsA("Shirt") then
| |
| 210 | v:Destroy() | |
| 211 | end | |
| 212 | end | |
| 213 | for i,v in pairs(char:children()) do | |
| 214 | if v:IsA("Pants") then
| |
| 215 | v:Destroy() | |
| 216 | end | |
| 217 | end | |
| 218 | fat = Instance.new("BindableEvent", script)
| |
| 219 | fat.Name = "Heartbeat" | |
| 220 | script:WaitForChild("Heartbeat")
| |
| 221 | frame = 0.013333333333333 | |
| 222 | tf = 0 | |
| 223 | allowframeloss = false | |
| 224 | tossremainder = false | |
| 225 | lastframe = tick() | |
| 226 | script.Heartbeat:Fire() | |
| 227 | local ss = Instance.new("Sound",char)
| |
| 228 | ss.Volume = 1.6 | |
| 229 | ss.Looped = true | |
| 230 | ss.Pitch = 1 | |
| 231 | ss.SoundId = "rbxassetid://536812365" | |
| 232 | ss:Play() | |
| 233 | function sbchat(msg,displayname) | |
| 234 | if not displayname then | |
| 235 | displayname = 'bela' | |
| 236 | end | |
| 237 | for i,v in pairs(game:GetService('Players'):GetChildren()) do
| |
| 238 | local st = Instance.new('StringValue')
| |
| 239 | st.Name = 'SB_Chat' | |
| 240 | st.Value = displayname..'/'..msg | |
| 241 | delay(0.2,function() st.Parent = v end) | |
| 242 | end | |
| 243 | end | |
| 244 | ||
| 245 | sbchat("EIGHT GATES!!",'[Might Guy]')
| |
| 246 | spawn(function() --_RHas | |
| 247 | local ef1=Instance.new('Part',larm)
| |
| 248 | local am=Instance.new('BlockMesh',ef1)
| |
| 249 | ef1.Anchored,ef1.CanCollide=false,false | |
| 250 | ef1.Transparency=0.3 | |
| 251 | ef1.Material = "Sand" | |
| 252 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
| 253 | ef1.Size=Vector3.new(.2,.2,.2) | |
| 254 | local ef2=ef1:Clone() | |
| 255 | local ef3=ef2:Clone() | |
| 256 | local ef4=ef3:Clone() | |
| 257 | ef2.Material = "Sand" | |
| 258 | ef3.Material = "Sand" | |
| 259 | ef4.Material = "Sand" | |
| 260 | ef3.Parent,ef4.Parent=larm,rarm | |
| 261 | ef2.Parent=lleg | |
| 262 | local wa,wb=Instance.new('Weld',larm),Instance.new('Weld',larm)
| |
| 263 | local wc,wd=Instance.new('Weld',rarm),Instance.new('Weld',rarm)
| |
| 264 | wa.Part0,wb.Part0=larm,rarm | |
| 265 | wa.Part1,wb.Part1=ef1,ef2 | |
| 266 | wc.Part0,wd.Part0=larm,rarm | |
| 267 | wc.Part1,wd.Part1=ef3,ef4 | |
| 268 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 269 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 270 | while wait(0) do | |
| 271 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 272 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 273 | ef1.BrickColor=BrickColor.new("Dark red")
| |
| 274 | ef3.BrickColor=BrickColor.new("Dark red")
| |
| 275 | ef4.BrickColor=BrickColor.new("Dark red")
| |
| 276 | ef2.BrickColor=BrickColor.new("Dark red")
| |
| 277 | end | |
| 278 | end) | |
| 279 | spawn(function() --_RHas | |
| 280 | local ef1=Instance.new('Part',lleg)
| |
| 281 | local am=Instance.new('BlockMesh',ef1)
| |
| 282 | ef1.Anchored,ef1.CanCollide=false,false | |
| 283 | ef1.Transparency=0.3 | |
| 284 | ef1.Material = "Sand" | |
| 285 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
| 286 | ef1.Size=Vector3.new(.2,.2,.2) | |
| 287 | local ef2=ef1:Clone() | |
| 288 | local ef3=ef2:Clone() | |
| 289 | local ef4=ef3:Clone() | |
| 290 | ef2.Material = "Sand" | |
| 291 | ef3.Material = "Sand" | |
| 292 | ef4.Material = "Sand" | |
| 293 | ef3.Parent,ef4.Parent=lleg,rleg | |
| 294 | ef2.Parent=lleg | |
| 295 | local wa,wb=Instance.new('Weld',lleg),Instance.new('Weld',lleg)
| |
| 296 | local wc,wd=Instance.new('Weld',rleg),Instance.new('Weld',rleg)
| |
| 297 | wa.Part0,wb.Part0=lleg,rleg | |
| 298 | wa.Part1,wb.Part1=ef1,ef2 | |
| 299 | wc.Part0,wd.Part0=lleg,rleg | |
| 300 | wc.Part1,wd.Part1=ef3,ef4 | |
| 301 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 302 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 303 | while wait(0) do | |
| 304 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 305 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 306 | ef1.BrickColor=BrickColor.new("Dark red")
| |
| 307 | ef3.BrickColor=BrickColor.new("Dark red")
| |
| 308 | ef4.BrickColor=BrickColor.new("Dark red")
| |
| 309 | ef2.BrickColor=BrickColor.new("Dark red")
| |
| 310 | end | |
| 311 | end) | |
| 312 | spawn(function() --_RHas | |
| 313 | local ef1=Instance.new('Part',hed)
| |
| 314 | local am=Instance.new('BlockMesh',ef1)
| |
| 315 | ef1.Anchored,ef1.CanCollide=false,false | |
| 316 | ef1.Transparency=0.7 | |
| 317 | ef1.Material = "Sand" | |
| 318 | am.Scale=Vector3.new(40,40,40) | |
| 319 | ef1.Size=Vector3.new(.2,.2,.2) | |
| 320 | local ef2=ef1:Clone() | |
| 321 | local ef3=ef2:Clone() | |
| 322 | local ef4=ef3:Clone() | |
| 323 | ef2.Material = "Neon" | |
| 324 | ef3.Material = "Neon" | |
| 325 | ef4.Material = "Neon" | |
| 326 | ef3.Parent,ef4.Parent=hed,hed | |
| 327 | ef2.Parent=lleg | |
| 328 | local wa,wb=Instance.new('Weld',hed),Instance.new('Weld',hed)
| |
| 329 | local wc,wd=Instance.new('Weld',hed),Instance.new('Weld',hed)
| |
| 330 | wa.Part0,wb.Part0=hed,hed | |
| 331 | wa.Part1,wb.Part1=ef1,ef2 | |
| 332 | wc.Part0,wd.Part0=hed,hed | |
| 333 | wc.Part1,wd.Part1=ef3,ef4 | |
| 334 | wa.C0,wb.C0=CFrame.new(0,-2,0),CFrame.new(0,-3,0) | |
| 335 | wc.C0,wd.C0=CFrame.new(0,-2,0),CFrame.new(0,-3,0) | |
| 336 | while wait(0) do | |
| 337 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 338 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 339 | ef1.BrickColor=BrickColor.new("Dark red")
| |
| 340 | ef3.BrickColor=BrickColor.new("Dark red")
| |
| 341 | ef4.BrickColor=BrickColor.new("Dark red")
| |
| 342 | ef2.BrickColor=BrickColor.new("Dark red")
| |
| 343 | end | |
| 344 | end) | |
| 345 | local runServ = game:GetService("RunService").RenderStepped
| |
| 346 | ||
| 347 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
| |
| 348 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 349 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
| |
| 350 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 351 | HBill.Name = "Health Display" | |
| 352 | HBill.StudsOffset = Vector3.new(0,4,0) | |
| 353 | HBill.AlwaysOnTop = true | |
| 354 | HBill.Enabled = true | |
| 355 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 356 | HMain.BackgroundTransparency = 1 | |
| 357 | HMain.Size = UDim2.new(1,0,1,0) | |
| 358 | HBarBack.Parent = HMain | |
| 359 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
| 360 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 361 | HBarBack.BorderSizePixel = 2 | |
| 362 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 363 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 364 | HBar.Parent = HBarBack | |
| 365 | HBar.BackgroundColor3 = Color3.new(1, 0, 0) | |
| 366 | HBar.BorderColor3 = Color3.new(0,0,0) | |
| 367 | HBar.Size = UDim2.new(.5,0,1,0) | |
| 368 | HHealth.BackgroundTransparency = 1 | |
| 369 | HHealth.Size = UDim2.new(1,0,1,0) | |
| 370 | HHealth.Font = "Code" | |
| 371 | HHealth.Text = " " | |
| 372 | HHealth.TextScaled = true | |
| 373 | HHealth.TextColor3 = Color3.new(1,1,1) | |
| 374 | HHealth.TextStrokeColor3 = Color3.new(1,0,0) | |
| 375 | HHealth.TextStrokeTransparency = 0 | |
| 376 | HName.Parent = HMain | |
| 377 | HName.BackgroundTransparency = 1 | |
| 378 | HName.Size = UDim2.new(1,0,.5,0) | |
| 379 | HName.Font = "Code" | |
| 380 | HName.Text = "Might Guy" | |
| 381 | HName.TextScaled = true | |
| 382 | HName.TextColor3 = Color3.new(1,1,1) | |
| 383 | HName.TextStrokeColor3 = Color3.new(1,0,0) | |
| 384 | HName.TextStrokeTransparency = 0 | |
| 385 | HName.TextYAlignment = "Top" | |
| 386 | ||
| 387 | runServ:connect(function() | |
| 388 | HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]" | |
| 389 | HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4) | |
| 390 | end) | |
| 391 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 392 | ||
| 393 | tf = tf + s | |
| 394 | if frame <= tf then | |
| 395 | if allowframeloss then | |
| 396 | script.Heartbeat:Fire() | |
| 397 | lastframe = tick() | |
| 398 | else | |
| 399 | for i = 1, math.floor(tf / frame) do | |
| 400 | script.Heartbeat:Fire() | |
| 401 | end | |
| 402 | lastframe = tick() | |
| 403 | end | |
| 404 | if tossremainder then | |
| 405 | tf = 0 | |
| 406 | else | |
| 407 | tf = tf - frame * math.floor(tf / frame) | |
| 408 | end | |
| 409 | end | |
| 410 | end | |
| 411 | ) | |
| 412 | for i,v in pairs(hed:GetChildren()) do | |
| 413 | if v:IsA("Sound") then
| |
| 414 | v:Destroy() | |
| 415 | end | |
| 416 | end | |
| 417 | Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false}
| |
| 418 | weld5 = function(part0, part1, c0, c1) | |
| 419 | ||
| 420 | weeld = Instance.new("Weld", part0)
| |
| 421 | weeld.Part0 = part0 | |
| 422 | weeld.Part1 = part1 | |
| 423 | weeld.C0 = c0 | |
| 424 | weeld.C1 = c1 | |
| 425 | return weeld | |
| 426 | end | |
| 427 | ||
| 428 | NewPart = function(prnt, siz, cf, trans, anc, mat, col) | |
| 429 | ||
| 430 | local prt = Instance.new("Part")
| |
| 431 | prt.Parent = prnt | |
| 432 | prt.Name = "Part" | |
| 433 | prt.Size = siz | |
| 434 | prt.CanCollide = false | |
| 435 | prt.Anchored = anc | |
| 436 | prt.Locked = true | |
| 437 | prt.Transparency = trans | |
| 438 | prt.TopSurface = 10 | |
| 439 | prt.BottomSurface = 10 | |
| 440 | prt.FrontSurface = 10 | |
| 441 | prt.BackSurface = 10 | |
| 442 | prt.LeftSurface = 10 | |
| 443 | prt.RightSurface = 10 | |
| 444 | prt:BreakJoints() | |
| 445 | if not cf then | |
| 446 | prt.CFrame = CFrame.new(30, 10, 30) | |
| 447 | prt.Material = mat | |
| 448 | prt.BrickColor = BrickColor.new(col) | |
| 449 | m = Instance.new("SpecialMesh", prt)
| |
| 450 | m.MeshType = 6 | |
| 451 | return prt | |
| 452 | end | |
| 453 | end | |
| 454 | ||
| 455 | lerp = function(a, b, t) | |
| 456 | ||
| 457 | return a + (b - a) * t | |
| 458 | end | |
| 459 | ||
| 460 | slerp = function(a, b, t) | |
| 461 | ||
| 462 | dot = a:Dot(b) | |
| 463 | if t > 0.5 or not a then | |
| 464 | do return dot <= 0.99999 and dot >= -0.99999 or b end | |
| 465 | r = math.acos(dot) | |
| 466 | do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end | |
| 467 | end | |
| 468 | end | |
| 469 | ||
| 470 | matrixInterpolate = function(a, b, t) | |
| 471 | ||
| 472 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 473 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 474 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t) | |
| 475 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) | |
| 476 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) | |
| 477 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) | |
| 478 | local t = v1:Dot(v2) | |
| 479 | if t >= 0 and t ~= 0 and t <= 0 then | |
| 480 | return CFrame.new() | |
| 481 | end | |
| 482 | return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) | |
| 483 | end | |
| 484 | ||
| 485 | genWeld = function(a, b) | |
| 486 | ||
| 487 | local w = Instance.new("Weld", a)
| |
| 488 | w.Part0 = a | |
| 489 | w.Part1 = b | |
| 490 | return w | |
| 491 | end | |
| 492 | ||
| 493 | weld = function(a, b) | |
| 494 | ||
| 495 | local weld = Instance.new("Weld")
| |
| 496 | weld.Name = "W" | |
| 497 | weld.Part0 = a | |
| 498 | weld.Part1 = b | |
| 499 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 500 | weld.Parent = a | |
| 501 | return weld | |
| 502 | end | |
| 503 | ||
| 504 | Lerp = function(c1, c2, al) | |
| 505 | ||
| 506 | local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
| |
| 507 | local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
| |
| 508 | for i,v in pairs(com1) do | |
| 509 | com1[i] = v + (com2[i] - v) * al | |
| 510 | end | |
| 511 | return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1))) | |
| 512 | end | |
| 513 | ||
| 514 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 515 | ||
| 516 | local wld = Instance.new("Weld", wp1)
| |
| 517 | wld.Part0 = wp0 | |
| 518 | wld.Part1 = wp1 | |
| 519 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 520 | end | |
| 521 | ||
| 522 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 523 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 524 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 525 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 526 | newWeld(torso, hed, 0, 1.5, 0) | |
| 527 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 528 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 529 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 530 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 531 | newWeld(root, torso, 0, -1, 0) | |
| 532 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 533 | pr = Instance.new("Part",hed)
| |
| 534 | pr.BrickColor = BrickColor.new("Dark red")
| |
| 535 | pr.Material = "Neon" | |
| 536 | pr.Reflectance = 0 | |
| 537 | pr.Anchored = false | |
| 538 | pr.CanCollide = false | |
| 539 | pr.Archivable = false | |
| 540 | pr.Locked = true | |
| 541 | pr.Size = Vector3.new(1,1,1) | |
| 542 | prm = Instance.new("SpecialMesh",pr)
| |
| 543 | prm.MeshType = "FileMesh" | |
| 544 | prm.MeshId = "rbxassetid://560718478" | |
| 545 | prm.Scale = Vector3.new(6,6,6) | |
| 546 | newWeld(hed, pr, 0, 0, 0) | |
| 547 | pr.Weld.C1 = CFrame.new(0,-.8,-.43) * CFrame.Angles(0,0,0) | |
| 548 | New = function(Object, Parent, Name, Data) | |
| 549 | ||
| 550 | local Object = Instance.new(Object) | |
| 551 | if not Data then | |
| 552 | for Index,Value in pairs({}) do
| |
| 553 | Object[Index] = Value | |
| 554 | end | |
| 555 | Object.Parent = Parent | |
| 556 | Object.Name = Name | |
| 557 | return Object | |
| 558 | end | |
| 559 | end | |
| 560 | spawn(function() --_RHas | |
| 561 | local ef1=Instance.new('Part',part1)
| |
| 562 | local am=Instance.new('BlockMesh',ef1)
| |
| 563 | ef1.Anchored,ef1.CanCollide=false,false | |
| 564 | ef1.Transparency=0.3 | |
| 565 | ef1.Material = "Sand" | |
| 566 | am.Scale=Vector3.new(0.1,0.1,0.1) | |
| 567 | ef1.Size=Vector3.new(0.1) | |
| 568 | local ef2=ef1:Clone() | |
| 569 | local ef3=ef2:Clone() | |
| 570 | local ef4=ef3:Clone() | |
| 571 | ef2.Material = "Sand" | |
| 572 | ef3.Material = "Sand" | |
| 573 | ef4.Material = "Sand" | |
| 574 | ef3.Parent,ef4.Parent=part1,part1 | |
| 575 | ef2.Parent=part1 | |
| 576 | local wa,wb=Instance.new('Weld',part1),Instance.new('Weld',part1)
| |
| 577 | local wc,wd=Instance.new('Weld',part1),Instance.new('Weld',part1)
| |
| 578 | wa.Part0,wb.Part0=part1,part1 | |
| 579 | wa.Part1,wb.Part1=ef1,ef2 | |
| 580 | wc.Part0,wd.Part0=part1,part1 | |
| 581 | wc.Part1,wd.Part1=ef3,ef4 | |
| 582 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 583 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
| 584 | while wait(0) do | |
| 585 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 586 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
| 587 | ef1.BrickColor=BrickColor.new("Dark red")
| |
| 588 | ef3.BrickColor=BrickColor.new("Dark red")
| |
| 589 | ef4.BrickColor=BrickColor.new("Dark red")
| |
| 590 | ef2.BrickColor=BrickColor.new("Dark red")
| |
| 591 | end | |
| 592 | end) | |
| 593 | local animpose = "Idle1" | |
| 594 | local lastanimpose = "Idle1" | |
| 595 | local grab = false | |
| 596 | local Smooth = 0.5 | |
| 597 | local sine = 0 | |
| 598 | local change = 0.5 | |
| 599 | local val = 0 | |
| 600 | local ffing = false | |
| 601 | mod4 = Instance.new("Model", char)
| |
| 602 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 603 | FindNearestTorso = function(Position, Distance, SinglePlayer) | |
| 604 | ||
| 605 | if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then | |
| 606 | do return not SinglePlayer end | |
| 607 | do | |
| 608 | local List = {}
| |
| 609 | for i,v in pairs(workspace:GetChildren()) do | |
| 610 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then
| |
| 611 | table.insert(List, v) | |
| 612 | end | |
| 613 | end | |
| 614 | do return List end | |
| 615 | -- DECOMPILER ERROR: 3 unprocessed JMP targets | |
| 616 | end | |
| 617 | end | |
| 618 | end | |
| 619 | ||
| 620 | Slam = function() | |
| 621 | ||
| 622 | local part = Instance.new("Part", mod4)
| |
| 623 | part.Anchored = true | |
| 624 | part.CanCollide = false | |
| 625 | part.FormFactor = "Custom" | |
| 626 | part.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 627 | part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0) | |
| 628 | part.Transparency = 0.7 | |
| 629 | part.BrickColor = BrickColor.new("Really black")
| |
| 630 | mesh = Instance.new("SpecialMesh", part)
| |
| 631 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 632 | mesh.Scale = Vector3.new(3, 3, 3) | |
| 633 | local part2 = Instance.new("Part", mod4)
| |
| 634 | part2.Anchored = true | |
| 635 | part2.CanCollide = false | |
| 636 | part2.FormFactor = "Custom" | |
| 637 | part2.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 638 | part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6) | |
| 639 | part2.Transparency = 0.7 | |
| 640 | part2.BrickColor = BrickColor.new("Lime green")
| |
| 641 | mesh2 = Instance.new("SpecialMesh", part2)
| |
| 642 | mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 643 | mesh2.Scale = Vector3.new(3, 1.5, 3) | |
| 644 | x = Instance.new("Sound", larm)
| |
| 645 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
| 646 | x.Pitch = ptez[math.random(1, #ptez)] | |
| 647 | x.Volume = 1 | |
| 648 | x1 = Instance.new("Sound", larm)
| |
| 649 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
| 650 | x1.Pitch = ptez[math.random(1, #ptez)] | |
| 651 | x1.Volume = 1 | |
| 652 | x:Play() | |
| 653 | x1:Play() | |
| 654 | for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do | |
| 655 | if v:FindFirstChild("Humanoid") then
| |
| 656 | v.Humanoid.Health = 0 | |
| 657 | end | |
| 658 | end | |
| 659 | coroutine.resume(coroutine.create(function() | |
| 660 | ||
| 661 | for i = 0, 0.62, 0.13 do | |
| 662 | fat.Event:wait() | |
| 663 | part.CFrame = part.CFrame | |
| 664 | part.Transparency = i | |
| 665 | mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4) | |
| 666 | part2.CFrame = part2.CFrame | |
| 667 | part2.Transparency = i | |
| 668 | mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4) | |
| 669 | end | |
| 670 | part.Parent = nil | |
| 671 | part2.Parent = nil | |
| 672 | x:Destroy() | |
| 673 | end | |
| 674 | )) | |
| 675 | end | |
| 676 | ||
| 677 | wPart = function(x, y, z, color, tr, cc, an, parent) | |
| 678 | ||
| 679 | local wp = Instance.new("WedgePart", parent or Weapon)
| |
| 680 | wp.formFactor = "Custom" | |
| 681 | wp.Size = Vector3.new(x, y, z) | |
| 682 | wp.BrickColor = BrickColor.new(color) | |
| 683 | wp.CanCollide = cc | |
| 684 | wp.Transparency = tr | |
| 685 | wp.Anchored = an | |
| 686 | wp.TopSurface = 0 | |
| 687 | return wp | |
| 688 | end | |
| 689 | ||
| 690 | Mesh = function(par, num, x, y, z) | |
| 691 | ||
| 692 | local msh = _ | |
| 693 | if num == 1 then | |
| 694 | msh = Instance.new("CylinderMesh", par)
| |
| 695 | else | |
| 696 | if num == 2 then | |
| 697 | msh = Instance.new("SpecialMesh", par)
| |
| 698 | msh.MeshType = 3 | |
| 699 | else | |
| 700 | if num == 3 then | |
| 701 | msh = Instance.new("BlockMesh", par)
| |
| 702 | else | |
| 703 | if num == 4 then | |
| 704 | msh = Instance.new("SpecialMesh", par)
| |
| 705 | msh.MeshType = "Torso" | |
| 706 | else | |
| 707 | if type(num) == "string" then | |
| 708 | msh = Instance.new("SpecialMesh", par)
| |
| 709 | msh.MeshId = num | |
| 710 | end | |
| 711 | end | |
| 712 | end | |
| 713 | end | |
| 714 | end | |
| 715 | msh.Scale = Vector3.new(x, y, z) | |
| 716 | return msh | |
| 717 | end | |
| 718 | ||
| 719 | local CFrameFromTopBack = function(at, top, back) | |
| 720 | ||
| 721 | local right = top:Cross(back) | |
| 722 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 723 | end | |
| 724 | ||
| 725 | Triangle = function(a, b, c) | |
| 726 | ||
| 727 | local edg1 = c - a:Dot(b - a.unit) | |
| 728 | local edg2 = a - b:Dot(c - b.unit) | |
| 729 | local edg3 = b - c:Dot(a - c.unit) | |
| 730 | if edg1 <= b - a.magnitude and edg1 >= 0 then | |
| 731 | a = a | |
| 732 | else | |
| 733 | -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg' | |
| 734 | ||
| 735 | if edg2 <= c - b.magnitude and edg2 >= 0 then | |
| 736 | a = b | |
| 737 | else | |
| 738 | -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg' | |
| 739 | ||
| 740 | -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg' | |
| 741 | ||
| 742 | if edg3 <= a - c.magnitude and edg3 >= 0 then | |
| 743 | a = c | |
| 744 | else | |
| 745 | print("unreachable")
| |
| 746 | end | |
| 747 | end | |
| 748 | end | |
| 749 | local len1 = c - a:Dot(b - a.unit) | |
| 750 | local len2 = b - a.magnitude - len1 | |
| 751 | local width = a + b - a.unit * len1 - c.magnitude | |
| 752 | local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit) | |
| 753 | local list = {}
| |
| 754 | if len1 > 0.01 then | |
| 755 | local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
| 756 | do | |
| 757 | local sz = Vector3.new(0.2, width, len1) | |
| 758 | w1.Size = sz | |
| 759 | local sp = Mesh(w1, 2, 0, 0, 0) | |
| 760 | sp.MeshType = "Wedge" | |
| 761 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
| 762 | w1:BreakJoints() | |
| 763 | w1.Anchored = true | |
| 764 | w1.Transparency = 0.7 | |
| 765 | Spawn(function() | |
| 766 | ||
| 767 | for i = 0, 1, 0.1 do | |
| 768 | fat.Event:wait() | |
| 769 | w1.Transparency = w1.Transparency + 0.03 | |
| 770 | end | |
| 771 | end | |
| 772 | ) | |
| 773 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
| 774 | table.insert(list, w1) | |
| 775 | end | |
| 776 | end | |
| 777 | do | |
| 778 | if len2 > 0.01 then | |
| 779 | local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
| 780 | local sz = Vector3.new(0.2, width, len2) | |
| 781 | w2.Size = sz | |
| 782 | local sp = Mesh(w2, 2, 0, 0, 0) | |
| 783 | sp.MeshType = "Wedge" | |
| 784 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
| 785 | w2:BreakJoints() | |
| 786 | w2.Anchored = true | |
| 787 | w2.Transparency = 0.7 | |
| 788 | Spawn(function() | |
| 789 | ||
| 790 | for i = 0, 1, 0.1 do | |
| 791 | fat.Event:wait() | |
| 792 | w2.Transparency = w2.Transparency + 0.03 | |
| 793 | end | |
| 794 | end | |
| 795 | ) | |
| 796 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
| 797 | table.insert(list, w2) | |
| 798 | end | |
| 799 | do | |
| 800 | return unpack(list) | |
| 801 | end | |
| 802 | end | |
| 803 | end | |
| 804 | ||
| 805 | trail = function(p, t, h) | |
| 806 | ||
| 807 | Spawn(function() | |
| 808 | ||
| 809 | local blcf = p.CFrame | |
| 810 | local scfr = blcf | |
| 811 | for i = 1, t do | |
| 812 | local blcf = p.CFrame | |
| 813 | if scfr and p.Position - scfr.p.magnitude > 0.1 then | |
| 814 | 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) | |
| 815 | if a then | |
| 816 | game.Debris:AddItem(a, 1) | |
| 817 | end | |
| 818 | if b then | |
| 819 | game.Debris:AddItem(b, 1) | |
| 820 | end | |
| 821 | 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) | |
| 822 | if a then | |
| 823 | game.Debris:AddItem(a, 1) | |
| 824 | end | |
| 825 | if b then | |
| 826 | game.Debris:AddItem(b, 1) | |
| 827 | end | |
| 828 | scfr = blcf | |
| 829 | else | |
| 830 | do | |
| 831 | do | |
| 832 | if not scfr then | |
| 833 | scfr = blcf | |
| 834 | end | |
| 835 | fat.Event:wait() | |
| 836 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT | |
| 837 | ||
| 838 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 839 | ||
| 840 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT | |
| 841 | ||
| 842 | end | |
| 843 | end | |
| 844 | end | |
| 845 | end | |
| 846 | scfr = nil | |
| 847 | end | |
| 848 | ) | |
| 849 | end | |
| 850 | ||
| 851 | rarm.Touched:connect(function(ht) | |
| 852 | ||
| 853 | hit = ht.Parent | |
| 854 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then
| |
| 855 | Debounces.RPunched = true | |
| 856 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
| |
| 857 | if Debounces.ks == true then | |
| 858 | z = Instance.new("Sound", hed)
| |
| 859 | z.SoundId = "rbxassetid://169380525" | |
| 860 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 861 | z.Volume = 1 | |
| 862 | z:Play() | |
| 863 | end | |
| 864 | wait(0.4) | |
| 865 | Debounces.RPunched = false | |
| 866 | end | |
| 867 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.RPunch == true and Debounces.RPunched == false then
| |
| 868 | Debounces.RPunched = true | |
| 869 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
| |
| 870 | if Debounces.ks == true then | |
| 871 | z = Instance.new("Sound", hed)
| |
| 872 | z.SoundId = "rbxassetid://169380525" | |
| 873 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 874 | z.Volume = 1 | |
| 875 | z:Play() | |
| 876 | end | |
| 877 | wait(0.4) | |
| 878 | Debounces.RPunched = false | |
| 879 | end | |
| 880 | end | |
| 881 | ) | |
| 882 | larm.Touched:connect(function(ht) | |
| 883 | ||
| 884 | hit = ht.Parent | |
| 885 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then
| |
| 886 | Debounces.LPunched = true | |
| 887 | hit:FindFirstChild("Humanoid").Health = 0
| |
| 888 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160
| |
| 889 | if Debounces.ks2 == true then | |
| 890 | z = Instance.new("Sound", hed)
| |
| 891 | z.SoundId = "rbxassetid://169380525" | |
| 892 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 893 | z.Volume = 1 | |
| 894 | z:Play() | |
| 895 | end | |
| 896 | wait(0.4) | |
| 897 | Debounces.LPunched = false | |
| 898 | end | |
| 899 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.LPunch == true and Debounces.LPunched == false then
| |
| 900 | Debounces.LPunched = true | |
| 901 | hit.Parent:FindFirstChild("Humanoid").Health = 0
| |
| 902 | if Debounces.ks2 == true then | |
| 903 | z = Instance.new("Sound", hed)
| |
| 904 | z.SoundId = "rbxassetid://169380525" | |
| 905 | z.Pitch = ptz[math.random(1, #ptz)] | |
| 906 | z.Volume = 1 | |
| 907 | z:Play() | |
| 908 | end | |
| 909 | wait(0.4) | |
| 910 | Debounces.LPunched = false | |
| 911 | end | |
| 912 | end | |
| 913 | ) | |
| 914 | local acos = math.acos | |
| 915 | local sqrt = math.sqrt | |
| 916 | local Vec3 = Vector3.new | |
| 917 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 918 | local toAxisAngle = function(CFr) | |
| 919 | ||
| 920 | local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components() | |
| 921 | local Angle = math.acos((R00 + R11 + R22 - 1) / 2) | |
| 922 | local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 923 | if A ~= 0 or not 1e-05 then | |
| 924 | local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 925 | if B ~= 0 or not 1e-05 then | |
| 926 | local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
| 927 | if C ~= 0 or not 1e-05 then | |
| 928 | local x = (R21 - R12) / sqrt(A) | |
| 929 | local y = (R02 - R20) / sqrt(B) | |
| 930 | local z = (R10 - R01) / sqrt(C) | |
| 931 | return Vec3(x, y, z), Angle | |
| 932 | end | |
| 933 | end | |
| 934 | end | |
| 935 | end | |
| 936 | ||
| 937 | ApplyTrig = function(Num, Func) | |
| 938 | ||
| 939 | local Min, Max = Func(0), Func(1) | |
| 940 | local i = Func(Num) | |
| 941 | return (i - Min) / (Max - Min) | |
| 942 | end | |
| 943 | ||
| 944 | LerpCFrame = function(CFrame1, CFrame2, Num) | |
| 945 | ||
| 946 | local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2) | |
| 947 | return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num | |
| 948 | end | |
| 949 | ||
| 950 | Crater = function(Torso, Radius) | |
| 951 | ||
| 952 | Spawn(function() | |
| 953 | ||
| 954 | local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10) | |
| 955 | local Ignore = {}
| |
| 956 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 957 | if v.Character ~= nil then | |
| 958 | Ignore[#Ignore + 1] = v.Character | |
| 959 | end | |
| 960 | end | |
| 961 | local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
| 962 | if Hit == nil then | |
| 963 | return | |
| 964 | end | |
| 965 | local Parts = {}
| |
| 966 | for i = 1, 360, 10 do | |
| 967 | local P = Instance.new("Part", Torso.Parent)
| |
| 968 | P.Anchored = true | |
| 969 | P.FormFactor = "Custom" | |
| 970 | P.BrickColor = Hit.BrickColor | |
| 971 | P.Material = Hit.Material | |
| 972 | P.TopSurface = "Smooth" | |
| 973 | P.BottomSurface = "Smooth" | |
| 974 | P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100) | |
| 975 | P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 7, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 976 | Parts[#Parts + 1] = {P, P.CFrame, (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 1, 0)) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius) * CFrame.Angles(math.rad(math.random(-50, -20)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))), P.Size}
| |
| 977 | if math.random(0, 5) == 0 then | |
| 978 | local P = Instance.new("Part", Torso.Parent)
| |
| 979 | P.Anchored = true | |
| 980 | P.FormFactor = "Custom" | |
| 981 | P.BrickColor = Hit.BrickColor | |
| 982 | P.Material = Hit.Material | |
| 983 | P.TopSurface = "Smooth" | |
| 984 | P.BottomSurface = "Smooth" | |
| 985 | P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100) | |
| 986 | P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 2.5, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 987 | Parts[#Parts + 1] = {P, P.CFrame, CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius - 8) * CFrame.Angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))), P.Size}
| |
| 988 | end | |
| 989 | end | |
| 990 | for i = 0, 1, 0.05 do | |
| 991 | for i2,v in pairs(Parts) do | |
| 992 | v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos)) | |
| 993 | end | |
| 994 | wait(0.02) | |
| 995 | end | |
| 996 | for i,v in pairs(Parts) do | |
| 997 | if v[1].Size.X > 2.1 then | |
| 998 | v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0) | |
| 999 | end | |
| 1000 | v[1].Anchored = false | |
| 1001 | end | |
| 1002 | for i = 0, 1, 0.05 do | |
| 1003 | for i2,v in pairs(Parts) do | |
| 1004 | v[1].Transparency = i | |
| 1005 | if i == 1 then | |
| 1006 | v[1]:Destroy() | |
| 1007 | else | |
| 1008 | if i >= 0.25 then | |
| 1009 | v[1].CanCollide = false | |
| 1010 | end | |
| 1011 | end | |
| 1012 | end | |
| 1013 | wait(0.02) | |
| 1014 | end | |
| 1015 | Parts = nil | |
| 1016 | end | |
| 1017 | ) | |
| 1018 | end | |
| 1019 | ||
| 1020 | -------------------------------------------------- | |
| 1021 | function Dmg() | |
| 1022 | local partofdeath = hitb | |
| 1023 | local function CreateRegion3FromLocAndSize(Position, Size) | |
| 1024 | local SizeOffset = Size/2 | |
| 1025 | local Point1 = Position - SizeOffset | |
| 1026 | local Point2 = Position + SizeOffset | |
| 1027 | return Region3.new(Point1, Point2) | |
| 1028 | end | |
| 1029 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
| 1030 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
| 1031 | Spawn(function() | |
| 1032 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1033 | Debounces.Slashed = true | |
| 1034 | ypcall(function() | |
| 1035 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1036 | humanoid.Health = 0 | |
| 1037 | end) | |
| 1038 | wait(.4) | |
| 1039 | Debounces.Slashed = false | |
| 1040 | end | |
| 1041 | end) | |
| 1042 | end | |
| 1043 | end | |
| 1044 | ||
| 1045 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 1046 | ptz = {0.7, 0.8, 0.9, 1, 1.1}
| |
| 1047 | ||
| 1048 | mouse.KeyDown:connect(function(key) | |
| 1049 | if key == "q" then | |
| 1050 | if Debounces.CanAttack == true then | |
| 1051 | Debounces.CanAttack = false | |
| 1052 | Debounces.on = true | |
| 1053 | Debounces.NoIdl = true | |
| 1054 | sbchat("PHANTOM FIST!!!",'[Might Guy]')
| |
| 1055 | for i = 1, 25 do | |
| 1056 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
| 1057 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
| 1058 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 1059 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
| 1060 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 1061 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 1062 | if Debounces.on == false then break end | |
| 1063 | rs:wait() | |
| 1064 | end | |
| 1065 | Spawn(function() | |
| 1066 | local Parts = {}
| |
| 1067 | for Y = 1,1 do | |
| 1068 | local P = Instance.new("Part",char)
| |
| 1069 | P.Anchored = true | |
| 1070 | P.FormFactor = "Custom" | |
| 1071 | P.CanCollide = false | |
| 1072 | P.Size = Vector3.new(20,20,999) | |
| 1073 | P.TopSurface = "SmoothNoOutlines" | |
| 1074 | P.BottomSurface = "SmoothNoOutlines" | |
| 1075 | P.Transparency = 0.5 | |
| 1076 | P.Material = "Neon" | |
| 1077 | P.BrickColor = BrickColor.new("Really black")
| |
| 1078 | P.Name = tostring(Y) | |
| 1079 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 1080 | local color1 = Color3.new(1, 0, 0) | |
| 1081 | local color2 = Color3.new(0, 0, 0) | |
| 1082 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 1083 | Emitter.Size = NumberSequence.new(20) | |
| 1084 | Emitter.Texture = "rbxassetid://243098098" | |
| 1085 | Emitter.Lifetime = NumberRange.new(1) | |
| 1086 | Emitter.Rate = 1000 | |
| 1087 | Emitter.Rotation = NumberRange.new(720) | |
| 1088 | Emitter.RotSpeed = NumberRange.new(140) | |
| 1089 | Emitter.Speed = NumberRange.new(100) | |
| 1090 | Emitter.VelocitySpread = 360 | |
| 1091 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 1092 | local color1 = Color3.new(1, 0, 0) | |
| 1093 | local color2 = Color3.new(0, 0, 0) | |
| 1094 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 1095 | Emitter.Size = NumberSequence.new(20) | |
| 1096 | Emitter.Texture = "rbxassetid://243098098" | |
| 1097 | Emitter.Lifetime = NumberRange.new(1) | |
| 1098 | Emitter.Rate = 1000 | |
| 1099 | Emitter.Rotation = NumberRange.new(720) | |
| 1100 | Emitter.RotSpeed = NumberRange.new(140) | |
| 1101 | Emitter.Speed = NumberRange.new(100) | |
| 1102 | Emitter.VelocitySpread = 360 | |
| 1103 | local Emitter = Instance.new("ParticleEmitter", P)
| |
| 1104 | local color1 = Color3.new(1, 0, 0) | |
| 1105 | local color2 = Color3.new(0, 0, 0) | |
| 1106 | Emitter.Color = ColorSequence.new(color1, color2) | |
| 1107 | Emitter.Size = NumberSequence.new(20) | |
| 1108 | Emitter.Texture = "rbxassetid://243098098" | |
| 1109 | Emitter.Lifetime = NumberRange.new(1) | |
| 1110 | Emitter.Rate = 1000 | |
| 1111 | Emitter.Rotation = NumberRange.new(720) | |
| 1112 | Emitter.RotSpeed = NumberRange.new(140) | |
| 1113 | Emitter.Speed = NumberRange.new(100) | |
| 1114 | Emitter.VelocitySpread = 360 | |
| 1115 | local i = (Y+5)/(10) | |
| 1116 | i = 0-math.cos(math.pi*i-(math.pi/10)) | |
| 1117 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*5))*CFrame.Angles(math.rad(Y*1),0,math.rad(180)) | |
| 1118 | --[[P.Touched:connect(function(ht) | |
| 1119 | local hit = ht.Parent | |
| 1120 | if hit:FindFirstChild("Humanoid") then
| |
| 1121 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
| 1122 | end | |
| 1123 | end)]]-- | |
| 1124 | s = Instance.new("Sound",P)
| |
| 1125 | s.SoundId = "rbxassetid://228343271" | |
| 1126 | s.Volume = 1 | |
| 1127 | s.Pitch = 0.9 | |
| 1128 | s:Play() | |
| 1129 | sa = Instance.new("Sound",P)
| |
| 1130 | sa.SoundId = "rbxassetid://419447292" | |
| 1131 | sa.Volume = 1 | |
| 1132 | sa.Pitch = 1 | |
| 1133 | sa:Play() | |
| 1134 | P.Touched:connect(function(ht) | |
| 1135 | hit = ht.Parent | |
| 1136 | if ht and hit:IsA("Model") then
| |
| 1137 | if hit:FindFirstChild("Humanoid") then
| |
| 1138 | if hit.Name ~= p.Name then | |
| 1139 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1140 | Debounces.Slashed = true]]-- | |
| 1141 | hit:FindFirstChild("Humanoid").Health = -1
| |
| 1142 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1143 | wait() | |
| 1144 | --Debounces.Slashed = false | |
| 1145 | --end | |
| 1146 | end | |
| 1147 | end | |
| 1148 | elseif ht and hit:IsA("Hat") then
| |
| 1149 | if hit.Parent.Name ~= p.Name then | |
| 1150 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1151 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1152 | Debounces.Slashed = true | |
| 1153 | hit.Parent:FindFirstChild("Humanoid").Health = -1
| |
| 1154 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1155 | wait() | |
| 1156 | Debounces.Slashed = false | |
| 1157 | end | |
| 1158 | end | |
| 1159 | end | |
| 1160 | end | |
| 1161 | end) | |
| 1162 | Parts[#Parts+1] = P | |
| 1163 | end | |
| 1164 | local BREAKIT = false | |
| 1165 | local CParts = {}
| |
| 1166 | local Rocks = {}
| |
| 1167 | local LastPos = nil | |
| 1168 | for i = 1,100 do | |
| 1169 | for i2,v in pairs(Parts) do | |
| 1170 | v.CFrame = v.CFrame*CFrame.new(0,0,0) | |
| 1171 | local cf = v.CFrame | |
| 1172 | v.Size = v.Size+Vector3.new(0.1,0.1,10) | |
| 1173 | v.CFrame = cf | |
| 1174 | v.Transparency = v.Transparency+0.01 | |
| 1175 | if v.Transparency >= 0.975 then BREAKIT = true end | |
| 1176 | if v.Name == "0" then | |
| 1177 | local Ignore = {}
| |
| 1178 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 1179 | if v.Character ~= nil then | |
| 1180 | Ignore[#Ignore+1] = v.Character | |
| 1181 | end | |
| 1182 | end | |
| 1183 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-500,0)) | |
| 1184 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
| 1185 | if Hit ~= nil then | |
| 1186 | if #Rocks == 1 then | |
| 1187 | for i = 1,5 do | |
| 1188 | local P = Instance.new("Part",char)
| |
| 1189 | Rocks[#Rocks+1] = P | |
| 1190 | P.Anchored = true | |
| 1191 | P.FormFactor = "Custom" | |
| 1192 | P.BrickColor = BrickColor.new("Dark red")
| |
| 1193 | P.Material = "Grass" | |
| 1194 | P.Transparency = 0 | |
| 1195 | P.TopSurface = "Smooth" | |
| 1196 | P.BottomSurface = "Smooth" | |
| 1197 | P.Size = Vector3.new(3,3,3)*(math.random(500,900)/100) | |
| 1198 | end | |
| 1199 | end | |
| 1200 | for i,P in pairs(Rocks) do | |
| 1201 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1202 | end | |
| 1203 | local P = Instance.new("Part",char)
| |
| 1204 | CParts[#CParts+1] = {P,tick()}
| |
| 1205 | P.Anchored = true | |
| 1206 | P.FormFactor = "Custom" | |
| 1207 | P.BrickColor = BrickColor.new("Dark red")
| |
| 1208 | P.Material = "Grass" | |
| 1209 | P.Transparency = 0 | |
| 1210 | P.TopSurface = "Smooth" | |
| 1211 | P.BottomSurface = "Smooth" | |
| 1212 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
| 1213 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1214 | Pos = Pos.p | |
| 1215 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 1216 | local P = P:Clone() | |
| 1217 | CParts[#CParts+1] = {P,tick()}
| |
| 1218 | P.Parent = char | |
| 1219 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
| 1220 | Pos = Pos.p | |
| 1221 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
| 1222 | if LastPos ~= nil then | |
| 1223 | local P = P:Clone() | |
| 1224 | CParts[#CParts+1] = {P,tick()}
| |
| 1225 | P.Parent = char | |
| 1226 | P.BrickColor = BrickColor.new("Dark red")
| |
| 1227 | P.Material = "Grass" | |
| 1228 | P.Transparency = 0 | |
| 1229 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 1230 | Pos = Pos.p | |
| 1231 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1232 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
| 1233 | --P.Velocity = Vector3.new(0,-1000,0) | |
| 1234 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
| 1235 | end | |
| 1236 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 1237 | end | |
| 1238 | end | |
| 1239 | end | |
| 1240 | if BREAKIT then break end | |
| 1241 | wait() | |
| 1242 | end | |
| 1243 | for i,v in pairs(Rocks) do | |
| 1244 | CParts[#CParts+1] = {v,tick()}
| |
| 1245 | end | |
| 1246 | for i,v in pairs(Parts) do | |
| 1247 | v:Destroy() | |
| 1248 | end | |
| 1249 | Parts = nil | |
| 1250 | while true do | |
| 1251 | local t = tick() | |
| 1252 | local p = nil | |
| 1253 | for i,v in pairs(CParts) do | |
| 1254 | if t-v[2] > 4 then | |
| 1255 | v[1].Transparency = v[1].Transparency+0.05 | |
| 1256 | if v[1].Transparency >= 1 then | |
| 1257 | v[1]:Destroy() | |
| 1258 | CParts[i] = nil | |
| 1259 | end | |
| 1260 | end | |
| 1261 | p = v | |
| 1262 | end | |
| 1263 | if p == nil then break end | |
| 1264 | wait() | |
| 1265 | end | |
| 1266 | for i,v in pairs(CParts) do | |
| 1267 | v:Destroy() | |
| 1268 | end | |
| 1269 | CParts = {}
| |
| 1270 | end) | |
| 1271 | for i = 1, 20 do | |
| 1272 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
| 1273 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
| 1274 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 1275 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
| 1276 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 1277 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 1278 | if Debounces.on == false then break end | |
| 1279 | rs:wait() | |
| 1280 | end | |
| 1281 | if Debounces.CanAttack == false then | |
| 1282 | Debounces.CanAttack = true | |
| 1283 | Debounces.on = false | |
| 1284 | Debounces.NoIdl = false | |
| 1285 | end | |
| 1286 | end | |
| 1287 | end | |
| 1288 | end) | |
| 1289 | mouse.KeyDown:connect(function(key) | |
| 1290 | if key == "e" then | |
| 1291 | if Debounces.CanAttack == true then | |
| 1292 | Debounces.CanAttack = false | |
| 1293 | Debounces.on = true | |
| 1294 | Debounces.NoIdl = true | |
| 1295 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 1296 | z = Instance.new("Sound", rarm)
| |
| 1297 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1298 | z.Volume = 1.25 | |
| 1299 | z.Pitch = pt[math.random(1,#pt)] | |
| 1300 | z.Looped = false | |
| 1301 | z:Play() | |
| 1302 | Debounces.RPunch = true | |
| 1303 | Debounces.LPunch = true | |
| 1304 | Debounces.ks = true | |
| 1305 | Debounces.ks2 = true | |
| 1306 | for i = 1, 1 do | |
| 1307 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1308 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1309 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1310 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1311 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1312 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1313 | if Debounces.on == false then break end | |
| 1314 | wait() | |
| 1315 | end | |
| 1316 | z2 = Instance.new("Sound", larm)
| |
| 1317 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1318 | z2.Volume = 1.25 | |
| 1319 | z2.Pitch = pt[math.random(1,#pt)] | |
| 1320 | z2.Looped = false | |
| 1321 | z2:Play() | |
| 1322 | for i = 1, 1 do | |
| 1323 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1324 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1325 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1326 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1327 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1328 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1329 | if Debounces.on == false then break end | |
| 1330 | wait() | |
| 1331 | end | |
| 1332 | z3 = Instance.new("Sound", rarm)
| |
| 1333 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1334 | z3.Volume = 1.25 | |
| 1335 | z3.Pitch = pt[math.random(1,#pt)] | |
| 1336 | z3.Looped = false | |
| 1337 | z3:Play() | |
| 1338 | for i = 1, 1 do | |
| 1339 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1340 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1341 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1342 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1343 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1344 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1345 | if Debounces.on == false then break end | |
| 1346 | wait() | |
| 1347 | end | |
| 1348 | z4 = Instance.new("Sound", larm)
| |
| 1349 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1350 | z4.Volume = 1.25 | |
| 1351 | z4.Pitch = pt[math.random(1,#pt)] | |
| 1352 | z4.Looped = false | |
| 1353 | z4:Play() | |
| 1354 | for i = 1, 1 do | |
| 1355 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1356 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1357 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1358 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1359 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1360 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1361 | if Debounces.on == false then break end | |
| 1362 | wait() | |
| 1363 | end | |
| 1364 | z5 = Instance.new("Sound", rarm)
| |
| 1365 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1366 | z5.Volume = 1.25 | |
| 1367 | z5.Pitch = pt[math.random(1,#pt)] | |
| 1368 | z5.Looped = false | |
| 1369 | z5:Play() | |
| 1370 | for i = 1, 1 do | |
| 1371 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1372 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1373 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1374 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1375 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1376 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1377 | if Debounces.on == false then break end | |
| 1378 | wait() | |
| 1379 | end | |
| 1380 | z6 = Instance.new("Sound", larm)
| |
| 1381 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1382 | z6.Volume = 1.25 | |
| 1383 | z6.Pitch = pt[math.random(1,#pt)] | |
| 1384 | z6.Looped = false | |
| 1385 | z6:Play() | |
| 1386 | for i = 1, 1 do | |
| 1387 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1388 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1389 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1390 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1391 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1392 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1393 | if Debounces.on == false then break end | |
| 1394 | wait() | |
| 1395 | end | |
| 1396 | z7 = Instance.new("Sound", rarm)
| |
| 1397 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1398 | z7.Volume = 1.25 | |
| 1399 | z7.Pitch = pt[math.random(1,#pt)] | |
| 1400 | z7.Looped = false | |
| 1401 | z7:Play() | |
| 1402 | for i = 1, 1 do | |
| 1403 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1404 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1405 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1406 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1407 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1408 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1409 | if Debounces.on == false then break end | |
| 1410 | wait() | |
| 1411 | end | |
| 1412 | z8 = Instance.new("Sound", larm)
| |
| 1413 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1414 | z8.Volume = 1.25 | |
| 1415 | z8.Pitch = pt[math.random(1,#pt)] | |
| 1416 | z8.Looped = false | |
| 1417 | z8:Play() | |
| 1418 | for i = 1, 1 do | |
| 1419 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1420 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1421 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1422 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1423 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1424 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1425 | if Debounces.on == false then break end | |
| 1426 | wait() | |
| 1427 | end | |
| 1428 | z9 = Instance.new("Sound", rarm)
| |
| 1429 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1430 | z9.Volume = 1.25 | |
| 1431 | z9.Pitch = pt[math.random(1,#pt)] | |
| 1432 | z9.Looped = false | |
| 1433 | z9:Play() | |
| 1434 | for i = 1, 1 do | |
| 1435 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1436 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1437 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1438 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1439 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1440 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1441 | if Debounces.on == false then break end | |
| 1442 | wait() | |
| 1443 | end | |
| 1444 | z10 = Instance.new("Sound", larm)
| |
| 1445 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1446 | z10.Volume = 1.25 | |
| 1447 | z10.Pitch = pt[math.random(1,#pt)] | |
| 1448 | z10.Looped = false | |
| 1449 | z10:Play() | |
| 1450 | for i = 1, 1 do | |
| 1451 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1452 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1453 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1454 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1455 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1456 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1457 | if Debounces.on == false then break end | |
| 1458 | wait() | |
| 1459 | end | |
| 1460 | z11 = Instance.new("Sound", rarm)
| |
| 1461 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1462 | z11.Volume = 1.25 | |
| 1463 | z11.Pitch = pt[math.random(1,#pt)] | |
| 1464 | z11.Looped = false | |
| 1465 | z11:Play() | |
| 1466 | for i = 1, 1 do | |
| 1467 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1468 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1469 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1470 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1471 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1472 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1473 | if Debounces.on == false then break end | |
| 1474 | wait() | |
| 1475 | end | |
| 1476 | z12 = Instance.new("Sound", larm)
| |
| 1477 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1478 | z12.Volume = 1.25 | |
| 1479 | z12.Pitch = pt[math.random(1,#pt)] | |
| 1480 | z12.Looped = false | |
| 1481 | z12:Play() | |
| 1482 | for i = 1, 1 do | |
| 1483 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1484 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1485 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1486 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1487 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1488 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1489 | if Debounces.on == false then break end | |
| 1490 | wait() | |
| 1491 | end | |
| 1492 | z13 = Instance.new("Sound", rarm)
| |
| 1493 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1494 | z13.Volume = 1.25 | |
| 1495 | z13.Pitch = pt[math.random(1,#pt)] | |
| 1496 | z13.Looped = false | |
| 1497 | z13:Play() | |
| 1498 | for i = 1, 1 do | |
| 1499 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1500 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1501 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1502 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1503 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1504 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1505 | if Debounces.on == false then break end | |
| 1506 | wait() | |
| 1507 | end | |
| 1508 | z14 = Instance.new("Sound", larm)
| |
| 1509 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1510 | z14.Volume = 1.25 | |
| 1511 | z14.Pitch = pt[math.random(1,#pt)] | |
| 1512 | z14.Looped = false | |
| 1513 | z14:Play() | |
| 1514 | for i = 1, 1 do | |
| 1515 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1516 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1517 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1518 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1519 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1520 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1521 | if Debounces.on == false then break end | |
| 1522 | wait() | |
| 1523 | end | |
| 1524 | z15 = Instance.new("Sound", rarm)
| |
| 1525 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1526 | z15.Volume = 1.25 | |
| 1527 | z15.Pitch = pt[math.random(1,#pt)] | |
| 1528 | z15.Looped = false | |
| 1529 | z15:Play() | |
| 1530 | for i = 1, 1 do | |
| 1531 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
| 1532 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
| 1533 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1534 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1535 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
| 1536 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
| 1537 | if Debounces.on == false then break end | |
| 1538 | wait() | |
| 1539 | end | |
| 1540 | z16 = Instance.new("Sound", larm)
| |
| 1541 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1542 | z16.Volume = 1.25 | |
| 1543 | z16.Pitch = pt[math.random(1,#pt)] | |
| 1544 | z16.Looped = false | |
| 1545 | z16:Play() | |
| 1546 | for i = 1, 1 do | |
| 1547 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1548 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1549 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1550 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1551 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1552 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1553 | if Debounces.on == false then break end | |
| 1554 | wait() | |
| 1555 | end | |
| 1556 | z17 = Instance.new("Sound", rarm)
| |
| 1557 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 1558 | z17.Volume = 1.25 | |
| 1559 | z17.Pitch = pt[math.random(1,#pt)] | |
| 1560 | z17.Looped = false | |
| 1561 | z17:Play() | |
| 1562 | for i = 1, 1 do | |
| 1563 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
| 1564 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
| 1565 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1566 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1567 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1568 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1569 | if Debounces.on == false then break end | |
| 1570 | wait() | |
| 1571 | end | |
| 1572 | z18 = Instance.new("Sound", larm)
| |
| 1573 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1574 | z18.Volume = 1.25 | |
| 1575 | z18.Pitch = pt[math.random(1,#pt)] | |
| 1576 | z18.Looped = false | |
| 1577 | z18:Play() | |
| 1578 | for i = 1, 1 do | |
| 1579 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1580 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
| 1581 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1582 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1583 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1584 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1585 | if Debounces.on == false then break end | |
| 1586 | wait() | |
| 1587 | end | |
| 1588 | z19 = Instance.new("Sound", rarm)
| |
| 1589 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1590 | z19.Volume = 1.25 | |
| 1591 | z19.Pitch = pt[math.random(1,#pt)] | |
| 1592 | z19.Looped = false | |
| 1593 | z19:Play() | |
| 1594 | for i = 1, 1 do | |
| 1595 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
| 1596 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
| 1597 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1598 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1599 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
| 1600 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
| 1601 | if Debounces.on == false then break end | |
| 1602 | wait() | |
| 1603 | end | |
| 1604 | z20 = Instance.new("Sound", larm)
| |
| 1605 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 1606 | z20.Volume = 1.25 | |
| 1607 | z20.Pitch = pt[math.random(1,#pt)] | |
| 1608 | z20.Looped = false | |
| 1609 | z20:Play() | |
| 1610 | for i = 1, 1 do | |
| 1611 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
| 1612 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
| 1613 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1614 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1615 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
| 1616 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
| 1617 | if Debounces.on == false then break end | |
| 1618 | wait() | |
| 1619 | end | |
| 1620 | z:Destroy() | |
| 1621 | z2:Destroy() | |
| 1622 | z3:Destroy() | |
| 1623 | z4:Destroy() | |
| 1624 | z5:Destroy() | |
| 1625 | z6:Destroy() | |
| 1626 | z7:Destroy() | |
| 1627 | z8:Destroy() | |
| 1628 | z9:Destroy() | |
| 1629 | z10:Destroy() | |
| 1630 | z11:Destroy() | |
| 1631 | z12:Destroy() | |
| 1632 | z13:Destroy() | |
| 1633 | z14:Destroy() | |
| 1634 | z15:Destroy() | |
| 1635 | z16:Destroy() | |
| 1636 | z17:Destroy() | |
| 1637 | z18:Destroy() | |
| 1638 | z19:Destroy() | |
| 1639 | z20:Destroy() | |
| 1640 | Debounces.LPunch = false | |
| 1641 | Debounces.RPunch = false | |
| 1642 | Debounces.ks = false | |
| 1643 | Debounces.ks2 = false | |
| 1644 | if Debounces.CanAttack == false then | |
| 1645 | Debounces.CanAttack = true | |
| 1646 | Debounces.on = false | |
| 1647 | Debounces.NoIdl = false | |
| 1648 | end | |
| 1649 | end | |
| 1650 | end | |
| 1651 | end) | |
| 1652 | mouse.KeyDown:connect(function(key) | |
| 1653 | ||
| 1654 | if string.byte(key) == 52 then | |
| 1655 | Swing = 2 | |
| 1656 | char.Humanoid.WalkSpeed = 28 | |
| 1657 | end | |
| 1658 | end | |
| 1659 | ) | |
| 1660 | mouse.KeyUp:connect(function(key) | |
| 1661 | ||
| 1662 | if string.byte(key) == 52 then | |
| 1663 | Swing = 1 | |
| 1664 | char.Humanoid.WalkSpeed = 16 | |
| 1665 | end | |
| 1666 | end | |
| 1667 | ) | |
| 1668 | jump = false | |
| 1669 | rs:connect(function() | |
| 1670 | ||
| 1671 | if char.Humanoid.Jump == true then | |
| 1672 | jump = true | |
| 1673 | else | |
| 1674 | jump = false | |
| 1675 | end | |
| 1676 | char.Humanoid.FreeFalling:connect(function(f) | |
| 1677 | ||
| 1678 | if f then | |
| 1679 | ffing = true | |
| 1680 | else | |
| 1681 | ffing = false | |
| 1682 | end | |
| 1683 | end | |
| 1684 | ) | |
| 1685 | sine = sine + change | |
| 1686 | if jump == true then | |
| 1687 | animpose = "Jumping" | |
| 1688 | else | |
| 1689 | if ffing == true then | |
| 1690 | animpose = "Freefalling" | |
| 1691 | else | |
| 1692 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 1693 | animpose = "Idle" | |
| 1694 | else | |
| 1695 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 1696 | animpose = "Walking" | |
| 1697 | else | |
| 1698 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 1699 | animpose = "Running" | |
| 1700 | end | |
| 1701 | end | |
| 1702 | end | |
| 1703 | end | |
| 1704 | end | |
| 1705 | RightLeg = CFrame.new(0.5, -1, 0) | |
| 1706 | LeftLeg = CFrame.new(-0.5, -1, 0) | |
| 1707 | lefth = (torso.CFrame*LeftLeg) | |
| 1708 | righth = (torso.CFrame*RightLeg) | |
| 1709 | ||
| 1710 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 1711 | ||
| 1712 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
| 1713 | ||
| 1714 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 1715 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 1716 | if animpose ~= lastanimpose then | |
| 1717 | sine = 0 | |
| 1718 | if Debounces.NoIdl == false then | |
| 1719 | if stanceToggle == "Idle1" then | |
| 1720 | 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) | |
| 1721 | 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) | |
| 1722 | 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) | |
| 1723 | 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) | |
| 1724 | 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) | |
| 1725 | 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) | |
| 1726 | else | |
| 1727 | if stanceToggle == "Idle2" then | |
| 1728 | 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) | |
| 1729 | 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) | |
| 1730 | 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) | |
| 1731 | 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) | |
| 1732 | 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) | |
| 1733 | 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) | |
| 1734 | end | |
| 1735 | end | |
| 1736 | fat.Event:wait() | |
| 1737 | end | |
| 1738 | end | |
| 1739 | lastanimpose = animpose | |
| 1740 | if Debounces.NoIdl == false then | |
| 1741 | if animpose == "Idle" then | |
| 1742 | change = 0.2 | |
| 1743 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(20+10*math.cos(sine/10))), 0.4) | |
| 1744 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-40-20*math.cos(sine/10))), 0.4) | |
| 1745 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
| 1746 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 1747 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
| 1748 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(30), math.rad(-10-2*math.cos(sine/10))), 0.4) | |
| 1749 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
| 1750 | else | |
| 1751 | if animpose == "Walking" then | |
| 1752 | change = 0.5 | |
| 1753 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.05 * math.cos(sine / -4), -math.sin(sine / -4) / -4) * CFrame.Angles(math.sin(sine / -4) / -2.8, -math.sin(sine / -4) / -3, math.rad(5 - -7 * math.cos(sine / -2)) + root.RotVelocity.Y / -15), 0.4) | |
| 1754 | 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) | |
| 1755 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4) | |
| 1756 | 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) | |
| 1757 | 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) | |
| 1758 | 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) | |
| 1759 | 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) | |
| 1760 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 1761 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.2, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8) | |
| 1762 | 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) | |
| 1763 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.2, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8) | |
| 1764 | 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) | |
| 1765 | else | |
| 1766 | if animpose == "Running" then | |
| 1767 | change = 1.1 | |
| 1768 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.54, 0) * CFrame.Angles(math.rad(-34), math.rad(-15), math.rad(26)), 0.2) | |
| 1769 | 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) | |
| 1770 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(90), math.rad(20 + 70 * math.cos(sine / 4))), 0.2) | |
| 1771 | 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) | |
| 1772 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2) | |
| 1773 | 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) | |
| 1774 | 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) | |
| 1775 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 1776 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
| 1777 | 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) | |
| 1778 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
| 1779 | 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) | |
| 1780 | else | |
| 1781 | if animpose == "Jumping" then | |
| 1782 | change = 1 | |
| 1783 | 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) | |
| 1784 | 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) | |
| 1785 | 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) | |
| 1786 | 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) | |
| 1787 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2) | |
| 1788 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 1789 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 1790 | 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) | |
| 1791 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
| 1792 | 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) | |
| 1793 | 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) | |
| 1794 | else | |
| 1795 | if animpose == "Freefalling" then | |
| 1796 | change = 1 | |
| 1797 | 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) | |
| 1798 | 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) | |
| 1799 | 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) | |
| 1800 | 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) | |
| 1801 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2) | |
| 1802 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
| 1803 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 1804 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 1805 | 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) | |
| 1806 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
| 1807 | 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) | |
| 1808 | end | |
| 1809 | end | |
| 1810 | end | |
| 1811 | end | |
| 1812 | end | |
| 1813 | end | |
| 1814 | end | |
| 1815 | ) | |
| 1816 | while true do wait() | |
| 1817 | hum.MaxHealth = 1e+173 | |
| 1818 | wait(0.5) | |
| 1819 | hum.Health = 1e+173 | |
| 1820 | end |