Advertisement
jasonskg1234

Sans

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