Advertisement
basbas1234

Sans AU || Loadstring Version

Apr 2nd, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 125.02 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------
  2. -- Compatibility Part
  3. local CurrentUser = script:WaitForChild("Owner") local Detector = CurrentUser:WaitForChild("Detector") CurrentUser.Value = game.Players:GetPlayerFromCharacter(script.Parent) if (CurrentUser or Detector) == nil then print("Not Found Default Variables"); return end if game:GetService("RunService"):IsClient() then error("Not Found Client") end; print("FE Compatibility version LoadString: by basbas1234"); InternalData = {} do local Event = Instance.new("RemoteEvent"); Event.Name = "UserInput" local function NewFakeEvent() local Bind = Instance.new("BindableEvent") local Fake;Fake = {Connections = {}, fakeEvent=true; Connect=function(self,Func) Bind.Event:connect(Func) self.Connections[Bind] = true return setmetatable({Connected = true},{ __index = function (self,Index) if Index:lower() == "disconnect" then return function() Fake.Connections[Bind] = false;self.Connected = false end end return Fake[Index] end; __tostring = function() return "Connection" end; }) end} Fake.connect = Fake.Connect;return Fake; end local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};ContextActionService.UnBindAction = ContextActionService.BindAction local function TriggerEvent(self,Event,...) local Trigger = Mouse[Event] if Trigger and Trigger.fakeEvent and Trigger.Connections then for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end end end Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent Event.OnServerEvent:Connect(function(FiredBy,Input) if FiredBy.Name ~= owner.Name then return end if Input.MouseEvent then Mouse.Target = Input.Target;Mouse.Hit = Input.Hit else local Begin = Input.UserInputState == Enum.UserInputState.Begin if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end for _,Action in pairs(ContextActionService.Actions) do for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end end Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) end end) InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService Event.Parent = Detector Detector.Disabled = false end RealGame = game;game = setmetatable({},{ __index = function (self,Index) local Sandbox = function (Thing) if Thing:IsA("Player") then local RealPlayer = Thing return setmetatable({},{ __index = function (self,Index) local Type = type(RealPlayer[Index]) if Type == "function" then if Index:lower() == "getmouse" or Index:lower() == "mouse" then return function (self)return InternalData["Mouse"] end end return function (self,...)return RealPlayer[Index](RealPlayer,...) end end return RealPlayer[Index] end; __tostring = function(self) return RealPlayer.Name end }) end end if RealGame[Index] then local Type = type(RealGame[Index]) if Type == "function" then if Index:lower() == "getservice" or Index:lower() == "service" then return function (self,Service) local FakeServices = { ["players"] = function() return setmetatable({},{ __index = function (self2,Index2)  local RealService = RealGame:GetService(Service) local Type2 = type(Index2) if Type2 == "function" then return function (self,...) return RealService[Index2](RealService,...)end else if Index2:lower() == "localplayer" then return Sandbox(owner) end  return RealService[Index2] end end; __tostring = function(self) return RealGame:GetService(Service).Name end }) end; ["contextactionservice"] = function() return InternalData["ContextActionService"] end; ["userinputservice"] = function() return InternalData["UserInputService"] end; ["runservice"] = function() return setmetatable({},{ __index = function(self2,Index2) local RealService = RealGame:GetService(Service) local Type2 = type(Index2) if Type2 == "function" then return function (self,...) return RealService[Index2](RealService,...) end else local RunServices = { ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; ["renderstepped"] = function() return RealService["Stepped"] end } if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end return RealService[Index2] end end }) end } if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end return RealGame:GetService(Service) end end return function (self,...) return RealGame[Index](RealGame,...) end else if game:GetService(Index) then return game:GetService(Index) end return RealGame[Index] end end return nil end });Game = game; owner = CurrentUser.Value; print("Complete! Running...")
  4. -------------------------------------------------------------------------------------------------------------------
  5. -- Script Here
  6.  
  7. local Players = game:GetService("Players")
  8. local Player = Players.LocalPlayer
  9. local Character = Player.Character
  10. local Head = Character["Head"]
  11. local Torso = Character["Torso"]
  12. local HumanoidRootPart = Character["HumanoidRootPart"]
  13. local RightArm = Character["Right Arm"]
  14. local LeftArm = Character["Left Arm"]
  15. local RightLeg = Character["Right Leg"]
  16. local LeftLeg = Character["Left Leg"]
  17. local Humanoid = Character["Humanoid"]
  18. local RootJoint = HumanoidRootPart["RootJoint"]
  19. local Neck = Torso["Neck"]
  20.  
  21. local ServerStorage = game:GetService("ServerStorage")
  22. local Camera = game.Workspace.CurrentCamera
  23. local PlayerGui = Player.PlayerGui
  24. local Backpack = Player.Backpack
  25. local Mouse = Player:GetMouse()
  26. local Debris = game:GetService("Debris")
  27.  
  28. local Create = Instance.new
  29. local RGBColor = Color3.fromRGB
  30.  
  31. local cf = CFrame.new
  32. local euler = CFrame.fromEulerAnglesXYZ
  33. local angles = CFrame.Angles
  34.  
  35. local RW,LW,RH,LH,HW
  36.  
  37. local necko = CFrame.new(0, 1.5, 0)
  38. local RootCF = euler(-1.57,0,3.14)
  39.  
  40. local Me = Player.Name
  41. local PlayerMode = "Normal"
  42. local ModeOfSans = 1
  43. local animpose = "Standing"
  44. local Debounce_Animation = false
  45. local change = 3
  46. local sine = 0
  47. local val = 3
  48. local isattack = false
  49.  
  50. local Charge = {}
  51. local Debouce = {}
  52. local Held = {}
  53. local Keep = {}
  54.  
  55. local ForceField = Instance.new("ForceField",Character)
  56. ForceField.Visible = false
  57. Humanoid.MaxHealth = math.huge
  58. Humanoid.Health = Humanoid.MaxHealth
  59.  
  60. --//======================================\\
  61. --||            Main&Function;
  62. --\\======================================//
  63.  
  64. spawn(function()
  65.     Character:FindFirstChild("Body Colors"):Destroy()
  66.     Head:FindFirstChildOfClass("Decal"):Destroy()
  67. end)
  68.  
  69. for i, v in pairs(Character:GetChildren()) do
  70.     if v:IsA("Part") then
  71.         v.BrickColor = BrickColor.White()
  72.     end
  73. end
  74.  
  75. for i, v in pairs(Backpack:GetChildren()) do
  76.     if v:IsA("Tool") then
  77.         v:Destroy()
  78.     end
  79. end
  80.  
  81. -- ReNew Accessory, Shirt, Pants
  82.  
  83. for i, v in pairs(Character:GetChildren()) do
  84.     if v:IsA("Accessory") then
  85.         v:Destroy()
  86.     end
  87. end
  88.  
  89. for i, v in pairs(Character:GetChildren()) do
  90.     if v:IsA("Shirt") then
  91.         v:Destroy()
  92.     end
  93. end
  94.  
  95. for i, v in pairs(Character:GetChildren()) do
  96.     if v:IsA("Pants") then
  97.         v:Destroy()
  98.     end
  99. end
  100.  
  101. wait()
  102. local Shirt = Instance.new("Shirt",Character)
  103. Shirt.Name = "Shirt"
  104.  
  105. local Pants = Instance.new("Pants",Character)
  106. Pants.Name = "Pants"
  107.  
  108. wait()
  109. Shirt.ShirtTemplate = "rbxassetid://1696539845"
  110. Pants.PantsTemplate = "rbxassetid://1216922932"
  111.  
  112. RemoveOutlines = function(part)
  113.     part.BackSurface,part.BottomSurface,part.FrontSurface,part.LeftSurface,part.RightSurface,part.TopSurface = 10,10,10,10,10,10
  114. end
  115.  
  116. function CreatePart(Parent, Material, Reflectance, Transparency, Anchored, CanCollide, RGBColor3, Name, Size)
  117.     local Part = Instance.new("Part")
  118.         Part.Parent = Parent
  119.         Part.Reflectance = Reflectance
  120.         Part.Transparency = Transparency
  121.         Part.CanCollide = CanCollide
  122.         Part.Anchored = Anchored
  123.         Part.Locked = true
  124.         Part.Color = RGBColor3
  125.         Part.Name = Name
  126.         Part.Size = Size
  127.         Part.Material = Material
  128.         RemoveOutlines(Part)
  129.     return Part
  130. end
  131.  
  132. function CreateMesh(Mesh, Parent, MeshType, MeshId, OffSet, Scale)
  133.     local Msh = Instance.new(Mesh)
  134.         Msh.Parent = Parent
  135.         Msh.Offset = OffSet
  136.         Msh.Scale = Scale
  137.         if Mesh == "SpecialMesh" then
  138.             Msh.MeshType = MeshType
  139.             Msh.MeshId = MeshId
  140.         end
  141.     return Msh
  142. end
  143.        
  144. function CreateWeld(Parent, Part0, Part1, C0, C1)
  145.     local Weld = Instance.new("Weld")
  146.         Weld.Parent = Parent
  147.         Weld.Part0 = Part0
  148.         Weld.Part1 = Part1
  149.         Weld.C0 = C0
  150.         Weld.C1 = C1
  151.     return Weld
  152. end
  153.  
  154. function CreateSound(id, par, vol, pit, loop, destroyended)
  155.     coroutine.resume(coroutine.create(function()
  156.         local S = Instance.new("Sound")
  157.             S.Volume = vol
  158.             S.Pitch = pit or 1
  159.             S.SoundId = "rbxassetid://" ..id
  160.             S.Parent = par or workspace
  161.             S.Looped = loop
  162.             S:Play()
  163.         if destroyended == true then
  164.             spawn(function()
  165.                 S.Ended:connect(function()
  166.                     S:Destroy()
  167.                 end)
  168.             end)
  169.         end
  170.     end))
  171. end
  172.  
  173. function CreateParticleEmitter(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  174.     local fp = Instance.new("ParticleEmitter")
  175.         fp.Parent = Parent
  176.         fp.Color = ColorSequence.new(Color1, Color2)
  177.         fp.LightEmission = LightEmission
  178.         fp.Size = Size
  179.         fp.Texture = Texture
  180.         fp.Transparency = Transparency
  181.         fp.ZOffset = ZOffset
  182.         fp.Acceleration = Accel
  183.         fp.Drag = Drag
  184.         fp.LockedToPart = LockedToPart
  185.         fp.VelocityInheritance = VelocityInheritance
  186.         fp.EmissionDirection = EmissionDirection
  187.         fp.Enabled = Enabled
  188.         fp.Lifetime = LifeTime
  189.         fp.Rate = Rate
  190.         fp.Rotation = Rotation
  191.         fp.RotSpeed = RotSpeed
  192.         fp.Speed = Speed
  193.         fp.VelocitySpread = VelocitySpread
  194.     return fp
  195. end
  196.  
  197. function Hurt(hit, dmg, notdamgewith)
  198.     if hit.Parent then
  199.         -- Bleeding
  200.         --[[spawn(function()
  201.             if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit.Parent:FindFirstChild("Corpse") and hit.Parent.Name ~= notdamgewith then
  202.                 local TorsoPos = hit.Parent:FindFirstChild("Torso")
  203.                 Bleeding(TorsoPos,bloodamount)
  204.             end
  205.         end)--]]
  206.         -- OnDeath_Ragdoll
  207.        --[[ spawn(function()
  208.             if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= notdamgewith then
  209.                 local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  210.                 local human2 = hit.Parent:FindFirstChild("Corpse")
  211.                 if human2 == nil then
  212.                     if human.Health == 0 then
  213.                         local child = human.Parent
  214.                         if child:FindFirstChild("Torso") then
  215.                             child:FindFirstChild("Torso").CFrame = child:FindFirstChild("Torso").CFrame * angles(math.rad(2), math.rad(0), math.rad(0))
  216.                             local TorsoPos = hit.Parent:FindFirstChild("Torso")
  217.                             --Ragdoll(child,Torso,true)
  218.                         end
  219.                     end
  220.                 end
  221.             end
  222.         end)--]]
  223.         -- Damage
  224.         if hit.Parent.Name == "box" then hit.Parent:Destroy() end
  225.         local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  226.         if hum then
  227.             if hum.Parent.Name ~= notdamgewith then
  228.                 if dmg == "Kill" or hum.Health > 100000 then
  229.                     hit.Parent:BreakJoints()
  230.                     return true
  231.                 else
  232.                     if math.random(0, 100) == 50 then
  233.                         hum.Health = hum.Health - dmg*1*2.5
  234.                     else
  235.                         hum.Health = hum.Health -dmg*1
  236.                     end
  237.                     return true
  238.                 end
  239.             end
  240.         end
  241.     end
  242. end
  243.  
  244. local function lerp(a,b,c)
  245.     return a+(b-a)*c  
  246. end
  247.  
  248. local function rndRange(rng)
  249.     return math.random(-rng*1000,rng*1000)/1000
  250. end
  251.  
  252. function CastRay(startPos,endPos,range,ignoreList)
  253.     local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  254.     local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Character},false,true)
  255.     return part,pos,norm,(pos and (startPos-pos).magnitude)
  256. end
  257.  
  258. function Sticky(x, y)
  259.     local weld = Instance.new("Weld")
  260.     weld.Part0 = x
  261.     weld.Part1 = y
  262.    
  263.     local HitPos = x.Position
  264.     local CJ = CFrame.new(HitPos)
  265.     local C0 = x.CFrame:inverse() *CJ
  266.     local C1 = y.CFrame:inverse() * CJ
  267.    
  268.     weld.C0 = C0
  269.     weld.C1 = C1
  270.     weld.Parent = y
  271. end
  272.  
  273. function Bleeding(Pos,Amount)
  274.     for i = 1, Amount do
  275.         local randsize = math.random(0.8,1.2)
  276.         local Bleed = CreatePart(Pos,Enum.Material.Plastic,0,0,false,true,RGBColor(math.random(215,255),0,0),"Blood",Vector3.new(randsize,0.4,randsize))
  277.         Bleed.CFrame = Pos.CFrame
  278.         Debris:AddItem(Bleed,math.random(5,10))
  279.         swait()
  280.     end
  281. end
  282.  
  283. function Ragdoll(Character2,CharTorso,KeepArms)
  284.     coroutine.resume(coroutine.create(function()
  285.         Character2:BreakJoints()
  286.         swait()
  287.         local hum = Character2:findFirstChild("Humanoid")
  288.         hum:remove()
  289.         local function Scan(ch)
  290.             local e
  291.             for e = 1,#ch do
  292.                 Scan(ch[e]:GetChildren())
  293.                 if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  294.                     ch[e]:remove()
  295.                 end
  296.             end
  297.         end
  298.         local NEWHUM = Instance.new("Humanoid")
  299.         NEWHUM.Name = "Corpse"
  300.         NEWHUM.Health = 0
  301.         NEWHUM.MaxHealth = 0
  302.         NEWHUM.PlatformStand = true
  303.         NEWHUM.Parent = Character2
  304.         NEWHUM.DisplayDistanceType = "Viewer"
  305.    
  306.         local ch = Character2:GetChildren()
  307.         local i
  308.         for i = 1,#ch do
  309.             if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  310.                 ch[i]:remove()
  311.             end
  312.         end
  313.    
  314.         local Torso2 = Character2.Torso
  315.         local movevector = Vector3.new()
  316.        
  317.         if Torso2 then
  318.             movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  319.             local Head = Character2:FindFirstChild("Head")
  320.             local Face = Head:FindFirstChildOfClass("Decal")
  321.             Face.Texture = "rbxassetid://26619042"
  322.             if Head then
  323.                 local Neck = Instance.new("Weld")
  324.                 Neck.Name = "Neck"
  325.                 Neck.Part0 = Torso2
  326.                 Neck.Part1 = Head
  327.                 Neck.C0 = CFrame.new(0, 1.5, 0)
  328.                 Neck.C1 = CFrame.new()
  329.                 Neck.Parent = Torso2
  330.    
  331.             end
  332.             local Limb = Character2:FindFirstChild("Right Arm")
  333.             if Limb and KeepArms == true then
  334.    
  335.                 Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  336.                 local Joint = Instance.new("Glue")
  337.                 Joint.Name = "RightShoulder"
  338.                 Joint.Part0 = Torso2
  339.                 Joint.Part1 = Limb
  340.                 Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  341.                 Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  342.                 Joint.Parent = Torso2
  343.    
  344.                 local B = Instance.new("Part")
  345.                 B.TopSurface = 0
  346.                 B.BottomSurface = 0
  347.                 B.formFactor = "Symmetric"
  348.                 B.Size = Vector3.new(1, 1, 1)
  349.                 B.Transparency = 1
  350.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  351.                 B.Parent = Character2
  352.                 local W = Instance.new("Weld")
  353.                 W.Part0 = Limb
  354.                 W.Part1 = B
  355.                 W.C0 = CFrame.new(0, -0.5, 0)
  356.                 W.Parent = Limb
  357.    
  358.             end
  359.             local Limb = Character2:FindFirstChild("Left Arm")
  360.             if Limb and KeepArms == true then
  361.    
  362.                 Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  363.                 local Joint = Instance.new("Glue")
  364.                 Joint.Name = "LeftShoulder"
  365.                 Joint.Part0 = Torso2
  366.                 Joint.Part1 = Limb
  367.                 Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  368.                 Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  369.                 Joint.Parent = Torso2
  370.    
  371.                 local B = Instance.new("Part")
  372.                 B.TopSurface = 0
  373.                 B.BottomSurface = 0
  374.                 B.formFactor = "Symmetric"
  375.                 B.Size = Vector3.new(1, 1, 1)
  376.                 B.Transparency = 1
  377.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  378.                 B.Parent = Character2
  379.                 local W = Instance.new("Weld")
  380.                 W.Part0 = Limb
  381.                 W.Part1 = B
  382.                 W.C0 = CFrame.new(0, -0.5, 0)
  383.                 W.Parent = Limb
  384.    
  385.             end
  386.             local Limb = Character2:FindFirstChild("Right Leg")
  387.             if Limb then
  388.    
  389.                 Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  390.                 local Joint = Instance.new("Glue")
  391.                 Joint.Name = "RightHip"
  392.                 Joint.Part0 = Torso2
  393.                 Joint.Part1 = Limb
  394.                 Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  395.                 Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  396.                 Joint.Parent = Torso2
  397.    
  398.                 local B = Instance.new("Part")
  399.                 B.TopSurface = 0
  400.                 B.BottomSurface = 0
  401.                 B.formFactor = "Symmetric"
  402.                 B.Size = Vector3.new(1, 1, 1)
  403.                 B.Transparency = 1
  404.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  405.                 B.Parent = Character2
  406.                 local W = Instance.new("Weld")
  407.                 W.Part0 = Limb
  408.                 W.Part1 = B
  409.                 W.C0 = CFrame.new(0, -0.5, 0)
  410.                 W.Parent = Limb
  411.    
  412.             end
  413.             local Limb = Character2:FindFirstChild("Left Leg")
  414.             if Limb then
  415.    
  416.                 Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  417.                 local Joint = Instance.new("Glue")
  418.                 Joint.Name = "LeftHip"
  419.                 Joint.Part0 = Torso2
  420.                 Joint.Part1 = Limb
  421.                 Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  422.                 Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  423.                 Joint.Parent = Torso2
  424.    
  425.                 local B = Instance.new("Part")
  426.                 B.TopSurface = 0
  427.                 B.BottomSurface = 0
  428.                 B.formFactor = "Symmetric"
  429.                 B.Size = Vector3.new(1, 1, 1)
  430.                 B.Transparency = 1
  431.                 B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  432.                 B.Parent = Character2
  433.                 local W = Instance.new("Weld")
  434.                 W.Part0 = Limb
  435.                 W.Part1 = B
  436.                 W.C0 = CFrame.new(0, -0.5, 0)
  437.                 W.Parent = Limb
  438.    
  439.             end
  440.             --[
  441.             local Bar = Instance.new("Part")
  442.             Bar.TopSurface = 0
  443.             Bar.BottomSurface = 0
  444.             Bar.formFactor = "Symmetric"
  445.             Bar.Size = Vector3.new(1, 1, 1)
  446.             Bar.Transparency = 1
  447.             Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  448.             Bar.Parent = Character2
  449.             local Weld = Instance.new("Weld")
  450.             Weld.Part0 = Torso2
  451.             Weld.Part1 = Bar
  452.             Weld.C0 = CFrame.new(0, 0.5, 0)
  453.             Weld.Parent = Torso2
  454.             --]]
  455.         end
  456.         Character2.Parent = workspace
  457.        
  458.         Debris:AddItem(Character2,9)
  459.         return Character2,Torso2
  460.     end))
  461. end
  462.  
  463. local walkspeed = nil
  464. local jumppower = nil
  465.  
  466. local GetValueWS_JP = function(hum)
  467.     local GotValueWS = hum.WalkSpeed
  468.     local GotValueJP = hum.JumpPower
  469.     walkspeed = GotValueWS
  470.     jumppower = GotValueJP
  471. end
  472.  
  473. local StoreWS_JP = function(hum)
  474.     hum.WalkSpeed = 0
  475.     hum.JumpPower = 0
  476. end
  477.  
  478. local ReleaseWS_JP = function(hum)
  479.     hum.WalkSpeed = walkspeed
  480.     hum.JumpPower = jumppower
  481. end
  482.  
  483. local KeyAndAnimation = function(yes_or_no)
  484.     isattack = yes_or_no
  485.     Debounce_Animation = yes_or_no
  486. end
  487.  
  488. function ThrowObj(parent,direction,speedthrown)
  489.     local bv = Instance.new("BodyVelocity",parent)
  490.     bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  491.     bv.Velocity = direction.CFrame.lookVector * speedthrown
  492.     bv.P = 1
  493.     coroutine.resume(coroutine.create(function()
  494.         wait()
  495.         bv:Destroy()
  496.     end))
  497. end
  498.  
  499. local ThemeMusic = Instance.new("Sound",Head)
  500. ThemeMusic.Name = "Theme Sans AU"
  501. ThemeMusic.SoundId = "rbxassetid://348208939"
  502. ThemeMusic.Volume = 1
  503. ThemeMusic.Looped = true
  504. ThemeMusic.PlaybackSpeed = 0.675
  505. ThemeMusic:Play()
  506.  
  507. -- Magical Eye
  508. local EyeMagicModel = Character:FindFirstChild("EyeMagicModel") or Instance.new("Model",Character)
  509. EyeMagicModel.Name = "EyeMagicModel"
  510. local MagicEye = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(4, 175, 236), "Effect", Vector3.new(0.1275, 0.1275, 0.1275))
  511. local WeldMagicEye = CreateWeld(MagicEye, MagicEye, Head, cf(0.175, -0.125, 0.575)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
  512. local MeshMagicEye = CreateMesh("SpecialMesh", MagicEye, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  513.  
  514. local MagicEye2 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(0, 0, 0), "Effect", Vector3.new(0.25, 0.25, 0.25))
  515. local WeldMagicEye2 = CreateWeld(MagicEye2, MagicEye2, Head, cf(-0.175, -0.125, 0.5)*angles(0, 0, 0),   cf(0, 0, 0)*angles(0, 0, 0))
  516. local MeshMagicEye2 = CreateMesh("SpecialMesh", MagicEye2, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  517.  
  518. local MagicEye3 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(255, 255, 255), "Effect", Vector3.new(0.1275, 0.1275, 0.1275))
  519. local WeldMagicEye3 = CreateWeld(MagicEye3, MagicEye3, Head, cf(-0.175, -0.125, 0.575)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
  520. local MeshMagicEye3 = CreateMesh("SpecialMesh", MagicEye3, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  521.  
  522. local MagicEye4 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(0, 0, 0), "Effect", Vector3.new(0.25, 0.25, 0.25))
  523. local WeldMagicEye4 = CreateWeld(MagicEye4, MagicEye4, Head, cf(0.175, -0.125, 0.5)*angles(0, 0, 0),    cf(0, 0, 0)*angles(0, 0, 0))
  524. local MeshMagicEye4 = CreateMesh("SpecialMesh", MagicEye4, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  525.  
  526. local Equip = {
  527.     ['BrushInkSans'] = nil
  528. }
  529.  
  530. local Active = {
  531.     ["KnifeKillerSans"] = false,
  532.     ["BrushInkSans"] = false
  533. }
  534.  
  535. local GetItems = {}
  536.  
  537. function ClearItemsAll()
  538.     coroutine.resume(coroutine.create(function()
  539.         for i = 1, #GetItems do
  540.             GetItems[i]:Destroy()
  541.         end
  542.     end))
  543. end
  544.  
  545. function ChangeEyes(c1,c2,c3,c4 ,ma1,ma2,ma3,ma4)
  546.     MagicEye.Color = c1
  547.     MagicEye2.Color = c2
  548.     MagicEye3.Color = c3
  549.     MagicEye4.Color = c4
  550.     MagicEye.Material = ma1
  551.     MagicEye2.Material = ma2
  552.     MagicEye3.Material = ma3
  553.     MagicEye4.Material = ma4
  554. end
  555.  
  556. local AnimationKnife_KillerSans = nil
  557. local Knife_KillerSans = nil
  558. local BrushTrail = nil
  559.  
  560. function FindNearestTorso(Position, Distance, SinglePlayer)
  561.     if SinglePlayer then
  562.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  563.     end
  564.     local List = {}
  565.     for i, v in pairs(workspace:GetChildren()) do
  566.         if v:IsA("Model") then
  567.             if v:findFirstChild("Torso") then
  568.                 if v ~= Character then
  569.                     if (v.Torso.Position - Position).magnitude <= Distance then
  570.                         table.insert(List, v)
  571.                     end
  572.                 end
  573.             end
  574.             if v:FindFirstChildOfClass("Model") then
  575.                 v = v:FindFirstChildOfClass("Model")
  576.                 if v:findFirstChild("Torso") then
  577.                     if v ~= Character then
  578.                         if (v.Torso.Position - Position).magnitude <= Distance then
  579.                             table.insert(List, v)
  580.                         end
  581.                     end
  582.                 end
  583.             end
  584.         end
  585.     end
  586.     return List
  587. end
  588.  
  589. local Transform = {
  590.     ["Sans_UT"] = function()
  591.         ModeOfSans = 1
  592.         ClearItemsAll()
  593.         --Music Theme
  594.         ThemeMusic.SoundId = "rbxassetid://348208939"
  595.         ThemeMusic.PlaybackSpeed = 0.675
  596.         --Shirt & Pants
  597.         Shirt.ShirtTemplate = "rbxassetid://1696539845"
  598.         Pants.PantsTemplate = "rbxassetid://1216922932"
  599.         --EyeMagic
  600.         ChangeEyes(RGBColor(4, 175, 236),RGBColor(0, 0, 0),RGBColor(255, 255, 255),RGBColor(0, 0, 0) ,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon)
  601.         workspace:FindFirstChild("Knife's Killer Sans"):Destroy()
  602.         workspace:FindFirstChild("Brush's Ink Sans"):Destroy()
  603.     end;
  604.    
  605.     ["Killer_Sans"] = function()
  606.         ModeOfSans = 2
  607.         --Music Theme
  608.         ThemeMusic.PlaybackSpeed = 1
  609.         ThemeMusic.SoundId = "rbxassetid://1007722135"
  610.         --Shirt & Pants
  611.         Shirt.ShirtTemplate = "rbxassetid://440613737"
  612.         Pants.PantsTemplate = "rbxassetid://205029080"
  613.         --EyeMagic
  614.         ChangeEyes(RGBColor(10, 10, 10),RGBColor(0, 0, 0),RGBColor(255, 255, 255),RGBColor(0, 0, 0) ,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon)
  615.         --Special Item
  616.         local Knife = workspace:FindFirstChild("Knife's Killer Sans")
  617.         if Knife == nil then
  618.             ClearItemsAll()
  619.             Knife = Instance.new("Model",workspace)
  620.         else
  621.             return
  622.         end
  623.         Knife.Name = "Knife's Killer Sans"
  624.         local KnifeKillerSans = CreatePart(Knife, Enum.Material.Plastic, 0, 0, false, false, RGBColor(0, 0, 0), "Knife", Vector3.new(.4, 3, .7))
  625.         KnifeKillerSans.Touched:connect(function(Hit)
  626.             if Active["KnifeKillerSans"] == true then
  627.                 Hurt(Hit, math.random(15, 50), Me)
  628.             end
  629.         end)
  630.         local MeshKnifeKiller = CreateMesh("SpecialMesh", KnifeKillerSans, "FileMesh", "rbxassetid://121944778", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))      
  631.         MeshKnifeKiller.TextureId = "http://www.roblox.com/asset/?id=144012208"
  632.         local WeldKnife = CreateWeld(KnifeKillerSans, KnifeKillerSans, RightArm, cf(0, -1.25, -0.75)*angles(math.rad(90), 0, math.rad(180)),    cf(0, 0, 0)*angles(0, 0, 0))
  633.         AnimationKnife_KillerSans = WeldKnife
  634.         Knife_KillerSans = KnifeKillerSans
  635.        
  636.         local RedCircle = Instance.new("Model",Character)
  637.         RedCircle.Name = "RedCircle"
  638.         local circle = CreatePart(RedCircle,Enum.Material.Neon,0,0,false,false,RGBColor(255,0,0),"Circle",Vector3.new(0.5,0.125,0.5))
  639.         local weldredcircle = CreateWeld(circle,circle,Torso,cf(0,-0.475,0)*angles(math.rad(90),0,0),cf(0,0,0)*angles(0,0,0))
  640.         local meshcircle = CreateMesh("CylinderMesh",circle,"","",Vector3.new(0,0,0),Vector3.new(1,1,1))
  641.         local hollowcircle = CreatePart(circle,Enum.Material.Neon,0,0,false,false,RGBColor(255,0,0),"Circle",Vector3.new(0.75,0.75,0.125))
  642.         local weldhollowcircle = CreateWeld(hollowcircle,hollowcircle,Torso,cf(0,0,0.475)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
  643.         local meshhollowcircle = CreateMesh("SpecialMesh",hollowcircle,"FileMesh","rbxassetid://3270017",Vector3.new(0,0,0),Vector3.new(0.75,0.75,0.75))
  644.        
  645.         local Tear = Instance.new("Model",Character)
  646.         Tear.Name = "BloodTear"
  647.         local BloodOnEye = CreatePart(Tear,Enum.Material.Concrete,0,0,false,false,RGBColor(15,15,15),"Blood",Vector3.new(0.05,0.5,0.05))
  648.         local WeldBloodOnEye = CreateWeld(BloodOnEye,BloodOnEye,Head,cf(0.15,0.125,0.6)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
  649.         local BloodOnEye2 = CreatePart(Tear,Enum.Material.Concrete,0,0,false,false,RGBColor(15,15,15),"Blood",Vector3.new(0.05,0.35,0.05))
  650.         local WeldBloodOnEye2 = CreateWeld(BloodOnEye2,BloodOnEye2,Head,cf(0.225,0.105,0.6)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
  651.        
  652.         table.insert(GetItems, Knife)
  653.         table.insert(GetItems, RedCircle)
  654.         table.insert(GetItems, Tear)
  655.     end;
  656.    
  657.     ["Ink_Sans"] = function()
  658.         ModeOfSans = 3
  659.         --Music Theme
  660.         ThemeMusic.PlaybackSpeed = 1
  661.         ThemeMusic.SoundId = "rbxassetid://928385983"
  662.         --Shirt & Pants
  663.         Shirt.ShirtTemplate = "rbxassetid://525744362"
  664.         Pants.PantsTemplate = "rbxassetid://525743888"
  665.         --EyeMagic
  666.         ChangeEyes(RGBColor(4, 175, 236),RGBColor(0, 0, 0),RGBColor(245, 205, 48),RGBColor(0, 0, 0) ,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon)
  667.         --Special Item
  668.         local Brush = workspace:FindFirstChild("Brush's Ink Sans")
  669.         if Brush == nil then
  670.             ClearItemsAll()
  671.             Brush = Instance.new("Model",workspace)
  672.         else
  673.             return
  674.         end
  675.         Brush.Name = "Brush's Ink Sans"
  676.         local Handle = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(105, 64, 40), "Handle", Vector3.new(1, 10, 1))
  677.         local MakeHolding = CreateWeld(Handle,Handle,Torso,cf(0, -2, -0.75)*angles(math.rad(0), 0, math.rad(30)),   cf(0, 0, 0)*angles(0, 0, 0))
  678.         local MeshCy = CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0,0,0), Vector3.new(0.75,1,0.75))
  679.        
  680.         local P1 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(255, 255, 255), "Part", Vector3.new(1.1, 1.5, 1.1))
  681.         local MakeP1Holding = CreateWeld(P1,P1,Handle,cf(0, 3, 0)*angles(0,0,0),    cf(0, 0, 0)*angles(0, 0, 0))
  682.         local MeshP1Cy = CreateMesh("CylinderMesh", P1, "", "", Vector3.new(0,0,0), Vector3.new(1,1,1))
  683.        
  684.         local P2 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(255, 255, 255), "Part", Vector3.new(1.1, 1.5, 1.1))
  685.         local MakeP2Holding = CreateWeld(P2,P2,Handle,cf(0, -2, 0)*angles(0,0,0),   cf(0, 0, 0)*angles(0, 0, 0))
  686.         local MeshP2Cy = CreateMesh("CylinderMesh", P2, "", "", Vector3.new(0,0,0), Vector3.new(1,1,1))
  687.        
  688.         local P3 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(124, 92, 70), "Part", Vector3.new(1.5, 1.75, 1.5))
  689.         local MakeP3Holding = CreateWeld(P3,P3,Handle,cf(0, -3, 0)*angles(0,0,0),   cf(0, 0, 0)*angles(0, 0, 0))
  690.         local MeshP3Cy = CreateMesh("SpecialMesh", P3, "FileMesh", "rbxassetid://1185246", Vector3.new(0,0,0), Vector3.new(3, 3, 3))
  691.        
  692.         local P4 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(105, 64, 40), "Part", Vector3.new(1.5, 1.75, 1.5))
  693.         local MakeP4Holding = CreateWeld(P4,P4,Handle,cf(0, -4.5, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
  694.         local MeshP4Cy = CreateMesh("SpecialMesh", P4, "FileMesh", "rbxassetid://1033714", Vector3.new(0,0,0), Vector3.new(1.097, 3.5, 1.097))
  695.        
  696.         local P5 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(0, 0, 0), "Part", Vector3.new(0.5, 0.75, 0.5))
  697.         local MakeP5Holding = CreateWeld(P5,P5,Handle,cf(0, -5.5, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
  698.         local MeshP5Cy = CreateMesh("SpecialMesh", P5, "FileMesh", "rbxassetid://1033714", Vector3.new(0,0,0), Vector3.new(0.4, 1.175, 0.4))
  699.        
  700.         Equip.BrushInkSans = MakeHolding
  701.        
  702.         local PosAtt1 = CreatePart(Brush, Enum.Material.Plastic, 0, 1, false, false, RGBColor(0, 0, 0), "PosTrail1", Vector3.new(0.05, 0.05, 0.05))
  703.         local MakeA1Holding = CreateWeld(PosAtt1,PosAtt1,Handle,cf(0, -5.1, 0)*angles(0,0,0),   cf(0, 0, 0)*angles(0, 0, 0))
  704.         local PosAtt2 = CreatePart(Brush, Enum.Material.Plastic, 0, 1, false, false, RGBColor(0, 0, 0), "PosTrail2", Vector3.new(0.05, 0.05, 0.05))
  705.         local MakeA2Holding = CreateWeld(PosAtt2,PosAtt2,Handle,cf(0, -5.9, 0)*angles(0,0,0),   cf(0, 0, 0)*angles(0, 0, 0))      
  706.        
  707.         local A0 = Instance.new('Attachment',PosAtt1)
  708.         local A1 = Instance.new('Attachment',PosAtt2)
  709.        
  710.         local tl1 = Instance.new('Trail',P5)
  711.         tl1.Attachment0 = A0
  712.         tl1.Attachment1 = A1
  713.         --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  714.         tl1.LightEmission = 0.5
  715.         tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  716.         tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  717.         tl1.Lifetime = 0.6
  718.        
  719.         P4.Touched:connect(function(Hit)
  720.             if Active["BrushInkSans"] == true then
  721.                 Hurt(Hit, math.random(15, 50), Me)
  722.             end
  723.         end)
  724.         BrushTrail = tl1
  725.        
  726.         table.insert(GetItems, Brush)
  727.     end;
  728.    
  729.     ["Error_Sans"] = function()
  730.         ModeOfSans = 4
  731.         --Music Theme
  732.         ThemeMusic.PlaybackSpeed = 1
  733.         ThemeMusic.SoundId = "rbxassetid://576474523"
  734.         --Shirt & Pants
  735.         Shirt.ShirtTemplate = "rbxassetid://2096464105"
  736.         Pants.PantsTemplate = "rbxassetid://2039333738"
  737.         --EyeMagic
  738.         ChangeEyes(RGBColor(245, 245, 0),RGBColor(85, 0, 0),RGBColor(255, 255, 255),RGBColor(85, 0, 0) ,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon)
  739.         ClearItemsAll()
  740.     end;
  741.    
  742.     ["Banish_Sans"] = function()
  743.         ModeOfSans = 5
  744.         --Music Theme
  745.         ThemeMusic.PlaybackSpeed = 1
  746.         ThemeMusic.SoundId = "rbxassetid://2918459867"
  747.         --Shirt & Pants
  748.         Shirt.ShirtTemplate = "rbxassetid://1137506582"
  749.         Pants.PantsTemplate = "rbxassetid://1277772125"
  750.         --EyeMagic
  751.         ChangeEyes(RGBColor(100, 100, 100),RGBColor(0, 0, 0),RGBColor(100, 100, 100),RGBColor(0, 0, 0) ,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon,Enum.Material.Neon)
  752.         ClearItemsAll()
  753.         local HoodModel = Instance.new("Model", Character)
  754.         HoodModel.Name = "Hood"
  755.         local HoodPart = CreatePart(HoodModel, Enum.Material.Plastic, 0, 0, false, false, RGBColor(100, 100, 100), "Hood", Vector3.new(1, 1, 1))
  756.         local HoodWeld = CreateWeld(HoodPart,HoodPart,Head,cf(0, 0, 0.0)*angles(math.rad(0), 0, math.rad(0)),   cf(0, 0, 0)*angles(0, 0, 0))
  757.         local HoodMesh = CreateMesh("SpecialMesh", HoodPart, "FileMesh", "rbxassetid://76062497", Vector3.new(0,0,0), Vector3.new(1.1, 1, 1.1))
  758.         local FadeFace = Instance.new("Model", Character)
  759.         FadeFace.Name = "FaceFading"
  760.         for i = 0, 1, 0.1 do
  761.             local PF = CreatePart(FadeFace, Enum.Material.Plastic, 0, i, false, false, RGBColor(0, 0, 0), "Hood", Vector3.new(0.1, 1.225, 1.225))
  762.             PF.Shape = Enum.PartType.Cylinder
  763.             local PFWeld = CreateWeld(PF,PF,Head,cf(0.35-i, 0, 0)*angles(math.rad(0), 0, math.rad(90)),   cf(0, 0, 0)*angles(0, 0, 0))
  764.         end
  765.        
  766.         table.insert(GetItems, FadeFace)
  767.         table.insert(GetItems, HoodModel)
  768.     end;
  769.    
  770.     ["Digi_Sans"] = function()
  771.         ModeOfSans = 6
  772.         --Music Theme
  773.         ThemeMusic.PlaybackSpeed = 1
  774.         ThemeMusic.SoundId = "rbxassetid://2174461898"
  775.     end;
  776.    
  777.     ["Timekid_Sans"] = function()
  778.         ModeOfSans = 7
  779.         --Music Theme
  780.         ThemeMusic.PlaybackSpeed = 1
  781.         ThemeMusic.SoundId = "rbxassetid://360042276"
  782.     end;
  783. }
  784.  
  785. local OriPos = nil
  786.  
  787. local StanceAction = {
  788.     Bone = function()
  789.         local n = math.random(5,10)
  790.             local BoneModel = Instance.new("Model",workspace)
  791.             BoneModel.Name = "Bone"
  792.             local Part1 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
  793.             Part1.Shape = Enum.PartType.Ball
  794.             local Part2 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
  795.             Part2.Shape = Enum.PartType.Ball
  796.             local Part3 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
  797.             Part3.Shape = Enum.PartType.Ball
  798.             local Part4 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
  799.             Part4.Shape = Enum.PartType.Ball
  800.             local Part5 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(n,0.8,0.8))
  801.             Part5.Shape = Enum.PartType.Cylinder
  802.            
  803.             local Weld1 = CreateWeld(Part1, Part1, Part5, cf(n/2, 0, 0.35)*angles(0, 0, 0),     cf(0, 0, 0)*angles(0, 0, 0))
  804.             local Weld2 = CreateWeld(Part2, Part2, Part5, cf(-n/2, 0, 0.35)*angles(0, 0, 0),        cf(0, 0, 0)*angles(0, 0, 0))
  805.             local Weld3 = CreateWeld(Part3, Part3, Part5, cf(n/2, 0, -0.35)*angles(0, 0, 0),        cf(0, 0, 0)*angles(0, 0, 0))
  806.             local Weld4 = CreateWeld(Part4, Part4, Part5, cf(-n/2, 0, -0.35)*angles(0, 0, 0),       cf(0, 0, 0)*angles(0, 0, 0))
  807.            
  808.             Part5.CFrame = Mouse.Hit + Vector3.new(0,math.random(1,7),0)
  809.             Part5.CFrame = Part5.CFrame * angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  810.            
  811.             local BodyVel = Instance.new('BodyVelocity',Part5)
  812.             BodyVel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  813.             BodyVel.Velocity = Vector3.new(0,0.1962,0)
  814.             BodyVel.P = 1
  815.             local BodyGyro = Instance.new('BodyGyro',Part5)
  816.             BodyGyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  817.             BodyGyro.P = 2e4          
  818.            
  819.             Part1.Touched:connect(function(Hit)
  820.                 Hurt(Hit, math.random(1,25), Me)
  821.             end)
  822.             Part2.Touched:connect(function(Hit)
  823.                 Hurt(Hit, math.random(1,25), Me)
  824.             end)
  825.             Part3.Touched:connect(function(Hit)
  826.                 Hurt(Hit, math.random(1,25), Me)
  827.             end)
  828.             Part4.Touched:connect(function(Hit)
  829.                 Hurt(Hit, math.random(1,25), Me)
  830.             end)
  831.             Part5.Touched:connect(function(Hit)
  832.                 Hurt(Hit, math.random(1,25), Me)
  833.             end)
  834.            
  835.         local SoundPing = CreateSound(138222365,Part5,5,1.5,false,true)
  836.            
  837.             Mouse.KeyUp:connect(function(Key)
  838.                 if ModeOfSans == 1 then
  839.                     if Key == "r" then
  840.                         Held[Key] = nil
  841.                         BodyVel.Velocity = Vector3.new(0,0.1962,0)
  842.                     end
  843.                 end
  844.             end)          
  845.            
  846.             Mouse.KeyDown:connect(function(Key)
  847.                 if ModeOfSans == 1 then
  848.                     if Key == "r" then
  849.                         Held[Key] = true
  850.                         while Held[Key] == true do
  851.                             if Held[Key] == nil then
  852.                                 return
  853.                             end
  854.                             BodyGyro.CFrame = CFrame.new(Part5.Position,Mouse.Hit.p)
  855.                             BodyVel.Velocity = Part5.CFrame.lookVector*300
  856.                             swait()
  857.                         end
  858.                     end
  859.                 end
  860.             end)
  861.         table.insert(GetItems, BoneModel)
  862.     end;
  863.    
  864.     GasterBlaster = function()
  865.         local aimPos = Mouse.Hit.p
  866.         local blasterhead = Instance.new("Part",Character)
  867.         blasterhead.Size = Vector3.new(6,6,6)
  868.         blasterhead.CanCollide = false
  869.         blasterhead.Anchored = true
  870.         blasterhead.Transparency = 1
  871.         local mesh=Instance.new("SpecialMesh",blasterhead)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  872.         mesh.Scale=Vector3.new(.075,.0725,.075)
  873.         local decal = Instance.new("Decal",blasterhead)
  874.         decal.Texture = "rbxassetid://441975828"
  875.         blasterhead.CFrame = CFrame.new(Character.Torso.CFrame:toWorldSpace(CFrame.new(math.random(-10,10),2,math.random(-10,10))).p,aimPos)
  876.         blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  877.         local s_up = CreateSound(422747271,blasterhead,10,1,false,true)
  878.         for i = 0, 1, 0.05 do
  879.             blasterhead.CFrame = CFrame.new(blasterhead.CFrame.p,aimPos)
  880.             blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  881.             blasterhead.Position = blasterhead.Position + Vector3.new(0,math.random(i,i+0.5),0)
  882.             swait()
  883.         end
  884.         spawn(function()
  885.             wait(1/10)
  886.             CreateSound(340722848,blasterhead,10,1,false,true)
  887.             --head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  888.             local ray = Ray.new(blasterhead.CFrame.p,(aimPos - blasterhead.CFrame.p).unit * 999)
  889.             local hit, pos = workspace:FindPartOnRay(ray,Character)
  890.             local dis = (blasterhead.CFrame.p - pos).magnitude
  891.             local rayPart = Instance.new("Part",workspace)
  892.             rayPart.Shape = Enum.PartType.Cylinder
  893.             rayPart.Material = "Neon"
  894.             rayPart.FormFactor = "Custom"
  895.             rayPart.BrickColor = BrickColor.new("White")
  896.             rayPart.Anchored = true
  897.             rayPart.CanCollide = false
  898.             rayPart.Size = Vector3.new(dis + 400,blasterhead.Size/2,blasterhead.Size/2)
  899.             rayPart.Touched:connect(function(Hit)
  900.                 Hurt(Hit,5,Me)
  901.             end)
  902.             local rayCFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  903.             rayPart.CFrame = rayCFrame
  904.             spawn(function()
  905.                 for i = 0, 1, .05 do
  906.                     local retardation = lerp(1.25,0.2,i)                  
  907.                     local ns = lerp(0.2,1,i)
  908.                     local trans = lerp(0,1.1,i)
  909.                     rayPart.Size = rayPart.Size + Vector3.new(ns,ns,ns)
  910.                     rayPart.Transparency = trans
  911.                     blasterhead.CFrame = blasterhead.CFrame + blasterhead.CFrame.lookVector * retardation
  912.                     rayPart.CFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  913.                     swait()
  914.                 end
  915.                 rayPart:Destroy()
  916.                 spawn(function()
  917.                     wait(2)
  918.                     blasterhead:Destroy()
  919.                 end)
  920.             end)
  921.             table.insert(GetItems, rayPart)
  922.         end)
  923.         table.insert(GetItems, blasterhead)
  924.     end;
  925.    
  926.     HugeGasterBlaster = function()
  927.         local aimPos = Mouse.Hit.p
  928.         local blasterhead = Instance.new("Part",Character)
  929.         blasterhead.Size = Vector3.new(20,20,20)
  930.         blasterhead.CanCollide = false
  931.         blasterhead.Anchored = true
  932.         blasterhead.Transparency = 1
  933.         local mesh=Instance.new("SpecialMesh",blasterhead)
  934.         mesh.MeshType="FileMesh"
  935.         mesh.MeshId="rbxassetid://431908407"
  936.         mesh.Scale=Vector3.new(0.25,0.225,0.25)
  937.         local decal = Instance.new("Decal",blasterhead)
  938.         decal.Texture = "rbxassetid://441975828"
  939.         blasterhead.CFrame = CFrame.new(Character.Torso.CFrame:toWorldSpace(CFrame.new(math.random(-20,20),1,math.random(-20,20))).p,aimPos)
  940.         blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  941.         local s_up = CreateSound(422747271,blasterhead,10,1,false,true)
  942.         for i = 0, 1, 0.05 do
  943.             local trans = lerp(0.75,1,i)
  944.             blasterhead.CFrame = CFrame.new(blasterhead.CFrame.p,aimPos)
  945.             blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  946.             blasterhead.Position = blasterhead.Position + Vector3.new(0,i+i,0)
  947.             swait()
  948.         end
  949.         spawn(function()
  950.             wait(2)
  951.             CreateSound(334702766,workspace,1,1,false,true)
  952.             --head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  953.             local ray = Ray.new(blasterhead.CFrame.p,(aimPos - blasterhead.CFrame.p).unit * 999)
  954.             local hit, pos = workspace:FindPartOnRay(ray,Character)
  955.             local dis = (blasterhead.CFrame.p - pos).magnitude
  956.             local rayPart = Instance.new("Part",workspace)
  957.             rayPart.Shape = Enum.PartType.Cylinder
  958.             rayPart.Material = "Neon"
  959.             rayPart.FormFactor = "Custom"
  960.             rayPart.BrickColor = BrickColor.new("White")
  961.             rayPart.Anchored = true
  962.             rayPart.CanCollide = false
  963.             rayPart.Size = Vector3.new(dis + 400,18,18)
  964.             rayPart.Touched:connect(function(Hit)
  965.                 Hurt(Hit,50,Me)
  966.             end)
  967.             local rayCFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  968.             rayPart.CFrame = rayCFrame
  969.             spawn(function()
  970.                 for i = 0, 2, .05 do
  971.                     local retardation = lerp(2,0.75,i)                
  972.                     local ns = lerp(0.3,1,i)
  973.                     local trans = lerp(0,1.1,i)
  974.                     rayPart.Size = rayPart.Size + Vector3.new(ns,ns,ns)
  975.                     rayPart.Transparency = trans
  976.                     blasterhead.CFrame = blasterhead.CFrame + blasterhead.CFrame.lookVector * retardation
  977.                     rayPart.CFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  978.                     swait()
  979.                 end
  980.                 rayPart:Destroy()
  981.                 wait(2)
  982.                 blasterhead:Destroy()
  983.             end)
  984.             table.insert(GetItems, rayPart)
  985.         end)
  986.         table.insert(GetItems, blasterhead)
  987.     end;
  988.    
  989.     GravityControl = function()
  990.         local Target = Mouse.Target
  991.         local TarTorso = Target.Parent:FindFirstChild("Torso")
  992.         if Target.Parent.Parent:FindFirstChildOfClass("Model") and Target.Parent:FindFirstChildOfClass("Humanoid") then
  993.             local MarkTarget = CreatePart(workspace,Enum.Material.Marble,0,0.4,false,false,RGBColor(0,0,235),"Marked",Vector3.new(2,1,1))
  994.             local MeshMark = CreateMesh("SpecialMesh",MarkTarget,"FileMesh","rbxassetid://14656345",Vector3.new(0,0,0),Vector3.new(0.05,0.05,0.05))
  995.             local WeldMark = CreateWeld(MarkTarget,MarkTarget,TarTorso, cf(0,0,-5)*angles(math.rad(90),0,0),    cf(0,0,0)*angles(0,0,0))
  996.            
  997.             local BodyVel = Instance.new('BodyVelocity',TarTorso)
  998.             BodyVel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  999.             BodyVel.Velocity = Vector3.new(0,0.1962,0)
  1000.             BodyVel.P = 1
  1001.             local BodyGyro = Instance.new('BodyGyro',TarTorso)
  1002.             BodyGyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1003.             BodyGyro.P = 2e4          
  1004.            
  1005.             Mouse.KeyUp:connect(function(Key)
  1006.                 if ModeOfSans == 1 then
  1007.                     if ModeOfSans == 1 then
  1008.                         if Key == "q" then
  1009.                             Held[Key] = nil
  1010.                             BodyVel.Velocity = Vector3.new(0,0,0)
  1011.                         end
  1012.                     end
  1013.                 end
  1014.             end)
  1015.            
  1016.             Mouse.KeyDown:connect(function(Key)
  1017.                 if ModeOfSans == 1 then
  1018.                     if Key == "q" then
  1019.                         Held[Key] = true
  1020.                         while Held[Key] == true do
  1021.                             if Held[Key] == nil or TarTorso.Parent:FindFirstChildOfClass("Humanoid").Health == 0 then
  1022.                                 return
  1023.                             end
  1024.                             BodyGyro.CFrame = CFrame.new(TarTorso.Position,Mouse.Hit.p)
  1025.                             BodyVel.Velocity = TarTorso.CFrame.lookVector*300
  1026.                             swait()
  1027.                         end
  1028.                     end
  1029.                 end
  1030.             end)
  1031.         end
  1032.     end;
  1033.    
  1034.     Teleport = function()
  1035.         HumanoidRootPart.CFrame = Mouse.Hit * CFrame.new(0, 2.8, 0)
  1036.         CreateSound(367453005,Head,1,1,false,true)
  1037.     end;
  1038.    
  1039.     Torture = function()
  1040.         local Target = Mouse.Target
  1041.         local TarTorso = Target.Parent:FindFirstChild("Torso")
  1042.         local TarHead = Target.Parent:FindFirstChild("Head")
  1043.         local TarLA = Target.Parent:FindFirstChild("Left Arm")
  1044.         local TarRA = Target.Parent:FindFirstChild("Right Arm")
  1045.         local TarLL = Target.Parent:FindFirstChild("Left Leg")
  1046.         local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
  1047.         if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL then
  1048.             KeyAndAnimation(true)
  1049.            
  1050.             HumanoidRootPart.CFrame = TarTorso.CFrame
  1051.             TarHead.Anchored = true
  1052.             GetValueWS_JP(Humanoid)
  1053.             StoreWS_JP(TarHum)
  1054.             StoreWS_JP(Humanoid)
  1055.             local Behind = CreateWeld(HumanoidRootPart,HumanoidRootPart,TarTorso,cf(0,0,-1.5)*angles(0,0,0),        cf(0,0,0)*angles(0,0,0))
  1056.             CreateSound(305685800,workspace,1,1,false,true)
  1057.            
  1058.             local frame = 10
  1059.             for i = 0, frame do
  1060.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1061.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.15)
  1062.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1063.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1064.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1065.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1066.                 swait()
  1067.             end
  1068.             for i = 0, frame do
  1069.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1070.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1071.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1072.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1073.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1074.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1075.                 swait()
  1076.             end
  1077.            
  1078.             frame = 20
  1079.             for i = 0, frame do
  1080.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1081.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
  1082.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
  1083.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
  1084.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1085.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1086.                 swait()
  1087.             end
  1088.             TarLA:BreakJoints()
  1089.             TarRA:BreakJoints()
  1090.             TarLA.Parent = TarTorso
  1091.             TarRA.Parent = TarTorso
  1092.             TarLA.CanCollide = true
  1093.             TarRA.CanCollide = true
  1094.             local WeldNewLA = CreateWeld(LeftArm,LeftArm,TarLA,cf(0,-1.5,0)*angles(math.rad(90),0,0),cf(0,0,0)*angles(0,0,0))
  1095.             local WeldNewRA = CreateWeld(RightArm,RightArm,TarRA,cf(0,-1.5,0)*angles(math.rad(90),0,0),cf(0,0,0)*angles(0,0,0))
  1096.             for i = 0, frame do
  1097.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1098.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
  1099.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(120), math.rad(0), math.rad(0)), 0.15)
  1100.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(120), math.rad(0), math.rad(0)), 0.15)
  1101.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1102.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1103.                 swait()
  1104.             end
  1105.            
  1106.             frame = 60
  1107.             for i = 0, frame do
  1108.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1109.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
  1110.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(260), math.rad(0), math.rad(-20)), 0.05)
  1111.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(260), math.rad(0), math.rad(20)), 0.05)
  1112.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1113.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1114.                 swait()
  1115.             end
  1116.            
  1117.             frame = 10
  1118.             for i = 0, frame do
  1119.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1120.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
  1121.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
  1122.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  1123.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1124.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1125.                 swait()
  1126.             end
  1127.             TarLA:BreakJoints()
  1128.             TarRA:BreakJoints()
  1129.             ThrowObj(TarLA,Head, math.random(40, 75))
  1130.             ThrowObj(TarRA,Head, math.random(40, 75))
  1131.            
  1132.             frame = 30
  1133.             for i = 0, frame do
  1134.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1135.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
  1136.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
  1137.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  1138.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1139.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1140.                 swait()
  1141.             end
  1142.            
  1143.             frame = 40
  1144.             for i = 0, frame do
  1145.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(-0.5,-0.5,0)     * angles(math.rad(0),math.rad(0),math.rad(20)),.15)
  1146.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1147.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(40), math.rad(0), math.rad(20)), 0.15)
  1148.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  1149.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1150.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1151.                 swait()
  1152.             end
  1153.             CreateSound(1386772138,Head,1,1,false,true)
  1154.            
  1155.             frame = 10
  1156.             for i = 0, frame do
  1157.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(-0.5,-0.5,0)     * angles(math.rad(0),math.rad(0),math.rad(20)),.15)
  1158.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1159.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(-110),math.rad(50),math.rad(190)), .3)
  1160.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  1161.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1162.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1163.                 swait()
  1164.             end
  1165.  
  1166.             --if TarTorso.Parent:FindFirstChild("Torso") then
  1167.                 --TarTorso.Parent:FindFirstChild("Torso").CFrame = TarTorso.Parent:FindFirstChild("Torso").CFrame * angles(math.rad(2), math.rad(0), math.rad(0))
  1168.                 --Ragdoll(TarTorso.Parent,Torso,true)
  1169.             --end
  1170.             TarTorso:BreakJoints()
  1171.             TarHead.Anchored = false
  1172.             ReleaseWS_JP(Humanoid)
  1173.             Behind:Destroy()
  1174.            
  1175.             KeyAndAnimation(false)
  1176.         end
  1177.     end;
  1178.    
  1179.     CutHead = function()
  1180.         local Target = Mouse.Target
  1181.         local TarTorso = Target.Parent:FindFirstChild("Torso")
  1182.         local TarHead = Target.Parent:FindFirstChild("Head")
  1183.         local TarLA = Target.Parent:FindFirstChild("Left Arm")
  1184.         local TarRA = Target.Parent:FindFirstChild("Right Arm")
  1185.         local TarLL = Target.Parent:FindFirstChild("Left Leg")
  1186.         local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
  1187.         if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL and TarHead then
  1188.             KeyAndAnimation(true)
  1189.            
  1190.             GetValueWS_JP(Humanoid)
  1191.             StoreWS_JP(TarHum)
  1192.             StoreWS_JP(Humanoid)
  1193.             HumanoidRootPart.CFrame = TarTorso.CFrame
  1194.            
  1195.             local Behind = CreateWeld(HumanoidRootPart,HumanoidRootPart,TarTorso,cf(0,0,-1.5)*angles(0,0,0),        cf(0,0,0)*angles(0,0,0))
  1196.             for i = 1, 20 do
  1197.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1198.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1199.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1200.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
  1201.                 swait()
  1202.             end
  1203.             for i = 1, 20 do
  1204.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1205.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1206.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1207.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5)         * angles(math.rad(160), math.rad(-20), math.rad(40)), 0.15)
  1208.                 swait()
  1209.             end
  1210.            
  1211.            
  1212.             --Ragdoll(TarTorso.Parent,Torso,true)
  1213.             TarTorso:BreakJoints()
  1214.             Behind:Destroy()
  1215.             local Fake = TarHead:Clone()
  1216.             Fake.Parent = TarHum
  1217.             TarHead:Destroy()
  1218.             Sticky(LeftArm,Fake)
  1219.  
  1220.             for i = 1, 30 do
  1221.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1222.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-10),math.rad(0),math.rad(0)),.15)
  1223.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1224.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -0.6)         * angles(math.rad(70), math.rad(0), math.rad(60)), 0.15)
  1225.                 swait()
  1226.             end
  1227.             for i = 1, 40 do
  1228.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1229.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
  1230.                 RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2)           * angles(math.rad(-25),math.rad(20),math.rad(190)), .15)
  1231.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -0.6)         * angles(math.rad(40), math.rad(0), math.rad(30)), 0.15)
  1232.                 swait()
  1233.             end
  1234.             for i = 1, 20 do
  1235.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1236.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
  1237.                 RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2)           * angles(math.rad(-75),math.rad(20),math.rad(210)), .25)
  1238.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -0.6)         * angles(math.rad(40), math.rad(0), math.rad(30)), 0.15)
  1239.                 swait()
  1240.             end
  1241.             CreateSound(171688984,Head,1,1,false,true)
  1242.             for i = 1, 20 do
  1243.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1244.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
  1245.                 RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2)           * angles(math.rad(-25),math.rad(20),math.rad(190)), .25)
  1246.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -0.6)         * angles(math.rad(40), math.rad(0), math.rad(30)), 0.15)
  1247.                 swait()
  1248.             end
  1249.             for i = 1, 20 do
  1250.                 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1251.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
  1252.                 RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2)           * angles(math.rad(-75),math.rad(20),math.rad(210)), .25)
  1253.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -0.6)         * angles(math.rad(40), math.rad(0), math.rad(30)), 0.15)
  1254.                 swait()
  1255.             end
  1256.            
  1257.             Fake:BreakJoints()
  1258.             CreateSound(171688984,Head,1,1,false,true)
  1259.             ReleaseWS_JP(Humanoid)
  1260.            
  1261.             KeyAndAnimation(false)
  1262.         end
  1263.     end;
  1264.    
  1265.     BrushAttack1 = function()
  1266.         KeyAndAnimation(true)
  1267.        
  1268.         Equip.BrushInkSans.Part1 = RightArm
  1269.         BrushTrail.Color = ColorSequence.new(BrickColor.new('Really black').Color,BrickColor.new('Lime green').Color)
  1270.         coroutine.resume(coroutine.create(function()
  1271.             for i = 1, 40 do
  1272.                 Equip.BrushInkSans.C0 = clerp(Equip.BrushInkSans.C0, cf(0, -1, 0.75) *angles(math.rad(0), 0, math.rad(-180)), .075)
  1273.                 swait()
  1274.             end
  1275.         end))
  1276.         for i = 1, 30 do
  1277.             RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.1) * angles(math.rad(70), math.rad(0), math.rad(40)), .1)
  1278.             LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0.1) * angles(math.rad(-40), math.rad(0), math.rad(40)), .1)
  1279.             swait()
  1280.         end
  1281.         Active["BrushInkSans"] = true
  1282.         for i = 1, 25 do
  1283.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), .15)
  1284.             swait()
  1285.         end
  1286.         BrushTrail.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  1287.         Active["BrushInkSans"] = false
  1288.        
  1289.         KeyAndAnimation(false)
  1290.     end;
  1291.    
  1292.     ErrorRemove = function()
  1293.         local Target = Mouse.Target
  1294.         local TarTorso = Target.Parent:FindFirstChild("Torso")
  1295.         local TarHead = Target.Parent:FindFirstChild("Head")
  1296.         local TarLA = Target.Parent:FindFirstChild("Left Arm")
  1297.         local TarRA = Target.Parent:FindFirstChild("Right Arm")
  1298.         local TarLL = Target.Parent:FindFirstChild("Left Leg")
  1299.         local TarRL = Target.Parent:FindFirstChild("Right Leg")
  1300.         local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
  1301.         if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL and TarHead then
  1302.             KeyAndAnimation(true)
  1303.            
  1304.             local RemovePart = CreatePart(workspace,Enum.Material.Neon,1,0,false,false,RGBColor(math.random(235,255),0,0),"ErrorPart",Vector3.new(TarTorso.Size.X*2,1,TarTorso.Size.X*2))
  1305.             local WeldRemovePart = CreateWeld(RemovePart,RemovePart,TarTorso,cf(0,2.5,0)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))        
  1306.                        
  1307.             swait()
  1308.             RemovePart.Anchored = true
  1309.             TarTorso.Anchored = true
  1310.            
  1311.             for i = 0, 1, 0.1 do
  1312.                 local ns = lerp(0.5,1,i)
  1313.                 RemovePart.Size = RemovePart.Size + Vector3.new(0,ns,0)
  1314.                 swait()
  1315.             end
  1316.            
  1317.             for i = 0, 1, 0.1 do
  1318.                 PixelBlockNeg(2,1,"Add",true,TarTorso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Really red"),0)
  1319.             end
  1320.            
  1321.             TarTorso:Destroy()
  1322.             TarHead:Destroy()
  1323.             TarLA:Destroy()
  1324.             TarRA:Destroy()
  1325.             TarLL:Destroy()
  1326.             TarRL:Destroy()
  1327.             local Character = TarHum.Parent
  1328.             if Character then
  1329.                 local FoundPlayer = game.Players[Character.Name]
  1330.                 if FoundPlayer ~= nil then
  1331.                     FoundPlayer.Parent = nil;
  1332.                 end
  1333.             end
  1334.            
  1335.             for i = 0, 1, 0.1 do
  1336.                 local ns = lerp(1,0.5,i)
  1337.                 RemovePart.Size = RemovePart.Size - Vector3.new(ns,ns+ns+ns,ns)
  1338.                 swait()
  1339.             end
  1340.            
  1341.             RemovePart:Destroy()
  1342.             KeyAndAnimation(false)
  1343.         end
  1344.     end;
  1345.    
  1346.     InfectionError = function()
  1347.         KeyAndAnimation(true)
  1348.         local speedearn = 0
  1349.         for i = 0, 10, 0.1 do
  1350.             swait()
  1351.             speedearn = speedearn + 0.1
  1352.             RH.C0=clerp(RH.C0,cf(0.5,-1.25,-0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1353.             LH.C0=clerp(LH.C0,cf(-0.5,-2,0.25)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1354.             RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1355.             Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1356.             RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  1357.             LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  1358.         end
  1359.        
  1360.         local Infected = function(v)
  1361.             spawn(function()--coroutine.resume(coroutine.create(function()
  1362.                 if v ~= Character then
  1363.                     local RemovePart = CreatePart(workspace,Enum.Material.Neon,1,0,false,false,RGBColor(math.random(235,255),0,0),"ErrorPart",Vector3.new(v.Torso.Size.X*2,1,v.Torso.Size.X*2))
  1364.                     local WeldRemovePart = CreateWeld(RemovePart,RemovePart,v.Torso,cf(0,2.5,0)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))        
  1365.                                
  1366.                     swait()
  1367.                     RemovePart.Anchored = true
  1368.                     v['Torso'].Anchored = true
  1369.                    
  1370.                     spawn(function()--coroutine.resume(coroutine.create(function()
  1371.                         for i = 0, 1, 0.1 do
  1372.                             local ns = lerp(0.5,1,i)
  1373.                             RemovePart.Size = RemovePart.Size + Vector3.new(0,ns,0)
  1374.                             swait()
  1375.                         end
  1376.                        
  1377.                         for i = 0, 1, 0.1 do
  1378.                             PixelBlockNeg(2,1,"Add",true,v.Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Really red"),0)
  1379.                         end
  1380.                        
  1381.                         for i, k in pairs(v:GetChildren()) do
  1382.                             if k:IsA("Part") or k:IsA("Model") then
  1383.                                 k:Destroy()
  1384.                             end
  1385.                         end
  1386.                        
  1387.                         for i = 0, 1, 0.1 do
  1388.                             local ns = lerp(1,0.5,i)
  1389.                             RemovePart.Size = RemovePart.Size - Vector3.new(ns,ns+ns+ns,ns)
  1390.                             swait()
  1391.                         end
  1392.                        
  1393.                         RemovePart:Destroy()
  1394.                     end)
  1395.                 end
  1396.             end)
  1397.         end    
  1398.        
  1399.         CreateSound(62339698,workspace,1,0.3,false,true)
  1400.         spawn(function()
  1401.             for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
  1402.             if v['Torso'] then
  1403.                 Infected(v)
  1404.             end
  1405.             end
  1406.         end)
  1407.        
  1408.         for i = 0, 3, 0.1 do
  1409.         swait()
  1410.         RH.C0=clerp(RH.C0,cf(0.5,-2,-0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  1411.         LH.C0=clerp(LH.C0,cf(-0.5,-2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  1412.         RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  1413.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  1414.         RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  1415.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  1416.         end
  1417.        
  1418.         KeyAndAnimation(false)
  1419.     end;
  1420.    
  1421.     PastTime = function()
  1422.         local Freeze = function(v)
  1423.             coroutine.resume(coroutine.create(function()
  1424.                 local hum = v:FindFirstChildOfClass("Humanoid")
  1425.                 hum.WalkSpeed = 0
  1426.                 if v ~= Character then
  1427.                     v:FindFirstChild("Torso").Anchored = true
  1428.                     v:FindFirstChild("Head").Anchored = true
  1429.                     v:FindFirstChild("Right Arm").Anchored = true
  1430.                     v:FindFirstChild("Left Arm").Anchored = true
  1431.                     v:FindFirstChild("Right Leg").Anchored = true
  1432.                     v:FindFirstChild("Left Leg").Anchored = true
  1433.                     v:FindFirstChild("HumanoidRootPart").Anchored = true
  1434.                    
  1435.                 end
  1436.             end))
  1437.         end
  1438.        
  1439.         local Thaw = function(v)
  1440.             coroutine.resume(coroutine.create(function()
  1441.                 v:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
  1442.                 if v ~= Character then
  1443.                     v:FindFirstChild("Torso").Anchored = false
  1444.                     v:FindFirstChild("Head").Anchored = false
  1445.                     v:FindFirstChild("Right Arm").Anchored = false
  1446.                     v:FindFirstChild("Left Arm").Anchored = false
  1447.                     v:FindFirstChild("Right Leg").Anchored = false
  1448.                     v:FindFirstChild("Left Leg").Anchored = false
  1449.                     v:FindFirstChild("HumanoidRootPart").Anchored = false
  1450.                    
  1451.                 end
  1452.             end))
  1453.         end
  1454.        
  1455.         spawn(function()
  1456.             for i, v in pairs(workspace:GetChildren()) do
  1457.                 if v:IsA("Part") then
  1458.                     if v:FindFirstChildOfClass("BodyVelocity") or v:FindFirstChildOfClass("RocketPropulsion") or v:FindFirstChildOfClass("BodyForce") or v:FindFirstChildOfClass("BodyPosition") then
  1459.                         spawn(function()
  1460.                         v.Anchored = true
  1461.                         swait()
  1462.                         v.Anchored = false
  1463.                         swait()
  1464.                         end)
  1465.                     end
  1466.                 end
  1467.             end
  1468.         end)
  1469.        
  1470.         for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
  1471.         if v:FindFirstChild('Torso') then
  1472.             spawn(function()
  1473.             Freeze(v)
  1474.             swait()
  1475.             Thaw(v)
  1476.             swait()
  1477.             end)
  1478.         end
  1479.         end
  1480.     end;
  1481.    
  1482.     FreezeTime = function()
  1483.         for i, player in pairs(game.Players:GetPlayers()) do
  1484.             for i, v in pairs(player.Character:GetChildren()) do
  1485.                 if v:IsA("BasePart") and v.Parent ~= Character then
  1486.                     v.Anchored = true
  1487.                 end
  1488.             end
  1489.         end
  1490.     end;
  1491.    
  1492.     ThawTime = function()
  1493.         CreateSound(1195380475,workspace,1,1.75,false,true)
  1494.         for i, player in pairs(game.Players:GetPlayers()) do
  1495.             for i, v in pairs(player.Character:GetChildren()) do
  1496.                 if v:IsA("BasePart") and v.Parent ~= Character then
  1497.                     v.Anchored = false
  1498.                 end
  1499.             end
  1500.         end
  1501.     end;
  1502.    
  1503.     BanishGasterBlaster = function()
  1504.         local aimPos = Mouse.Hit.p
  1505.         local blasterhead = Instance.new("Part",Character)
  1506.         blasterhead.Size = Vector3.new(6,6,6)
  1507.         blasterhead.CanCollide = false
  1508.         blasterhead.Anchored = true
  1509.         blasterhead.Transparency = 1
  1510.         blasterhead.Color = RGBColor(100,100,100)
  1511.         local mesh=Instance.new("SpecialMesh",blasterhead)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1512.         mesh.Scale=Vector3.new(.075,.0725,.075)
  1513.         local decal = Instance.new("Decal",blasterhead)
  1514.         decal.Texture = "rbxassetid://441975828"
  1515.         blasterhead.CFrame = CFrame.new(Character.Torso.CFrame:toWorldSpace(CFrame.new(math.random(-10,10),2,math.random(-10,10))).p,aimPos)
  1516.         blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  1517.         local s_up = CreateSound(422747271,blasterhead,10,1,false,true)
  1518.         for i = 0, 1, 0.05 do
  1519.             blasterhead.CFrame = CFrame.new(blasterhead.CFrame.p,aimPos)
  1520.             blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
  1521.             blasterhead.Position = blasterhead.Position + Vector3.new(0,math.random(i,i+0.5),0)
  1522.             swait()
  1523.         end
  1524.         spawn(function()
  1525.             wait(1/10)
  1526.             CreateSound(340722848,blasterhead,10,1,false,true)
  1527.             --head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1528.             local ray = Ray.new(blasterhead.CFrame.p,(aimPos - blasterhead.CFrame.p).unit * 999)
  1529.             local hit, pos = workspace:FindPartOnRay(ray,Character)
  1530.             local dis = (blasterhead.CFrame.p - pos).magnitude
  1531.             local rayPart = Instance.new("Part",workspace)
  1532.             rayPart.Shape = Enum.PartType.Cylinder
  1533.             rayPart.Material = Enum.Material.Plastic
  1534.             rayPart.FormFactor = "Custom"
  1535.             rayPart.BrickColor = BrickColor.new("Ghost grey")
  1536.             rayPart.Anchored = true
  1537.             rayPart.CanCollide = false
  1538.             rayPart.Size = Vector3.new(dis + 400,blasterhead.Size/2,blasterhead.Size/2)
  1539.             RemoveOutlines(rayPart)
  1540.             rayPart.Touched:connect(function(Hit)
  1541.                 if (Hit.Parent.Name ~= Me and Hit.Parent.Parent.Name ~= Me) then
  1542.                     Debris:AddItem(Hit, 3)
  1543.                     for i = 0, 1, .005 do
  1544.                         local newTrans = lerp(0, 1.1, i)
  1545.                         Hit.Transparency = newTrans
  1546.                         swait()
  1547.                     end
  1548.                 end
  1549.             end)
  1550.             local rayCFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  1551.             rayPart.CFrame = rayCFrame
  1552.             spawn(function()
  1553.                 for i = 0, 1, .05 do
  1554.                     local retardation = lerp(1.25,0.2,i)                  
  1555.                     local ns = lerp(0.2,1,i)
  1556.                     local trans = lerp(0,1.1,i)
  1557.                     rayPart.Size = rayPart.Size + Vector3.new(ns,ns,ns)
  1558.                     rayPart.Transparency = trans
  1559.                     blasterhead.CFrame = blasterhead.CFrame + blasterhead.CFrame.lookVector * retardation
  1560.                     rayPart.CFrame = CFrame.new(blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p).unit * (dis/2 + 200),blasterhead.CFrame.p + (aimPos - blasterhead.CFrame.p) --[[.unit * dis * 2--]]) * angles(math.rad(0),math.rad(90),math.rad(0))
  1561.                     swait()
  1562.                 end
  1563.                 rayPart:Destroy()
  1564.                 spawn(function()
  1565.                     wait(2)
  1566.                     blasterhead:Destroy()
  1567.                 end)
  1568.             end)
  1569.             table.insert(GetItems, rayPart)
  1570.         end)
  1571.         table.insert(GetItems, blasterhead)
  1572.     end;
  1573. }
  1574.  
  1575. function PixelBlockNeg(bonuspeed,FastSpeed,type,transparentanim,pos,x1,y1,z1,value,color,outerpos)
  1576. local type = type
  1577. local rng = Instance.new("Part", Character)
  1578. rng.Anchored = true
  1579. rng.BrickColor = color
  1580. rng.CanCollide = false
  1581. rng.FormFactor = 3
  1582. rng.Name = "Ring"
  1583. rng.Material = "Neon"
  1584. rng.Size = Vector3.new(1, 1, 1)
  1585. rng.Transparency = 0
  1586. rng.TopSurface = 0
  1587. rng.BottomSurface = 0
  1588. rng.CFrame = pos
  1589. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1590. local rngm = Instance.new("SpecialMesh", rng)
  1591. rngm.MeshType = "Brick"
  1592. rngm.Scale = Vector3.new(x1,y1,z1)
  1593. local scaler2 = 0
  1594. local speeder = FastSpeed/10
  1595. if type == "Add" then
  1596. scaler2 = 1*value
  1597. elseif type == "Divide" then
  1598. scaler2 = 1/value
  1599. end
  1600. coroutine.resume(coroutine.create(function()
  1601. for i = 0,10/bonuspeed,0.1 do
  1602. swait()
  1603. if type == "Add" then
  1604. scaler2 = scaler2 - 0.01*value/bonuspeed
  1605. elseif type == "Divide" then
  1606. scaler2 = scaler2 - 0.01/value*bonuspeed
  1607. end
  1608. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  1609. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1610. if transparentanim == true then
  1611.     rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1612. end
  1613. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1614. end
  1615. rng:Destroy()
  1616. end))
  1617. end
  1618.  
  1619.  
  1620. local Effects = {
  1621.     BanishEffects = function(chance)
  1622.         spawn(function()
  1623.             if chance > 100 then
  1624.                 chance = 100
  1625.             end
  1626.             if math.random(chance,100) == chance then
  1627.                 local magik = Instance.new("Part", Torso)
  1628.                 magik.Anchored = true
  1629.                 magik.Locked = true
  1630.                 magik.Material = "Neon"
  1631.                 magik.FormFactor = "Custom"
  1632.                 magik.Size = Vector3.new(1.2, 1.2, 1.2)
  1633.                 magik.TopSurface = "Smooth"
  1634.                 magik.BottomSurface = "Smooth"
  1635.                 magik.Transparency = 0
  1636.                 magik.CanCollide = false
  1637.                
  1638.                 local cl = math.random(50,150)
  1639.                 magik.Color = RGBColor(cl, cl, cl)
  1640.                
  1641.                 table.insert(GetItems, magik)
  1642.                 magik.Touched:connect(function(Hit)
  1643.                     Hurt(Hit,math.random(5,10),Me)
  1644.                 end)
  1645.                 local mr = math.rad
  1646.                 local rnx,rny,rnz = mr(rndRange(20)),mr(rndRange(20)),mr(rndRange(20))
  1647.                 local cf = Torso.CFrame * CFrame.new(math.random(-5,5), -.5, math.random(-5,5)) * CFrame.Angles(rnx,rny,rnz)
  1648.                 magik.CFrame = cf
  1649.                 Debris:AddItem(magik, math.random(10,50))
  1650.                 while true do
  1651.                 for i = 0, 1, .025 do
  1652.                     local newTrans = lerp(0.25, 0.5, i)
  1653.                     local ns = lerp(1,1.2,i)
  1654.                     magik.Transparency = newTrans
  1655.                     magik.Size = Vector3.new(ns,ns+math.random(5,7),ns)
  1656.                     magik.CFrame = cf
  1657.                     swait()
  1658.                 end
  1659.                
  1660.                 end
  1661.             end
  1662.         end)
  1663.     end;
  1664.    
  1665.     ErrorEffects = function(chance)
  1666.         spawn(function()
  1667.             if chance > 100 then
  1668.                 chance = 100
  1669.             end
  1670.             if math.random(chance,100) == chance then
  1671.                 local iscreen = Instance.new("Model",Character)
  1672.                 local screenpaids = CreatePart(iscreen,Enum.Material.Air,0,0,false,false,RGBColor(255,255,255),"Error",Vector3.new(4,3,0.2))
  1673.                 local weldscreen = CreateWeld(screenpaids,screenpaids,HumanoidRootPart,CFrame.fromEulerAnglesXYZ(0,0,0)*CFrame.new(math.random(-5,5),math.random(-2,2),math.random(-5,5)),CFrame.new(0,0,0))
  1674.                  
  1675.                 local txt = Instance.new("BillboardGui", screenpaids)
  1676.                 txt.Adornee = nil
  1677.                 txt.Name = "NameDetect"
  1678.                 txt.Size = UDim2.new(4, 0, 1.2, 0)
  1679.                 txt.StudsOffset = Vector3.new(0,0,0)
  1680.                 txt.MaxDistance = 0
  1681.                 local text = Instance.new("TextLabel", txt)
  1682.                 text.Size = UDim2.new(1, 0, 1, 0)
  1683.                 text.FontSize = "Size8"
  1684.                 text.TextScaled = true
  1685.                 text.TextTransparency = 0
  1686.                 text.BackgroundTransparency = 1
  1687.                 text.TextTransparency = 0
  1688.                 text.TextStrokeTransparency = 0
  1689.                 text.Font = "Code"
  1690.                 text.TextStrokeColor3 = RGBColor(255,0,0)
  1691.                 text.TextColor3 = RGBColor(0,0,0)
  1692.                 text.Text = "Error"
  1693.                
  1694.                 swait()
  1695.                 weldscreen:Destroy()              
  1696.                 screenpaids.Anchored = true
  1697.                
  1698.                 spawn(function()
  1699.                     local randevent = math.random(1,3)
  1700.                     if randevent == 1 then
  1701.                         for i = 1, math.random(10,20) do
  1702.                             text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
  1703.                             text.TextColor3 = RGBColor(math.random(10,75),0,0)
  1704.                             text.Text = "ErroR"
  1705.                             swait(math.random(0,7))
  1706.                             text.Text = "ERROr"
  1707.                             swait(math.random(0,7))
  1708.                             text.Text = "eRrOR"
  1709.                             swait(math.random(0,7))
  1710.                             text.Text = "ERroR"
  1711.                             swait(math.random(0,7))
  1712.                             text.Text = "eRROR"
  1713.                             swait(math.random(0,7))
  1714.                             text.Text = "erROr"
  1715.                             swait(math.random(0,7))
  1716.                             text.Text = "ERrOr"
  1717.                             wait(1/30)
  1718.                         end
  1719.                     end
  1720.                     if randevent == 2 then
  1721.                         for i = 1, math.random(10,20) do
  1722.                             text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
  1723.                             text.TextColor3 = RGBColor(math.random(10,75),0,0)
  1724.                             text.Text = "ErROR"
  1725.                             swait(math.random(0,7))
  1726.                             text.Text = "ERrOr"
  1727.                             swait(math.random(0,7))
  1728.                             text.Text = "eRrOR"
  1729.                             swait(math.random(0,7))
  1730.                             text.Text = "ERROR"
  1731.                             swait(math.random(0,7))
  1732.                             text.Text = "eRROR"
  1733.                             swait(math.random(0,7))
  1734.                             text.Text = "ERrOr"
  1735.                             swait(math.random(0,7))
  1736.                             text.Text = "eRROr"
  1737.                             wait(1/30)
  1738.                         end
  1739.                     end
  1740.                     if randevent == 3 then
  1741.                         for i = 1, math.random(10,20) do
  1742.                             text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
  1743.                             text.TextColor3 = RGBColor(math.random(10,75),0,0)
  1744.                             text.Text = "ErROR"
  1745.                             swait(math.random(0,7))
  1746.                             text.Text = "ERrOr"
  1747.                             swait(math.random(0,7))
  1748.                             text.Text = "eRrOR"
  1749.                             swait(math.random(0,7))
  1750.                             text.Text = "ERroR"
  1751.                             swait(math.random(0,7))
  1752.                             text.Text = "eRROR"
  1753.                             swait(math.random(0,7))
  1754.                             text.Text = "ERrOR"
  1755.                             swait(math.random(0,7))
  1756.                             text.Text = "eRrOR"
  1757.                             wait(1/30)
  1758.                         end
  1759.                     end
  1760.                 end)
  1761.                
  1762.                 spawn(function() wait(math.random(1,3)) iscreen:Destroy() end)
  1763.                 table.insert(GetItems, iscreen)
  1764.             end
  1765.         end)
  1766.     end;
  1767. }
  1768.  
  1769. function clerp(a,b,t)
  1770. local qa = {QuaternionFromCFrame(a)}
  1771. local qb = {QuaternionFromCFrame(b)}
  1772. local ax, ay, az = a.x, a.y, a.z
  1773. local bx, by, bz = b.x, b.y, b.z
  1774. local _t = 1-t
  1775. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1776. end
  1777.  
  1778. function QuaternionFromCFrame(cf)
  1779. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1780. local trace = m00 + m11 + m22
  1781. if trace > 0 then
  1782. local s = math.sqrt(1 + trace)
  1783. local recip = 0.5/s
  1784. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1785. else
  1786. local i = 0
  1787. if m11 > m00 then
  1788. i = 1
  1789. end
  1790. if m22 > (i == 0 and m00 or m11) then
  1791. i = 2
  1792. end
  1793. if i == 0 then
  1794. local s = math.sqrt(m00-m11-m22+1)
  1795. local recip = 0.5/s
  1796. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1797. elseif i == 1 then
  1798. local s = math.sqrt(m11-m22-m00+1)
  1799. local recip = 0.5/s
  1800. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1801. elseif i == 2 then
  1802. local s = math.sqrt(m22-m00-m11+1)
  1803. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1804. end
  1805. end
  1806. end
  1807.  
  1808. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1809. local xs, ys, zs = x + x, y + y, z + z
  1810. local wx, wy, wz = w*xs, w*ys, w*zs
  1811. local xx = x*xs
  1812. local xy = x*ys
  1813. local xz = x*zs
  1814. local yy = y*ys
  1815. local yz = y*zs
  1816. local zz = z*zs
  1817. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1818. end
  1819.  
  1820. function QuaternionSlerp(a, b, t)
  1821. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1822. local startInterp, finishInterp;
  1823. if cosTheta >= 0.0001 then
  1824. if (1 - cosTheta) > 0.0001 then
  1825. local theta = math.acos(cosTheta)
  1826. local invSinTheta = 1/math.sin(theta)
  1827. startInterp = math.sin((1-t)*theta)*invSinTheta
  1828. finishInterp = math.sin(t*theta)*invSinTheta  
  1829. else
  1830. startInterp = 1-t
  1831. finishInterp = t
  1832. end
  1833. else
  1834. if (1+cosTheta) > 0.0001 then
  1835. local theta = math.acos(-cosTheta)
  1836. local invSinTheta = 1/math.sin(theta)
  1837. startInterp = math.sin((t-1)*theta)*invSinTheta
  1838. finishInterp = math.sin(t*theta)*invSinTheta
  1839. else
  1840. startInterp = t-1
  1841. finishInterp = t
  1842. end
  1843. end
  1844. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1845. end
  1846.  
  1847. function swait(num)
  1848.     if num==0 or num==nil then
  1849.         game:GetService('RunService').Heartbeat:wait()
  1850.     else
  1851.     for i=0,num do
  1852.         game:GetService('RunService').Heartbeat:wait()
  1853.     end
  1854.     end
  1855. end
  1856.  
  1857. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1858.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1859. end
  1860.  
  1861. --//=========================================\\
  1862. --||            Animation&Stance;
  1863. --\\=========================================//
  1864.  
  1865. RW = Torso:FindFirstChild("Weld Right Shoulder") or Instance.new("Weld",Torso)
  1866. LW = Torso:FindFirstChild("Weld Left Shoulder") or Instance.new("Weld",Torso)
  1867. RH = Torso:FindFirstChild("Weld Right Hip") or Instance.new("Weld",Torso)
  1868. LH = Torso:FindFirstChild("Weld Left Hip") or Instance.new("Weld",Torso)
  1869. HW = Torso:FindFirstChild("Weld Neck") or Instance.new("Weld",Torso)
  1870.  
  1871. RW.Name = "Weld Right Shoulder"
  1872. RW.Part0 = Torso
  1873. RW.Part1 = RightArm
  1874. RW.C0 = cf(1.5, 0.5, 0)
  1875. RW.C1 = cf(0, 0.5, 0)
  1876.  
  1877. LW.Name = "Weld Left Shoulder"
  1878. LW.Part0 = Torso
  1879. LW.Part1 = LeftArm
  1880. LW.C0 = cf(-1.5, 0.5, 0)
  1881. LW.C1 = cf(0, 0.5, 0)
  1882.  
  1883. RH.Name = "Weld Right Hip"
  1884. RH.Part0 = Torso
  1885. RH.Part1 = RightLeg
  1886. RH.C0 = cf(0.5, -2, 0)
  1887. RH.C1 = cf(0, 0, 0)
  1888.  
  1889. LH.Name = "Weld Left Hip"
  1890. LH.Part0 = Torso
  1891. LH.Part1 = LeftLeg
  1892. LH.C0 = cf(-0.5, -2, 0)
  1893. LH.C1 = cf(0, 0, 0)
  1894.  
  1895. HW.Name = "Weld Neck"
  1896. HW.Part0 = Torso
  1897. HW.Part1 = Head
  1898. HW.C0 = cf(0, 1.5, 0)
  1899. HW.C1 = cf(0, 0, 0)  
  1900.  
  1901.     --[[-- Origial CFrame
  1902.         RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)                  * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1903.         HW.C0 = clerp(HW.C0,necko                                           * angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1904.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)                        * angles(math.rad(0),math.rad(0),math.rad(0)), .1)
  1905.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)                       * angles(math.rad(0),math.rad(0),math.rad(0)), .1)
  1906.         RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                                 * angles(math.rad(0),math.rad(0),math.rad(0)), .1)
  1907.         LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                                * angles(math.rad(0),math.rad(0),math.rad(0)), .1)
  1908.     --]]
  1909.  
  1910. coroutine.resume(coroutine.create(function()
  1911. while true do
  1912.     swait()
  1913.     sine = sine + change
  1914.     local torvel = (HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1915.     local hitfloor,posfloor = rayCast(HumanoidRootPart.Position,(CFrame.new(HumanoidRootPart.Position,HumanoidRootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1916.     -- No Animation When Speical Events Executed
  1917.     if Debounce_Animation == false then
  1918.     -- Sans_UT Mode
  1919.     if ModeOfSans == 1 or ModeOfSans == 7 then
  1920.         if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
  1921.             animpose = "Jumping"
  1922.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1923.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1924.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1925.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1926.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1927.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1928.         end
  1929.         if torvel < 1 and hitfloor ~=nil then
  1930.             animpose = "Standing"
  1931.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1932.             HW.C0 = clerp(HW.C0,necko                                               * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  1933.             RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.4+0.1*math.cos(sine/16), 0.4)   * angles(math.rad(-30), math.rad(0), math.rad(-35+3*math.cos(sine/16))), .1)
  1934.             LW.C0 = clerp(LW.C0, CFrame.new(-0.95, 0.4+0.1*math.cos(sine/16), 0.4)  * angles(math.rad(-30), math.rad(0), math.rad(35-3*math.cos(sine/16))), .1)
  1935.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1936.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                                    * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1937.         end
  1938.         if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
  1939.             animpose = "Freefalling"
  1940.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1941.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1942.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
  1943.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
  1944.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1945.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1946.         end
  1947.         if torvel >= 1 and hitfloor ~=nil then
  1948.             animpose = "Walking"
  1949.             val = torvel * 0.175
  1950.             change = val + 0.75
  1951.             RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.1*math.cos(sine/14))      * angles(math.rad(0),math.rad(0),math.rad(0-5*math.cos(sine/28))),.2)
  1952.             HW.C0 = clerp(HW.C0, necko                                                  * angles(math.rad(-10-3*math.cos(sine/28)),math.rad(0),math.rad(-2*math.cos(sine/28))),.2)
  1953.             RW.C0=clerp(RW.C0,cf(1.5,0.5,0)                                             * angles(math.rad(0 - 25 * math.cos(sine/28)),math.rad(0),math.rad(10-10*math.cos(sine/28))),.2)
  1954.             LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)                                            * angles(math.rad(0 + 25 * math.cos(sine/28)),math.rad(0),math.rad(-10+10*math.cos(sine/28))),.2)
  1955.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0-0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0+10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  1956.             LH.C0 = clerp(LH.C0, cf(-0.5, -2,-0+0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0-10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  1957.         end
  1958.     end
  1959.    
  1960.     -- Killer_Sans Mode
  1961.     if ModeOfSans == 2 then
  1962.         if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
  1963.             animpose = "Jumping"
  1964.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1965.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1966.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1967.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1968.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1969.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1970.         end
  1971.         if torvel < 1 and hitfloor ~=nil then
  1972.             animpose = "Standing"
  1973.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1974.             HW.C0 = clerp(HW.C0,necko                                               * angles(math.rad(-20+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  1975.             RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2)   * angles(math.rad(-35),math.rad(0),math.rad(190)), .1)
  1976.             LW.C0 = clerp(LW.C0, CFrame.new(-0.95, 0.4+0.1*math.cos(sine/16), 0.4)  * angles(math.rad(-30), math.rad(0), math.rad(35-3*math.cos(sine/16))), .1)
  1977.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1978.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                                    * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1979.         end
  1980.         if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
  1981.             animpose = "Freefalling"
  1982.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1983.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1984.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
  1985.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
  1986.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1987.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1988.         end
  1989.         if torvel >= 1 and hitfloor ~=nil then
  1990.             val = torvel * 0.175
  1991.             change = val + 0.75
  1992.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0-0.1*math.cos(sine/16)) * angles(math.rad(5),math.rad(0),math.rad(0-5*math.cos(sine/12))),.1)
  1993.             HW.C0 = clerp(HW.C0,necko                                                * angles(math.rad(-10-3*math.cos(sine/4)),math.rad(0),math.rad(-2*math.cos(sine/2))),.2)
  1994.             RW.C0 = clerp(RW.C0, cf(1.5,0.5,0)                                       * angles(math.rad(10-15*math.cos(sine/32)),math.rad(0+2.5*math.cos(sine/0.123)),math.rad(5+2.5*math.cos(sine/0.6))),.1)
  1995.             LW.C0 = clerp(LW.C0, cf(-1.5,0.5,0)                                      * angles(math.rad(10+15*math.cos(sine/32)),math.rad(0+2.5*math.cos(sine/0.664)),math.rad(-5+2.5*math.cos(sine/0.23))),.1)
  1996.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0.15-0.25*math.cos(sine/32))           * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(5+10*math.cos(sine/32)),math.rad(0),math.rad(0)),.2)
  1997.             LH.C0 = clerp(LH.C0, cf(-0.5, -2,-0.15+0.25*math.cos(sine/32))           * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(5-10*math.cos(sine/32)),math.rad(0),math.rad(0)),.2)
  1998.         end
  1999.     end
  2000.    
  2001.     -- Ink_Sans Mode
  2002.     if ModeOfSans == 3 then
  2003.         if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
  2004.             animpose = "Jumping"
  2005.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2006.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2007.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  2008.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  2009.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2010.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2011.         end
  2012.         if torvel < 1 and hitfloor ~=nil then
  2013.             change = 1
  2014.             animpose = "Standing"
  2015.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.025+0.025*math.cos(sine/18))                 * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2016.             HW.C0 = clerp(HW.C0,necko                                                                       * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  2017.             RW.C0 = clerp(RW.C0, CFrame.new(1-0.175*math.cos(sine/18), 0.5+0.1*math.cos(sine/18), 0.1)      * angles(math.rad(-5), math.rad(0), math.rad(-30+5*math.cos(sine/18))), .1)
  2018.             LW.C0 = clerp(LW.C0, CFrame.new(-1+0.175*math.cos(sine/18), 0.5+0.1*math.cos(sine/18), 0.1)     * angles(math.rad(-5), math.rad(0), math.rad(30-5*math.cos(sine/18))), .1)
  2019.             RH.C0 = clerp(RH.C0, cf(0.6, -2+0.05*math.cos(sine/18), -0.1)                                   * angles(math.rad(5-1*math.cos(sine/18)),math.rad(0),math.rad(5)),.1)
  2020.             LH.C0 = clerp(LH.C0, cf(-0.575+0.07*math.cos(sine/18), -2+0.05*math.cos(sine/18), 0)            * angles(math.rad(0),math.rad(0),math.rad(-3+1*math.cos(sine/18))),.1)
  2021.         end
  2022.         if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
  2023.             animpose = "Freefalling"
  2024.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2025.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2026.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
  2027.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
  2028.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2029.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2030.         end
  2031.         if torvel >= 1 and hitfloor ~=nil then
  2032.             animpose = "Walking"
  2033.             val = torvel * 0.175
  2034.             change = val + 0.75
  2035.             RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.1*math.cos(sine/14))      * angles(math.rad(0),math.rad(0),math.rad(0-5*math.cos(sine/28))),.2)
  2036.             HW.C0 = clerp(HW.C0, necko                                                  * angles(math.rad(-10-3*math.cos(sine/28)),math.rad(0),math.rad(-2*math.cos(sine/28))),.2)
  2037.             RW.C0=clerp(RW.C0,cf(1.5,0.5,0)                                             * angles(math.rad(0 - 25 * math.cos(sine/28)),math.rad(0),math.rad(10-10*math.cos(sine/28))),.2)
  2038.             LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)                                            * angles(math.rad(0 + 25 * math.cos(sine/28)),math.rad(0),math.rad(-10+10*math.cos(sine/28))),.2)
  2039.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0-0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0+10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2040.             LH.C0 = clerp(LH.C0, cf(-0.5, -2,-0+0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0-10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2041.         end
  2042.     end
  2043.    
  2044.     -- Error_Sans Mode
  2045.     if ModeOfSans == 4 then
  2046.         Effects.ErrorEffects(92)
  2047.         if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
  2048.             animpose = "Jumping"
  2049.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2050.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2051.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  2052.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  2053.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2054.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2055.         end
  2056.         if torvel < 1 and hitfloor ~=nil then
  2057.             change = 1
  2058.             animpose = "Standing"
  2059.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.025+0.025*math.cos(sine/18))                 * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2060.             HW.C0 = clerp(HW.C0,necko                                                                       * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  2061.             RW.C0 = clerp(RW.C0, CFrame.new(1-0.175*math.cos(sine/18), 0.5+0.1*math.cos(sine/18), 0.1)      * angles(math.rad(-5), math.rad(0), math.rad(-30+5*math.cos(sine/18))), .1)
  2062.             LW.C0 = clerp(LW.C0, CFrame.new(-1+0.175*math.cos(sine/18), 0.5+0.1*math.cos(sine/18), 0.1)     * angles(math.rad(-5), math.rad(0), math.rad(30-5*math.cos(sine/18))), .1)
  2063.             RH.C0 = clerp(RH.C0, cf(0.6, -2+0.05*math.cos(sine/18), -0.1)                                   * angles(math.rad(5-1*math.cos(sine/18)),math.rad(0),math.rad(5)),.1)
  2064.             LH.C0 = clerp(LH.C0, cf(-0.575+0.07*math.cos(sine/18), -2+0.05*math.cos(sine/18), 0)            * angles(math.rad(0),math.rad(0),math.rad(-3+1*math.cos(sine/18))),.1)
  2065.         end
  2066.         if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
  2067.             animpose = "Freefalling"
  2068.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2069.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2070.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
  2071.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
  2072.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2073.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2074.         end
  2075.         if torvel >= 1 and hitfloor ~=nil then
  2076.             animpose = "Walking"
  2077.             val = torvel * 0.175
  2078.             change = val + 0.75
  2079.             RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.1*math.cos(sine/14))      * angles(math.rad(0),math.rad(0),math.rad(0-5*math.cos(sine/28))),.2)
  2080.             HW.C0 = clerp(HW.C0, necko                                                  * angles(math.rad(-10-3*math.cos(sine/28)),math.rad(0),math.rad(-2*math.cos(sine/28))),.2)
  2081.             RW.C0=clerp(RW.C0,cf(1.5,0.5,0)                                             * angles(math.rad(0 - 25 * math.cos(sine/28)),math.rad(0),math.rad(10-10*math.cos(sine/28))),.2)
  2082.             LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)                                            * angles(math.rad(0 + 25 * math.cos(sine/28)),math.rad(0),math.rad(-10+10*math.cos(sine/28))),.2)
  2083.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0-0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0+10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2084.             LH.C0 = clerp(LH.C0, cf(-0.5, -2,-0+0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0-10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2085.         end
  2086.     end
  2087.    
  2088.     -- Banish_Sans Mode
  2089.     if ModeOfSans == 5 then
  2090.         if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
  2091.             animpose = "Jumping"
  2092.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2093.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2094.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.1)
  2095.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.1)
  2096.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2097.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2098.         end
  2099.         if torvel < 1 and hitfloor ~=nil then
  2100.             Effects.BanishEffects(60)
  2101.             animpose = "Standing"
  2102.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)                          * angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2103.             HW.C0 = clerp(HW.C0, cf(0,1.5,-0.25)                                        * angles(math.rad(-20+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  2104.             RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.5+0.1*math.cos(sine/16), -0.6)      * angles(math.rad(140), math.rad(0), math.rad(-35+1*math.cos(sine/16))), .1)
  2105.             LW.C0 = clerp(LW.C0, CFrame.new(-0.95, 0.5+0.1*math.cos(sine/16), -0.6)     * angles(math.rad(140), math.rad(0), math.rad(35-1*math.cos(sine/16))), .1)
  2106.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0.2)                                      * angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2107.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, -0.2)                                     * angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2108.         end
  2109.         if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
  2110.             animpose = "Freefalling"
  2111.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)       * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2112.             HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2113.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)             * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
  2114.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)            * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
  2115.             RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2116.             LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2117.         end
  2118.         if torvel >= 1 and hitfloor ~=nil then
  2119.             Effects.BanishEffects(70)
  2120.             animpose = "Walking"
  2121.             val = torvel * 0.175
  2122.             change = val + 0.75
  2123.             RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.1*math.cos(sine/14))      * angles(math.rad(0),math.rad(0),math.rad(0-5*math.cos(sine/28))),.2)
  2124.             HW.C0 = clerp(HW.C0, cf(0,1.5,-0.25)                                        * angles(math.rad(-20+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  2125.             RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.5+0.1*math.cos(sine/16), -0.6)      * angles(math.rad(140), math.rad(0), math.rad(-35+1*math.cos(sine/16))), .1)
  2126.             LW.C0 = clerp(LW.C0, CFrame.new(-0.95, 0.5+0.1*math.cos(sine/16), -0.6)     * angles(math.rad(140), math.rad(0), math.rad(35-1*math.cos(sine/16))), .1)
  2127.             RH.C0 = clerp(RH.C0, cf(0.5, -2, -0-0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0+10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2128.             LH.C0 = clerp(LH.C0, cf(-0.5, -2,-0+0.25*math.cos(sine/28))                 * angles(math.rad(0),math.rad(0),math.rad(0)) * angles(math.rad(0-10*math.cos(sine/28)),math.rad(0),math.rad(0)),.2)
  2129.         end
  2130.     end
  2131.  
  2132.     --[[-- Fly
  2133.     if PlayerMode == "Floating" then
  2134.         if torvel >= 2 then
  2135.             animpose = "Flying"
  2136.             change = 2
  2137.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0.5*math.cos(sine/40))      * angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2138.             HW.C0 = clerp(HW.C0, CFrame.new(0, 1.5, 0)                                  * angles(math.rad(-10-4*math.cos(sine/40)),math.rad(0),math.rad(0)),.3)
  2139.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.60+0.10*math.cos(sine/40), 0)        * angles(math.rad(0), math.rad(0), math.rad(12.5+5*math.cos(sine/40))), 0.2)
  2140.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.60+0.10*math.cos(sine/40), 0)       * angles(math.rad(0), math.rad(0), math.rad(-12.5-5*math.cos(sine/40))), 0.2)
  2141.             RH.C0 = clerp(RH.C0, cf(0.6,-2-0.05*math.cos(sine/40),0)                    * angles(math.rad(0),math.rad(0),math.rad(5+0.5*math.cos(sine/40))),.1)
  2142.             LH.C0 = clerp(LH.C0, cf(-0.6,-2-0.05*math.cos(sine/40),0)                   * angles(math.rad(0),math.rad(0),math.rad(-5-0.5*math.cos(sine/40))),.1)      
  2143.         end
  2144.         if torvel <= 2 then
  2145.             animpose = "NotFlying"
  2146.             change = 2.5
  2147.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0.5*math.cos(sine/40))      * angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2148.             HW.C0 = clerp(HW.C0, CFrame.new(0, 1.5, 0)                                  * angles(math.rad(-10-4*math.cos(sine/40)),math.rad(0),math.rad(0)),.3)
  2149.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.60+0.10*math.cos(sine/40), 0)        * angles(math.rad(0), math.rad(0), math.rad(12.5+5*math.cos(sine/40))), 0.2)
  2150.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.60+0.10*math.cos(sine/40), 0)       * angles(math.rad(0), math.rad(0), math.rad(-12.5-5*math.cos(sine/40))), 0.2)
  2151.             RH.C0 = clerp(RH.C0, cf(0.6,-2-0.05*math.cos(sine/40),0)                    * angles(math.rad(0),math.rad(0),math.rad(5+0.5*math.cos(sine/40))),.1)
  2152.             LH.C0 = clerp(LH.C0, cf(-0.6,-2-0.05*math.cos(sine/40),0)                   * angles(math.rad(0),math.rad(0),math.rad(-5-0.5*math.cos(sine/40))),.1)
  2153.         end
  2154.     --]]
  2155.     end
  2156. end
  2157. end))
  2158.  
  2159. --//=================================================\\
  2160. --||            Mouse&KeyBoard_Detection;
  2161. --\\=================================================//
  2162.  
  2163.  
  2164. table.insert(Charge, 1, 1)  
  2165.  
  2166. -- Held Key
  2167. Mouse.KeyUp:connect(function(Key)
  2168.     if ModeOfSans == 1 then
  2169.         if Key == "e" then
  2170.             Held[Key] = nil
  2171.         end
  2172.         if Key == "f" then
  2173.             Held[Key] = nil
  2174.         end
  2175.     end
  2176.     if ModeOfSans == 2 then
  2177.         if Key == "r" then
  2178.             Active["KnifeKillerSans"] = true
  2179.             Held[Key] = nil
  2180.             for i = 1, 5 do
  2181.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(20),math.rad(0),math.rad(0)), .3)
  2182.                 swait()
  2183.             end
  2184.             local WeldKnife = AnimationKnife_KillerSans
  2185.             local Knife = Knife_KillerSans
  2186.             WeldKnife.Parent = nil
  2187.             local bv = Instance.new("BodyVelocity",Knife)
  2188.             bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2189.             bv.Velocity = CFrame.new(RightArm.Position, Mouse.Hit.p).lookVector*100            
  2190.             Knife.Touched:connect(function(Hit)
  2191.                 coroutine.resume(coroutine.create(function()
  2192.                     wait(1.5)
  2193.                     Knife.Touched:connect(function(T)
  2194.                         Knife_KillerSans.Parent:Destroy()
  2195.                         Transform.Killer_Sans()
  2196.                     end)
  2197.                 end))
  2198.                 if Hit.Parent.Name ~= Me then
  2199.                     bv:Destroy()
  2200.                     Hurt(Hit, Charge[1], Me)
  2201.                     Charge[1] = 10
  2202.                     if Hit.Parent:FindFirstChild("Blood") or Hit.Parent:FindFirstChild("Knife") then
  2203.                         return
  2204.                     else
  2205.                         if Hit.Parent.Parent.Name ~= Me then
  2206.                             if Hit.Parent.Parent.Parent.Name ~= Me then
  2207.                                 Sticky(Hit, Knife)
  2208.                             end
  2209.                         end
  2210.                     end
  2211.                     CreateSound(171688984,Hit,1,1,false,true)
  2212.                     Active["KnifeKillerSans"] = false
  2213.                     Knife.CanCollide = true
  2214.                    
  2215.                 end
  2216.             end)
  2217.             wait(1/5)
  2218.             bv:Destroy()
  2219.         end
  2220.     end
  2221.     if ModeOfSans == 7 then
  2222.         if Key == "x" then
  2223.             CreateSound(1195380475,workspace,1,1,false,true)
  2224.             Held[Key] = nil
  2225.             StanceAction.ThawTime()
  2226.         end
  2227.         if Key == "c" then
  2228.             Held[Key] = nil
  2229.             ThemeMusic:Resume()
  2230.             StanceAction.ThawTime()
  2231.         end
  2232.     end
  2233. end)
  2234.  
  2235. function ExtinctiveHeartbreak()
  2236.     local targetted = nil
  2237.    
  2238.     if Mouse.Target.Parent.Name ~= Me and Mouse.Target.Parent.Parent.Name ~= Me and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2239.         targetted = Mouse.Target.Parent
  2240.     end
  2241.     isattack = true
  2242.     if targetted ~= nil then
  2243.         Character:BreakJoints()
  2244.     end
  2245.     isattack = false
  2246. end
  2247.  
  2248. spawn(function()
  2249.     Mouse.KeyDown:connect(function(Key)
  2250.         if Key == "p" then
  2251.         Transform.Sans_UT()
  2252.         end
  2253.         if Key == "l" then
  2254.             Transform.Killer_Sans()
  2255.         end
  2256.         if Key == "m" then
  2257.             Transform.Ink_Sans()
  2258.         end
  2259.         if Key == "k" then
  2260.             Transform.Error_Sans()
  2261.         end
  2262.         if Key == "n" then
  2263.             Transform.Banish_Sans()
  2264.         end
  2265.         if Key == "j" then
  2266.             Transform.Digi_Sans()
  2267.         end
  2268.         if Key == "o" then
  2269.             Transform.Timekid_Sans()
  2270.         end
  2271.     end)
  2272. end)
  2273.  
  2274. -- Stance&Special Events
  2275. Mouse.KeyDown:connect(function(Key)
  2276.     --[[================================
  2277.             Debounce_System;
  2278.     ================================--]]
  2279.     --//Return Automatic Key\\--
  2280.    
  2281.     --[[
  2282.     if Debouce[Key] == true then
  2283.         Debouce[Key] = false -- This can help debug of Key :)
  2284.         return
  2285.     end
  2286.     Debouce[Key] = true
  2287.     -]]
  2288.    
  2289.     --//Return Automatic Animation\\--
  2290.    
  2291.     --[[
  2292.     if Debounce_Animation == true then
  2293.         return
  2294.     end
  2295.     Debounce_Animation = true
  2296.     --]]
  2297.    
  2298.     --[[===========================
  2299.             MainAction;
  2300.     ===========================--]]
  2301.     if isattack == false then
  2302.     --//    Global  \\--
  2303.     -- Teleport
  2304.     if Key == "z" and isattack == false then
  2305.         StanceAction.Teleport()
  2306.     end
  2307.    
  2308.     --//    Local   \\--
  2309.     -- SansUT Stance
  2310.     if ModeOfSans == 1 then
  2311.         if Key == "e" and isattack == false then
  2312.             Held[Key] = true
  2313.             for i = 1, 10 do
  2314.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(0, 0, 0), .1)
  2315.                 swait()
  2316.             end
  2317.             -- If Holding Then Do This
  2318.             local Debouce_Bone = false
  2319.             while Held[Key] == true do
  2320.                 if Held[Key] == nil then
  2321.                     break
  2322.                 end
  2323.                 coroutine.resume(coroutine.create(function()
  2324.                     if Debouce_Bone == false then
  2325.                         StanceAction.Bone()
  2326.                         Debouce_Bone = true
  2327.                         wait(0.2)
  2328.                         Debouce_Bone = false
  2329.                     end
  2330.                 end))
  2331.                 HW.C0 = clerp(HW.C0,necko                                * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
  2332.                 RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.4+0.1*math.cos(sine/16), 0.4) * angles(math.rad(-30), math.rad(0), math.rad(-35+3*math.cos(sine/16))), .1)
  2333.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), 115, math.rad(125-15*math.cos(sine/32))), .1)
  2334.                 RH.C0 = clerp(RH.C0, cf(0.5, -2, 0)                      * angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2335.                 LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0)                     * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2336.                 swait()
  2337.             end
  2338.         end
  2339.         if Key == "g" and isattack == false then
  2340.             StanceAction.GasterBlaster()
  2341.         end
  2342.         if Key == "h" and isattack == false then
  2343.             StanceAction.HugeGasterBlaster()
  2344.         end
  2345.         if Key == "f" and isattack == false then
  2346.             Held[Key] = true
  2347.             local GrabObj=Mouse.Target
  2348.                     local hum=nil
  2349.                     if GrabObj then
  2350.                         if not GrabObj.Anchored then
  2351.                             if GrabObj.Parent then
  2352.                                 if GrabObj.Parent:FindFirstChild'Humanoid'then
  2353.                                     hum=GrabObj.Parent.Humanoid
  2354.                                 end
  2355.                             end
  2356.                             local jet=Instance.new("BodyPosition",GrabObj)
  2357.                             if not hum then jet.D=2000 jet.P=2000 end
  2358.                             while Held[Key] == true do
  2359.                                 jet.MaxForce=Vector3.new(10,10,10)*10000000
  2360.                                 jet.Position=Mouse.Target~=nil and Mouse.Hit.p or jet.Position
  2361.                                 local a = 0
  2362.                                 a = a +((not hum or hum.Health==0) and 1 or 2)
  2363.                                 local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
  2364.                                 swait()
  2365.                             end
  2366.                             jet:Destroy()
  2367.                         else
  2368.                             warn'The object is anchored!'
  2369.                         end
  2370.                     end
  2371.             --StanceAction.GravityControl()
  2372.         end
  2373.     end
  2374.    
  2375.     -- KillerSans Stance
  2376.     if ModeOfSans == 2 then
  2377.         if Key == "e" and isattack == false then
  2378.             Active["KnifeKillerSans"] = true
  2379.             local Chance = math.random(2)
  2380.             if Chance == 1 then
  2381.                 for i = 1, 10 do
  2382.                     RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(-35),math.rad(70),math.rad(100)), .3)
  2383.                     swait()
  2384.                 end
  2385.                 for i = 1, 15 do
  2386.                     RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(-35),math.rad(70),math.rad(170)), .3)
  2387.                     swait()
  2388.                 end
  2389.             end
  2390.             if Chance == 2 then
  2391.                 for i = 1, 10 do
  2392.                     RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(-35),math.rad(50),math.rad(190)), .3)
  2393.                     swait()
  2394.                 end
  2395.                 for i = 1, 15 do
  2396.                     RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(-110),math.rad(50),math.rad(190)), .3)
  2397.                     swait()
  2398.                 end
  2399.             end
  2400.             Active["KnifeKillerSans"] = false
  2401.         end
  2402.         if Key == "r" and isattack == false then
  2403.             Held[Key] = true
  2404.             for i = 1, 15 do
  2405.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(0),math.rad(0),math.rad(17)), .15)
  2406.                 swait()
  2407.             end
  2408.             for i = 1, 15 do
  2409.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(40),math.rad(0),math.rad(21)), .2)
  2410.                 swait()
  2411.             end
  2412.             for i = 1, 20 do
  2413.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(50),math.rad(0),math.rad(24)), .2)
  2414.                 swait()
  2415.             end
  2416.             while Held[Key] == true do
  2417.                 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4+0.1*math.cos(sine/16), -0.2) * angles(math.rad(60+Charge[1]),math.rad(0),math.rad(24)), .2)
  2418.                 if Held[Key] == nil then
  2419.                     return
  2420.                 end
  2421.                 if Charge[1] <= 100 then
  2422.                     Charge[1] = Charge[1] + 1
  2423.                 end
  2424.                 swait()
  2425.             end
  2426.         end
  2427.         if Key == "x" and isattack == false then
  2428.             StanceAction.Torture()
  2429.         end
  2430.         if Key == "c" and isattack == false then
  2431.             StanceAction.CutHead()
  2432.         end
  2433.         if Key == "v" and isattack == false then
  2434.             ExtinctiveHeartbreak()
  2435.         end
  2436.     end
  2437.    
  2438.     -- InkSans Stance
  2439.     if ModeOfSans == 3 then
  2440.         if Key == "q" and isattack == false then
  2441.             StanceAction.BrushAttack1()
  2442.         end
  2443.     end
  2444.    
  2445.     -- ErrorSans Stance
  2446.     if ModeOfSans == 4 then
  2447.         if Key == "x" and isattack == false then
  2448.             StanceAction.ErrorRemove()
  2449.         end
  2450.         if Key == "c" and isattack == false then
  2451.             StanceAction.InfectionError()
  2452.         end
  2453.     end
  2454.    
  2455.     -- BanishSans Stance
  2456.     if ModeOfSans == 5 then
  2457.         if Key == "g" and isattack == false then
  2458.             StanceAction.BanishGasterBlaster()
  2459.         end
  2460.     end
  2461.    
  2462.     -- TimekidSans Stance
  2463.     if ModeOfSans == 7 then
  2464.         if Key == "x" then
  2465.             Held[Key] = true
  2466.             CreateSound(181004957,workspace,1,1,false,true)
  2467.             while Held[Key] == true do
  2468.                 StanceAction.PastTime()
  2469.                 wait()
  2470.             end
  2471.         end
  2472.         if Key == "c" then
  2473.             CreateSound(1177785010,workspace,1,1,false,true)
  2474.             ThemeMusic:Pause()
  2475.             local cce = game.Lighting:FindFirstChildOfClass("ColorCorrectionEffect") or Instance.new("ColorCorrectionEffect", game.Lighting)
  2476.             cce.Saturation = -0.75
  2477.             Held[Key] = true
  2478.             StanceAction.FreezeTime()
  2479.             while Held[Key] == true do
  2480.                 StanceAction.FreezeTime()
  2481.                 wait()
  2482.             end
  2483.         end
  2484.     end
  2485.     end
  2486. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement