SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | return RealPlayer[Index] | |
| 88 | end | |
| 89 | end; | |
| 90 | __tostring = function(self) | |
| 91 | return RealPlayer.Name | |
| 92 | end | |
| 93 | }) | |
| 94 | end | |
| 95 | end | |
| 96 | if RealGame[Index] then | |
| 97 | local Type = type(RealGame[Index]) | |
| 98 | if Type == "function" then | |
| 99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 100 | return function (self,Service) | |
| 101 | if Service:lower() == "players" then | |
| 102 | return setmetatable({},{
| |
| 103 | __index = function (self2,Index2) | |
| 104 | local RealService = RealGame:GetService(Service) | |
| 105 | local Type2 = type(Index2) | |
| 106 | if Type2 == "function" then | |
| 107 | return function (self,...) | |
| 108 | return RealService[Index2](RealService,...) | |
| 109 | end | |
| 110 | else | |
| 111 | if Index2:lower() == "localplayer" then | |
| 112 | return Sandbox(owner) | |
| 113 | end | |
| 114 | return RealService[Index2] | |
| 115 | end | |
| 116 | end; | |
| 117 | __tostring = function(self) | |
| 118 | return RealGame:GetService(Service).Name | |
| 119 | end | |
| 120 | }) | |
| 121 | elseif Service:lower() == "contextactionservice" then | |
| 122 | return InternalData["ContextActionService"] | |
| 123 | elseif Service:lower() == "contextactionservice" then | |
| 124 | return InternalData["UserInputService"] | |
| 125 | elseif Service:lower() == "runservice" then | |
| 126 | return setmetatable({},{
| |
| 127 | __index = function(self2,Index2) | |
| 128 | local RealService = RealGame:GetService(Service) | |
| 129 | local Type2 = type(Index2) | |
| 130 | if Type2 == "function" then | |
| 131 | return function (self,...) | |
| 132 | return RealService[Index2](RealService,...) | |
| 133 | end | |
| 134 | else | |
| 135 | if Index2:lower() == "bindtorenderstep" then | |
| 136 | return function (self,Name,Priority,Function) | |
| 137 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 138 | end | |
| 139 | end | |
| 140 | if Index2:lower() == "renderstepped" then | |
| 141 | return RealService["Stepped"] | |
| 142 | end | |
| 143 | return RealService[Index2] | |
| 144 | end | |
| 145 | end | |
| 146 | }) | |
| 147 | else | |
| 148 | return RealGame:GetService(Service) | |
| 149 | end | |
| 150 | end | |
| 151 | end | |
| 152 | return function (self,...) | |
| 153 | return RealGame[Index](RealGame,...) | |
| 154 | end | |
| 155 | else | |
| 156 | if game:GetService(Index) then | |
| 157 | return game:GetService(Index) | |
| 158 | end | |
| 159 | return RealGame[Index] | |
| 160 | end | |
| 161 | else | |
| 162 | return nil | |
| 163 | end | |
| 164 | end | |
| 165 | });Game = game;owner = game:GetService("Players").LocalPlayer
| |
| 166 | print("Complete! Running... Created by WafflesAreVeryGood! ")
| |
| 167 | ||
| 168 | --]] | |
| 169 | ------------------------------------------------------- | |
| 170 | print("This script was created by WafflesAreVeryGood!")
| |
| 171 | --[[Changeable Variables]]-- | |
| 172 | local multiplier = 1 --Attack multiplier (default is 1) | |
| 173 | local soundlist = {
| |
| 174 | HardHit1 = "rbxassetid://565207203", | |
| 175 | HardHit2 = "rbxassetid://541909913", | |
| 176 | HardHit3 = "rbxassetid://541909983", | |
| 177 | WeakHit1 = "rbxassetid://558642292", | |
| 178 | WeakHit2 = "rbxassetid://541907812", | |
| 179 | Slice1 = "rbxassetid://260429964", | |
| 180 | Slice2 = "rbxassetid://260430015", | |
| 181 | Explosion1 = "rbxassetid://138186576", | |
| 182 | Explosion2 = "rbxassetid://157878578", | |
| 183 | Woosh1 = "rbxassetid://541909867", | |
| 184 | Woosh2 = "rbxassetid://541909763", | |
| 185 | ||
| 186 | } | |
| 187 | local bgmusic = Instance.new("Sound")
| |
| 188 | bgmusic.Volume = 3 | |
| 189 | bgmusic.SoundId = "rbxassetid://2337759010" | |
| 190 | bgmusic.Pitch = 1 | |
| 191 | bgmusic.Looped = true | |
| 192 | bgmusic.Parent = game:GetService('Players').LocalPlayer.Character.Torso
| |
| 193 | bgmusic:Play() | |
| 194 | ||
| 195 | --[[Important Variables]]-- | |
| 196 | local plr = game:GetService('Players').LocalPlayer
| |
| 197 | local char = plr.Character | |
| 198 | local mouse = plr:GetMouse() | |
| 199 | local input = game:GetService('UserInputService')
| |
| 200 | ---- | |
| 201 | local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
| |
| 202 | local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart | |
| 203 | local rs = torso["Right Shoulder"] | |
| 204 | local ls = torso["Left Shoulder"] | |
| 205 | local rh = torso["Right Hip"] | |
| 206 | local lh = torso["Left Hip"] | |
| 207 | local neck = torso.Neck | |
| 208 | local rj = rootpart["RootJoint"] | |
| 209 | local humanoid = char:FindFirstChildOfClass("Humanoid")
| |
| 210 | ---- | |
| 211 | local huge = Vector3.new(math.huge, math.huge, math.huge) | |
| 212 | local attacking = false | |
| 213 | local cananim = true | |
| 214 | local currentanim = "Idle" | |
| 215 | local mode = "Normal" | |
| 216 | ||
| 217 | --[[ Functions ]]-- | |
| 218 | function addattack(keycode, func) | |
| 219 | if keycode ~= "MouseClick" then | |
| 220 | input.InputBegan:connect(function(inp) | |
| 221 | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then | |
| 222 | func() | |
| 223 | end | |
| 224 | end) | |
| 225 | else | |
| 226 | mouse.Button1Down:connect(function() | |
| 227 | func() | |
| 228 | end) | |
| 229 | end | |
| 230 | end | |
| 231 | function attackend(keycode, func) | |
| 232 | input.InputEnded:connect(function(inp) | |
| 233 | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then | |
| 234 | func() | |
| 235 | end | |
| 236 | end) | |
| 237 | end | |
| 238 | function swait(t) | |
| 239 | if t then | |
| 240 | for i = 0, t do | |
| 241 | game:GetService('RunService').Stepped:wait(0)
| |
| 242 | end | |
| 243 | else | |
| 244 | game:GetService('RunService').Stepped:wait(0)
| |
| 245 | end | |
| 246 | return true | |
| 247 | end | |
| 248 | function fade(obj, dest, grow) | |
| 249 | spawn(function() | |
| 250 | local oldcf = obj.CFrame | |
| 251 | for i = 0, 10 do | |
| 252 | if grow then | |
| 253 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
| 254 | obj.CFrame = oldcf | |
| 255 | end | |
| 256 | obj.Transparency = obj.Transparency +0.1 | |
| 257 | swait() | |
| 258 | end | |
| 259 | if dest then | |
| 260 | obj:Destroy() | |
| 261 | end | |
| 262 | end) | |
| 263 | end | |
| 264 | function replacejoint(name) | |
| 265 | local j = torso:FindFirstChild(name) | |
| 266 | if not j then j = char.HumanoidRootPart:FindFirstChild(name) end | |
| 267 | if j then | |
| 268 | if true then | |
| 269 | local already = j.Parent:FindFirstChild(j.Name.." Replacement") | |
| 270 | local new = Instance.new("Weld")
| |
| 271 | local c0 = j.C0 | |
| 272 | local c1 = j.C1 | |
| 273 | new.Part0 = j.Part0 | |
| 274 | j.Part0 = nil | |
| 275 | new.Name = j.Name.." Replacement" | |
| 276 | if already then c0 = already.C0 c1 = already.C1 already:Destroy() end | |
| 277 | new.Parent = j.Parent | |
| 278 | new.Part1 = j.Part1 | |
| 279 | new.C0 = c0 | |
| 280 | new.C1 = c1 | |
| 281 | return new | |
| 282 | end | |
| 283 | end | |
| 284 | end | |
| 285 | function removejoint(name, fast) | |
| 286 | local j = torso:FindFirstChild(name.." Replacement") | |
| 287 | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end | |
| 288 | if j then | |
| 289 | local p0 = j.Part0 | |
| 290 | if p0 ~= nil then | |
| 291 | local c0 = j.C0 | |
| 292 | local c1 = j.C1 | |
| 293 | j:Destroy() | |
| 294 | local new = p0:FindFirstChild(name) | |
| 295 | local ac0 = new.C0 | |
| 296 | local ac1 = new.C1 | |
| 297 | new.Part0 = p0 | |
| 298 | new.C0 = c0 | |
| 299 | new.C1 = c1 | |
| 300 | spawn(function() | |
| 301 | if name ~= "RootJoint" then | |
| 302 | if not fast then | |
| 303 | for i = 0, 0.6, 0.1 do | |
| 304 | print(i) | |
| 305 | new.C0 = new.C0:Lerp(ac0, 0.5) | |
| 306 | new.C1 = new.C1:lerp(ac1, 0.5) | |
| 307 | swait() | |
| 308 | end | |
| 309 | else | |
| 310 | new.C0 = new.C0:Lerp(ac0, 1) | |
| 311 | new.C1 = new.C1:lerp(ac1, 1) | |
| 312 | end | |
| 313 | end | |
| 314 | end) | |
| 315 | end | |
| 316 | end | |
| 317 | end | |
| 318 | function fixalljoints(fast) | |
| 319 | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
| |
| 320 | removejoint(v, fast) | |
| 321 | end | |
| 322 | end | |
| 323 | function getnewjoints() | |
| 324 | local rs = replacejoint("Right Shoulder")
| |
| 325 | local ls = replacejoint("Left Shoulder")
| |
| 326 | local rh = replacejoint("Right Hip")
| |
| 327 | local lh = replacejoint("Left Hip")
| |
| 328 | local neck = replacejoint("Neck")
| |
| 329 | local rj = replacejoint("RootJoint")
| |
| 330 | return rs,ls,rh,lh,neck,rj | |
| 331 | end | |
| 332 | function knockback(hit, force) | |
| 333 | local bv = Instance.new("BodyVelocity")
| |
| 334 | bv.MaxForce = huge | |
| 335 | bv.Velocity = force | |
| 336 | bv.Parent = hit | |
| 337 | game:GetService('Debris'):AddItem(bv, 0.15)
| |
| 338 | end | |
| 339 | function soundeffect(id, volume, speed, parent, forcewait) | |
| 340 | local func = function() | |
| 341 | local s = LoadLibrary("RbxUtility").Create("Sound")()
| |
| 342 | s.Name = "SoundEffect" | |
| 343 | s.Volume = volume | |
| 344 | s.PlaybackSpeed = speed | |
| 345 | s.SoundId = id | |
| 346 | s.Looped = false | |
| 347 | s.Parent = parent | |
| 348 | s:Play() | |
| 349 | repeat wait() until not s.Playing | |
| 350 | s:Destroy() | |
| 351 | end | |
| 352 | if forcewait then | |
| 353 | func() | |
| 354 | else | |
| 355 | spawn(func) | |
| 356 | end | |
| 357 | end | |
| 358 | function specialsound(id, volume, speed, parent, starts, ends) | |
| 359 | local func = function() | |
| 360 | local s = LoadLibrary("RbxUtility").Create("Sound")()
| |
| 361 | s.Name = "SoundEffect" | |
| 362 | s.Volume = volume | |
| 363 | s.PlaybackSpeed = speed | |
| 364 | s.SoundId = id | |
| 365 | s.TimePosition = starts | |
| 366 | s.Looped = false | |
| 367 | s.Parent = parent | |
| 368 | s:Play() | |
| 369 | repeat swait() until s.TimePosition >= ends | |
| 370 | s:Destroy() | |
| 371 | end | |
| 372 | spawn(func) | |
| 373 | end | |
| 374 | function hurt(hit, dmg) | |
| 375 | --pcall(function() | |
| 376 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 377 | if hum then | |
| 378 | if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
| |
| 379 | hum.Health = hum.Health - dmg | |
| 380 | return true | |
| 381 | end | |
| 382 | end | |
| 383 | --end) | |
| 384 | end | |
| 385 | function disable(hit) | |
| 386 | pcall(function() | |
| 387 | for i,v in pairs(hit.Parent:GetChildren()) do | |
| 388 | if v:IsA("Script") and v.Name ~= "Animate" then
| |
| 389 | v:Destroy() | |
| 390 | soundeffect("rbxassetid://1132948877", 1, 1, char.Head)
| |
| 391 | end | |
| 392 | if v:IsA("Model") then
| |
| 393 | v:BreakJoints() | |
| 394 | end | |
| 395 | if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then | |
| 396 | for _,child in pairs(v:GetChildren()) do | |
| 397 | if child:IsA("Weld") then
| |
| 398 | child:Destroy() | |
| 399 | end | |
| 400 | end | |
| 401 | end | |
| 402 | end | |
| 403 | end) | |
| 404 | end | |
| 405 | humanoid.Running:connect(function(speed) | |
| 406 | if speed > 2 then | |
| 407 | currentanim = "Walking" | |
| 408 | else | |
| 409 | currentanim = "Idle" | |
| 410 | end | |
| 411 | end) | |
| 412 | humanoid.Jumping:connect(function(active) | |
| 413 | if active then | |
| 414 | currentanim = "Jumping" | |
| 415 | end | |
| 416 | end) | |
| 417 | humanoid.FallingDown:connect(function(active) | |
| 418 | if active then | |
| 419 | currentanim = "Falling" | |
| 420 | end | |
| 421 | end) | |
| 422 | humanoid.FreeFalling:connect(function(active) | |
| 423 | if active and char.HumanoidRootPart.Velocity.Y < 0 then | |
| 424 | currentanim = "Falling" | |
| 425 | end | |
| 426 | end) | |
| 427 | pcall(function() | |
| 428 | char.Animate:Destroy() | |
| 429 | end) | |
| 430 | for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do | |
| 431 | v:Stop() | |
| 432 | end | |
| 433 | --[[ Actual script :OOOOOOOOOO ]]-- | |
| 434 | local gun = Instance.new("Part")
| |
| 435 | gun.Size = Vector3.new(1, 1, 2) | |
| 436 | gun.CanCollide = false | |
| 437 | gun.Anchored = false | |
| 438 | gun.Color = Color3.new(0,0,0) | |
| 439 | local gunw = Instance.new("Weld")
| |
| 440 | gunw.Name = "GunWeld" | |
| 441 | gunw.Part0 = gun | |
| 442 | gunw.Part1 = char["Right Arm"] | |
| 443 | gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0)) | |
| 444 | gunw.Parent = gun | |
| 445 | local m = Instance.new("SpecialMesh")
| |
| 446 | m.MeshId = "http://www.roblox.com/asset/?id=785024366" | |
| 447 | - | m.Scale = Vector3.new(2,2,2) |
| 447 | + | m.Scale = Vector3.new(10,10,10) |
| 448 | m.Parent = gun | |
| 449 | gun.Parent = char | |
| 450 | ||
| 451 | ||
| 452 | - | char.Head.face.Texture = "http://www.roblox.com/asset/?id=268018808" |
| 452 | + | char.Head.face.Texture = "http://www.roblox.com/asset/?id=12117740" |
| 453 | ||
| 454 | ||
| 455 | local txt = Instance.new("BillboardGui", char)
| |
| 456 | txt.Adornee = char .Head | |
| 457 | txt.Name = "_status" | |
| 458 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 459 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 460 | local text = Instance.new("TextLabel", txt)
| |
| 461 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 462 | text.FontSize = "Size24" | |
| 463 | text.TextScaled = true | |
| 464 | text.TextTransparency = 0 | |
| 465 | text.BackgroundTransparency = 1 | |
| 466 | text.TextTransparency = 0 | |
| 467 | text.TextStrokeTransparency = 1 | |
| 468 | - | text.Font = "Arcade" |
| 468 | + | text.Font = "Code" |
| 469 | - | text.TextStrokeColor3 = Color3.fromRGB(0,0,0) |
| 469 | + | text.TextStrokeColor3 = Color3.fromRGB(0,1,0) |
| 470 | ||
| 471 | - | text.Text = "why" |
| 471 | + | text.Text = "Legendary Spinner" |
| 472 | ||
| 473 | ||
| 474 | ||
| 475 | ||
| 476 | ||
| 477 | ||
| 478 | ||
| 479 | addattack(Enum.KeyCode.R, function() | |
| 480 | if not attacking then | |
| 481 | if mode == "Normal" then | |
| 482 | mode = "Heal" | |
| 483 | gun.Color = Color3.new(0,1,0) | |
| 484 | specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
| |
| 485 | else | |
| 486 | gun.Color = Color3.new(0,0,0) | |
| 487 | mode = "Normal" | |
| 488 | soundeffect("rbxassetid://833797091", 5, 1, char)
| |
| 489 | end | |
| 490 | end | |
| 491 | end) | |
| 492 | addattack(Enum.KeyCode.Q, function() | |
| 493 | if not attacking then | |
| 494 | mode = "Disable" | |
| 495 | gun.Color = Color3.new(1,0,0) | |
| 496 | specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
| |
| 497 | end | |
| 498 | end) | |
| 499 | addattack(Enum.KeyCode.P, function() | |
| 500 | if bgmusic.Playing then | |
| 501 | bgmusic:Stop() | |
| 502 | else | |
| 503 | bgmusic:Play() | |
| 504 | end | |
| 505 | end) | |
| 506 | addattack("MouseClick", function()
| |
| 507 | if not attacking then | |
| 508 | cananim = false | |
| 509 | attacking = true | |
| 510 | for i = 0, 0.6, 0.1 do | |
| 511 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 512 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.235909924, 0.846874475, 0, 0.399310559, 0.00480417395, 0.916803062, -0.916736782, -0.0110294167, 0.399339437, 0.0120302998, -0.99992764, 5.25861077e-10), 0.6) | |
| 513 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 514 | ls.C1 = ls.C1:Lerp(CFrame.new(0.232030958, 1.28329468, 0, 0.758646905, 0.0105680302, -0.651416421, 0.65135318, 0.00907341763, 0.758720517, 0.0139287533, -0.999902964, -6.08845141e-10), 0.6) | |
| 515 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 516 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 517 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 518 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 519 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6) | |
| 520 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6) | |
| 521 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6) | |
| 522 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6) | |
| 523 | swait() | |
| 524 | end | |
| 525 | local sounds = {
| |
| 526 | {17.49, 17.981267708586};
| |
| 527 | {17.490114626798, 17.755552823579};
| |
| 528 | {18, 18.465876732586707476};
| |
| 529 | } | |
| 530 | local ids = sounds[math.random(#sounds)] | |
| 531 | specialsound("rbxassetid://3065165447 ", 10, 1, char, ids[1], ids[2])
| |
| 532 | local p = Instance.new("Part")
| |
| 533 | p.Anchored = false | |
| 534 | p.Material = "Neon" | |
| 535 | p.CanCollide = false | |
| 536 | local start = gun.Position +Vector3.new(0.5,0,-0.5) | |
| 537 | local endp = mouse.Hit.p | |
| 538 | local ray = Ray.new(start, (endp-start).unit * 999) | |
| 539 | local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
| |
| 540 | local mag = (start-position).magnitude + 2 | |
| 541 | - | p.Size = Vector3.new(9.9,9.9,mag) |
| 541 | + | p.Size = Vector3.new(75.75,75.9,mag) |
| 542 | p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2) | |
| 543 | local bp = Instance.new("BodyPosition")
| |
| 544 | bp.MaxForce = huge | |
| 545 | bp.Position = p.Position | |
| 546 | bp.Parent = p | |
| 547 | p.Color = gun.Color | |
| 548 | if mode == "Normal" then | |
| 549 | p.Color = Color3.new(1,0,0) | |
| 550 | end | |
| 551 | p.Parent = workspace | |
| 552 | spawn(function() | |
| 553 | for i = 1, 10 do | |
| 554 | p.Transparency = i/10 | |
| 555 | swait() | |
| 556 | end | |
| 557 | p:Destroy() | |
| 558 | end) | |
| 559 | local con | |
| 560 | local dmg = 750 | |
| 561 | if mode == "Heal" then dmg = -1000 end | |
| 562 | if mode == "Disable" then dmg = 0 end | |
| 563 | con = p.Touched:connect(function(hit) | |
| 564 | if hurt(hit, dmg) then | |
| 565 | pcall(function() | |
| 566 | con:disconnect() | |
| 567 | if mode == "Disable" then | |
| 568 | disable(hit) | |
| 569 | end | |
| 570 | for i,v in pairs(hit.Parent:GetDescendants()) do | |
| 571 | spawn(function() | |
| 572 | if v:IsA("BasePart") and mode == "Normal" then
| |
| 573 | local bv = Instance.new("BodyVelocity")
| |
| 574 | bv.MaxForce = huge | |
| 575 | bv.Velocity = CFrame.new(start, position).lookVector*100 | |
| 576 | bv.Parent = v | |
| 577 | game:GetService('Debris'):AddItem(bv, 0.1)
| |
| 578 | if v.Transparency <= 0.9 then | |
| 579 | for i = 1, 20 do | |
| 580 | v.Transparency = i/20 | |
| 581 | swait() | |
| 582 | end | |
| 583 | end | |
| 584 | v:Destroy() | |
| 585 | end | |
| 586 | end) | |
| 587 | end | |
| 588 | end) | |
| 589 | end | |
| 590 | end) | |
| 591 | for i = 0, 0.3, 0.1 do | |
| 592 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8) | |
| 593 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.108213484, 0.142491132, -0.0458124876, 0.399310559, 0.00480417395, 0.916803062, -0.907117367, -0.142995536, 0.395841271, 0.133000448, -0.989711702, -0.0527416691), 0.8) | |
| 594 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8) | |
| 595 | ls.C1 = ls.C1:Lerp(CFrame.new(-0.214841455, 0.866598129, -0.112976491, 0.758646905, 0.0105680302, -0.651416421, 0.64655149, -0.135239884, 0.750787199, -0.0801631361, -0.990756512, -0.109432101), 0.8) | |
| 596 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8) | |
| 597 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, -0.104150683, 0.994561553, -4.55257076e-09, -0.994561553, -0.104150683, -4.34736656e-08), 0.8) | |
| 598 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8) | |
| 599 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, -0.0883838907, 0.996086478, 3.8633825e-09, 0.996086478, 0.0883838907, -4.35403216e-08), 0.8) | |
| 600 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8) | |
| 601 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.49999997, 0, -1, 0, 0, 0, 0.0492738597, 0.998785317, 0, 0.998785317, -0.0492738597), 0.8) | |
| 602 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8) | |
| 603 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.0276213959, 0.999618471, 0, 0.999618471, -0.0276213959), 0.8) | |
| 604 | swait() | |
| 605 | end | |
| 606 | cananim = true | |
| 607 | attacking = false | |
| 608 | end | |
| 609 | end) | |
| 610 | while true do | |
| 611 | swait() | |
| 612 | if currentanim == "Jumping" and cananim then | |
| 613 | for i = 0, 1.2, 0.1 do | |
| 614 | if currentanim ~= "Jumping" or not cananim then break end | |
| 615 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4) | |
| 616 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.195344329, -0.746855855, -0.155881107, 0.00388455181, 0.987768173, 0.260807574, -0.964343727, 0.0449508503, 0.952722609, 0.264624417, 0.149309859), 0.4) | |
| 617 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4) | |
| 618 | ls.C1 = ls.C1:Lerp(CFrame.new(0.793125331, 0.89348793, -0.0677016973, 0.986068428, -0.132806748, -0.100156575, 0.1031176, 0.0155911446, 0.994546831, -0.130520999, -0.991019309, 0.0290686507), 0.4) | |
| 619 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4) | |
| 620 | rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 0.99999994, -4.47034836e-08, -0.0421661586, 0.0827250704, 0.995679915, 0.25110203, 0.965456486, -0.0695800334, -0.967041731, 0.247083336, -0.0614820197), 0.4) | |
| 621 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4) | |
| 622 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 2.98023224e-08, 0.0194152314, 0, -0.99981153, 0.178683311, 0.983900607, 0.00346983178, 0.983715117, -0.178716987, 0.0191026554), 0.4) | |
| 623 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4) | |
| 624 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4) | |
| 625 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4) | |
| 626 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.128909558, -0.0269506648, -0.996639967, -0.0819067881, 0, -0.00100739487, 0.0122579783, 0.999924421, -0.0819005966, 0.996564567, -0.0122992992), 0.4) | |
| 627 | swait() | |
| 628 | end | |
| 629 | end | |
| 630 | if currentanim == "Falling" and cananim then | |
| 631 | for i = 0, 1.2, 0.1 do | |
| 632 | if currentanim ~= "Falling" or not cananim then break end | |
| 633 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4) | |
| 634 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.389569163, -0.799008012, -0.155881107, 0.00388455181, 0.987768173, 0.0170185864, -0.999833226, 0.00661772862, 0.987629175, 0.0178419873, 0.155789018), 0.4) | |
| 635 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4) | |
| 636 | ls.C1 = ls.C1:Lerp(CFrame.new(0.800841689, 0.89348793, 0.000534057617, 0.989977896, 0.0953866094, -0.104139231, 0.1031176, 0.0155911446, 0.994546831, 0.0964901, -0.995318174, 0.00559884822), 0.4) | |
| 637 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4) | |
| 638 | rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, -1.49011612e-08, -0.0421661586, 0.0827250704, 0.995679915, -0.0600035824, 0.994557679, -0.085172914, -0.997307122, -0.0633357614, -0.0369728766), 0.4) | |
| 639 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4) | |
| 640 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.499999881, 1, 3.7252903e-08, 0.0207479522, -0.155918092, -0.987552047, -0.00691960612, 0.987718761, -0.156089753, 0.999760866, 0.0100720376, 0.0194142479), 0.4) | |
| 641 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4) | |
| 642 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4) | |
| 643 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4) | |
| 644 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.313415587, -0.0163925812, -0.996639967, -0.0819067881, 0, 0.00564728118, -0.0687159598, 0.997620344, -0.0817118809, 0.994268239, 0.068947643), 0.4) | |
| 645 | swait() | |
| 646 | end | |
| 647 | end | |
| 648 | if currentanim == "Walking" and cananim then | |
| 649 | for i = 0, 0.6, 0.1 do | |
| 650 | if currentanim ~= "Walking" or not cananim then break end | |
| 651 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 652 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6) | |
| 653 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 654 | ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6) | |
| 655 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 656 | rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, -0.568820775, 0.817300439, -0.0919936299, -0.82137984, -0.570242465, 0.0125933159), 0.6) | |
| 657 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 658 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, -0.845399499, 0.53388226, -0.0164167192, 0.533781588, 0.845558882, 0.0103654461), 0.6) | |
| 659 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6) | |
| 660 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6) | |
| 661 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6) | |
| 662 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.239933819, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), 0.6) | |
| 663 | swait() | |
| 664 | end | |
| 665 | local rslastc0 = rs.C0 | |
| 666 | local rslastc1 = rs.C1 | |
| 667 | local lslastc0 = ls.C0 | |
| 668 | local lslastc1 = ls.C1 | |
| 669 | local rhlastc0 = rh.C0 | |
| 670 | local rhlastc1 = rh.C1 | |
| 671 | local lhlastc0 = lh.C0 | |
| 672 | local lhlastc1 = lh.C1 | |
| 673 | local necklastc0 = neck.C0 | |
| 674 | local necklastc1 = neck.C1 | |
| 675 | local rjlastc0 = rj.C0 | |
| 676 | local rjlastc1 = rj.C1 | |
| 677 | local max = 0.6 | |
| 678 | for i = 0, max, 0.1 do | |
| 679 | if currentanim ~= "Walking" or not cananim then break end | |
| 680 | rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max) | |
| 681 | rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max) | |
| 682 | ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max) | |
| 683 | ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max) | |
| 684 | rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max) | |
| 685 | rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max) | |
| 686 | lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max) | |
| 687 | lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max) | |
| 688 | neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max) | |
| 689 | neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max) | |
| 690 | rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max) | |
| 691 | rj.C1 = rjlastc1:Lerp(CFrame.new(0, 0.169720784, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), i/max) | |
| 692 | swait() | |
| 693 | end | |
| 694 | for i = 0, 0.6, 0.1 do | |
| 695 | if currentanim ~= "Walking" or not cananim then break end | |
| 696 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 697 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6) | |
| 698 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 699 | ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6) | |
| 700 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6) | |
| 701 | rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, 0.868188143, 0.496215105, -0.00446053827, -0.494440407, 0.864249468, -0.0927444026), 0.6) | |
| 702 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6) | |
| 703 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0.595236421, 0.803467572, 0.0115588298, 0.803316057, -0.595348656, 0.015599506), 0.6) | |
| 704 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6) | |
| 705 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6) | |
| 706 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6) | |
| 707 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.342528641, -9.31322575e-10, -0.996639967, -0.0819067955, -6.22866592e-10, 0.00819849595, -0.0997591242, 0.994977832, -0.0814954415, 0.991634727, 0.100095443), 0.6) | |
| 708 | swait() | |
| 709 | end | |
| 710 | local rslastc0 = rs.C0 | |
| 711 | local rslastc1 = rs.C1 | |
| 712 | local lslastc0 = ls.C0 | |
| 713 | local lslastc1 = ls.C1 | |
| 714 | local rhlastc0 = rh.C0 | |
| 715 | local rhlastc1 = rh.C1 | |
| 716 | local lhlastc0 = lh.C0 | |
| 717 | local lhlastc1 = lh.C1 | |
| 718 | local necklastc0 = neck.C0 | |
| 719 | local necklastc1 = neck.C1 | |
| 720 | local rjlastc0 = rj.C0 | |
| 721 | local rjlastc1 = rj.C1 | |
| 722 | local max = 0.6 | |
| 723 | for i = 0, max, 0.1 do | |
| 724 | if currentanim ~= "Walking" or not cananim then break end | |
| 725 | rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max) | |
| 726 | rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max) | |
| 727 | ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max) | |
| 728 | ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max) | |
| 729 | rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max) | |
| 730 | rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max) | |
| 731 | lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max) | |
| 732 | lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max) | |
| 733 | neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max) | |
| 734 | neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max) | |
| 735 | rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max) | |
| 736 | rj.C1 = rjlastc1:Lerp(CFrame.new(5.82076609e-11, 0.2270886, 2.32830644e-10, -0.996639967, -0.0819067881, 4.13409307e-10, 0.00819849502, -0.0997591093, 0.994977832, -0.081495434, 0.991634727, 0.100095429), i/max) | |
| 737 | wait() | |
| 738 | end | |
| 739 | end | |
| 740 | if currentanim == "Idle" and cananim then | |
| 741 | for i = 0, 5, 0.1 do | |
| 742 | if currentanim ~= "Idle" or not cananim then break end | |
| 743 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05) | |
| 744 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.105339587, -1.12973166, -0.155881107, 0.00388455181, 0.987768173, -0.0249122381, -0.999689579, -1.08894849e-09, 0.987461567, -0.0246075168, 0.155929506), 0.05) | |
| 745 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05) | |
| 746 | ls.C1 = ls.C1:Lerp(CFrame.new(0.998242438, 0.966719627, -0.251513988, 0.948773444, -0.0191214401, -0.315378129, 0.315314144, -0.00635479437, 0.948966026, -0.0201497618, -0.999796987, 8.80774065e-10), 0.05) | |
| 747 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05) | |
| 748 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05) | |
| 749 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05) | |
| 750 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05) | |
| 751 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 752 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 753 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 754 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, 0, 0, 1, -0.0819067881, 0.996639967, 0), 0.05) | |
| 755 | swait() | |
| 756 | end | |
| 757 | for i = 0, 5, 0.1 do | |
| 758 | if currentanim ~= "Idle" or not cananim then break end | |
| 759 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05) | |
| 760 | rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -1.07218063, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.05) | |
| 761 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05) | |
| 762 | ls.C1 = ls.C1:Lerp(CFrame.new(0.994734883, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.05) | |
| 763 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05) | |
| 764 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05) | |
| 765 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05) | |
| 766 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05) | |
| 767 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 768 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 769 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05) | |
| 770 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, -0.00139390712, 0.0169610307, 0.999855161, -0.0818949267, 0.996495605, -0.017018212), 0.05) | |
| 771 | swait() | |
| 772 | end | |
| 773 | end | |
| 774 | end |