Advertisement
basbas1234

Sans AU (LocalScript Only)

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