Advertisement
basbas1234

Sans AU | Made by basbas1234

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