Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- --//==================================\\
- --|| Variables;
- --\\==================================//
- -- Made by basbas1234
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Character = Player.Character
- local Head = Character["Head"]
- local Torso = Character["Torso"]
- local HumanoidRootPart = Character["HumanoidRootPart"]
- local RightArm = Character["Right Arm"]
- local LeftArm = Character["Left Arm"]
- local RightLeg = Character["Right Leg"]
- local LeftLeg = Character["Left Leg"]
- local Humanoid = Character["Humanoid"]
- local RootJoint = HumanoidRootPart["RootJoint"]
- local Neck = Torso["Neck"]
- local ServerStorage = game:GetService("ServerStorage")
- local Camera = game.Workspace.CurrentCamera
- local PlayerGui = Player.PlayerGui
- local Backpack = Player.Backpack
- local Mouse = Player:GetMouse()
- local Debris = game:GetService("Debris")
- local Create = Instance.new
- local RGBColor = Color3.fromRGB
- local cf = CFrame.new
- local euler = CFrame.fromEulerAnglesXYZ
- local angles = CFrame.Angles
- local RW,LW,RH,LH,HW
- local necko = CFrame.new(0, 1.5, 0)
- local RootCF = euler(-1.57,0,3.14)
- local Me = Player.Name
- local PlayerMode = "Normal"
- local ModeOfSans = 1
- local animpose = "Standing"
- local Debounce_Animation = false
- local change = 3
- local sine = 0
- local val = 3
- local isattack = false
- local Charge = {}
- local Debouce = {}
- local Held = {}
- local Keep = {}
- local ForceField = Instance.new("ForceField",Character)
- ForceField.Visible = false
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = Humanoid.MaxHealth
- --//======================================\\
- --|| Main&Function;
- --\\======================================//
- spawn(function()
- Character:FindFirstChild("Body Colors"):Destroy()
- Head:FindFirstChildOfClass("Decal"):Destroy()
- end)
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Part") then
- v.BrickColor = BrickColor.White()
- end
- end
- for i, v in pairs(Backpack:GetChildren()) do
- if v:IsA("Tool") then
- v:Destroy()
- end
- end
- -- ReNew Accessory, Shirt, Pants
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- end
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Pants") then
- v:Destroy()
- end
- end
- wait()
- local Shirt = Instance.new("Shirt",Character)
- Shirt.Name = "Shirt"
- local Pants = Instance.new("Pants",Character)
- Pants.Name = "Pants"
- wait()
- Shirt.ShirtTemplate = "rbxassetid://1696539845"
- Pants.PantsTemplate = "rbxassetid://1216922932"
- RemoveOutlines = function(part)
- part.BackSurface,part.BottomSurface,part.FrontSurface,part.LeftSurface,part.RightSurface,part.TopSurface = 10,10,10,10,10,10
- end
- function CreatePart(Parent, Material, Reflectance, Transparency, Anchored, CanCollide, RGBColor3, Name, Size)
- local Part = Instance.new("Part")
- Part.Parent = Parent
- Part.Reflectance = Reflectance
- Part.Transparency = Transparency
- Part.CanCollide = CanCollide
- Part.Anchored = Anchored
- Part.Locked = true
- Part.Color = RGBColor3
- Part.Name = Name
- Part.Size = Size
- Part.Material = Material
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Parent, MeshType, MeshId, OffSet, Scale)
- local Msh = Instance.new(Mesh)
- Msh.Parent = Parent
- Msh.Offset = OffSet
- Msh.Scale = Scale
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Instance.new("Weld")
- Weld.Parent = Parent
- Weld.Part0 = Part0
- Weld.Part1 = Part1
- Weld.C0 = C0
- Weld.C1 = C1
- return Weld
- end
- function CreateSound(id, par, vol, pit, loop, destroyended)
- coroutine.resume(coroutine.create(function()
- local S = Instance.new("Sound")
- S.Volume = vol
- S.Pitch = pit or 1
- S.SoundId = "rbxassetid://" ..id
- S.Parent = par or workspace
- S.Looped = loop
- S:Play()
- if destroyended == true then
- spawn(function()
- S.Ended:connect(function()
- S:Destroy()
- end)
- end)
- end
- end))
- end
- function CreateParticleEmitter(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Instance.new("ParticleEmitter")
- fp.Parent = Parent
- fp.Color = ColorSequence.new(Color1, Color2)
- fp.LightEmission = LightEmission
- fp.Size = Size
- fp.Texture = Texture
- fp.Transparency = Transparency
- fp.ZOffset = ZOffset
- fp.Acceleration = Accel
- fp.Drag = Drag
- fp.LockedToPart = LockedToPart
- fp.VelocityInheritance = VelocityInheritance
- fp.EmissionDirection = EmissionDirection
- fp.Enabled = Enabled
- fp.Lifetime = LifeTime
- fp.Rate = Rate
- fp.Rotation = Rotation
- fp.RotSpeed = RotSpeed
- fp.Speed = Speed
- fp.VelocitySpread = VelocitySpread
- return fp
- end
- function Hurt(hit, dmg, notdamgewith)
- if hit.Parent then
- -- Bleeding
- --[[spawn(function()
- if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit.Parent:FindFirstChild("Corpse") and hit.Parent.Name ~= notdamgewith then
- local TorsoPos = hit.Parent:FindFirstChild("Torso")
- Bleeding(TorsoPos,bloodamount)
- end
- end)--]]
- -- OnDeath_Ragdoll
- spawn(function()
- if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= notdamgewith then
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- local human2 = hit.Parent:FindFirstChild("Corpse")
- if human2 then
- return true
- end
- if human.Health == 0 then
- local child = human.Parent
- if child:FindFirstChild("Torso") then
- child:FindFirstChild("Torso").CFrame = child:FindFirstChild("Torso").CFrame * angles(math.rad(2), math.rad(0), math.rad(0))
- local TorsoPos = hit.Parent:FindFirstChild("Torso")
- Ragdoll(child,Torso,true)
- end
- end
- end
- end)
- -- Damage
- if hit.Parent.Name == "box" then print("bocks!11") hit.Parent:Destroy() end
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- if hum.Parent.Name ~= notdamgewith then
- if dmg == "Kill" or hum.Health > 100000 then
- hit.Parent:BreakJoints()
- return true
- else
- if math.random(0, 100) == 50 then
- hum.Health = hum.Health - dmg*1*2.5
- else
- hum.Health = hum.Health -dmg*1
- end
- return true
- end
- end
- end
- end
- end
- local function lerp(a,b,c)
- return a+(b-a)*c
- end
- local function rndRange(rng)
- return math.random(-rng*1000,rng*1000)/1000
- end
- function CastRay(startPos,endPos,range,ignoreList)
- local ray = Ray.new(startPos,(endPos-startPos).unit*range)
- local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Character},false,true)
- return part,pos,norm,(pos and (startPos-pos).magnitude)
- end
- function Sticky(x, y)
- local weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = y
- end
- function Bleeding(Pos,Amount)
- for i = 1, Amount do
- local randsize = math.random(0.8,1.2)
- 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))
- Bleed.CFrame = Pos.CFrame
- Debris:AddItem(Bleed,math.random(5,10))
- swait()
- end
- end
- function Ragdoll(Character2,CharTorso,KeepArms)
- coroutine.resume(coroutine.create(function()
- Character2:BreakJoints()
- swait()
- local hum = Character2:findFirstChild("Humanoid")
- hum:remove()
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- local NEWHUM = Instance.new("Humanoid")
- NEWHUM.Name = "Corpse"
- NEWHUM.Health = 0
- NEWHUM.MaxHealth = 0
- NEWHUM.PlatformStand = true
- NEWHUM.Parent = Character2
- NEWHUM.DisplayDistanceType = "Viewer"
- local ch = Character2:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- local Torso2 = Character2.Torso
- local movevector = Vector3.new()
- if Torso2 then
- movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
- local Head = Character2:FindFirstChild("Head")
- local Face = Head:FindFirstChildOfClass("Decal")
- Face.Texture = "rbxassetid://26619042"
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso2
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso2
- end
- local Limb = Character2:FindFirstChild("Right Arm")
- if Limb and KeepArms == true then
- Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso2
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso2
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character2
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character2:FindFirstChild("Left Arm")
- if Limb and KeepArms == true then
- Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso2
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso2
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character2
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character2:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso2
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso2
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character2
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character2:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso2
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso2
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character2
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character2
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso2
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso2
- --]]
- end
- Character2.Parent = workspace
- Debris:AddItem(Character2,9)
- return Character2,Torso2
- end))
- end
- local walkspeed = nil
- local jumppower = nil
- local GetValueWS_JP = function(hum)
- local GotValueWS = hum.WalkSpeed
- local GotValueJP = hum.JumpPower
- walkspeed = GotValueWS
- jumppower = GotValueJP
- end
- local StoreWS_JP = function(hum)
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- end
- local ReleaseWS_JP = function(hum)
- hum.WalkSpeed = walkspeed
- hum.JumpPower = jumppower
- end
- local KeyAndAnimation = function(yes_or_no)
- isattack = yes_or_no
- Debounce_Animation = yes_or_no
- end
- function ThrowObj(parent,direction,speedthrown)
- local bv = Instance.new("BodyVelocity",parent)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = direction.CFrame.lookVector * speedthrown
- bv.P = 1
- coroutine.resume(coroutine.create(function()
- wait()
- bv:Destroy()
- end))
- end
- local ThemeMusic = Instance.new("Sound",Head)
- ThemeMusic.Name = "Theme Sans AU"
- ThemeMusic.SoundId = "rbxassetid://348208939"
- ThemeMusic.Volume = 1
- ThemeMusic.Looped = true
- ThemeMusic.PlaybackSpeed = 0.675
- ThemeMusic:Play()
- -- Magical Eye
- local EyeMagicModel = Character:FindFirstChild("EyeMagicModel") or Instance.new("Model",Character)
- EyeMagicModel.Name = "EyeMagicModel"
- local MagicEye = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(4, 175, 236), "Effect", Vector3.new(0.1275, 0.1275, 0.1275))
- 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))
- local MeshMagicEye = CreateMesh("SpecialMesh", MagicEye, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
- local MagicEye2 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(0, 0, 0), "Effect", Vector3.new(0.25, 0.25, 0.25))
- 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))
- local MeshMagicEye2 = CreateMesh("SpecialMesh", MagicEye2, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
- local MagicEye3 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(255, 255, 255), "Effect", Vector3.new(0.1275, 0.1275, 0.1275))
- 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))
- local MeshMagicEye3 = CreateMesh("SpecialMesh", MagicEye3, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
- local MagicEye4 = CreatePart(EyeMagicModel, Enum.Material.Neon, 0, 0, false, false, RGBColor(0, 0, 0), "Effect", Vector3.new(0.25, 0.25, 0.25))
- 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))
- local MeshMagicEye4 = CreateMesh("SpecialMesh", MagicEye4, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
- local Equip = {
- ['BrushInkSans'] = nil
- }
- local Active = {
- ["KnifeKillerSans"] = false,
- ["BrushInkSans"] = false
- }
- local GetItems = {}
- function ClearItemsAll()
- coroutine.resume(coroutine.create(function()
- for i = 1, #GetItems do
- GetItems[i]:Destroy()
- end
- end))
- end
- function ChangeEyes(c1,c2,c3,c4 ,ma1,ma2,ma3,ma4)
- MagicEye.Color = c1
- MagicEye2.Color = c2
- MagicEye3.Color = c3
- MagicEye4.Color = c4
- MagicEye.Material = ma1
- MagicEye2.Material = ma2
- MagicEye3.Material = ma3
- MagicEye4.Material = ma4
- end
- local AnimationKnife_KillerSans = nil
- local Knife_KillerSans = nil
- local BrushTrail = nil
- local Transform = {
- ["Sans_UT"] = function()
- ModeOfSans = 1
- ClearItemsAll()
- --Music Theme
- ThemeMusic.SoundId = "rbxassetid://348208939"
- ThemeMusic.PlaybackSpeed = 0.675
- --Shirt & Pants
- Shirt.ShirtTemplate = "rbxassetid://1696539845"
- Pants.PantsTemplate = "rbxassetid://1216922932"
- --EyeMagic
- 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)
- workspace:FindFirstChild("Knife's Killer Sans"):Destroy()
- workspace:FindFirstChild("Brush's Ink Sans"):Destroy()
- end;
- ["Killer_Sans"] = function()
- ModeOfSans = 2
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://1007722135"
- --Shirt & Pants
- Shirt.ShirtTemplate = "rbxassetid://724587961"
- Pants.PantsTemplate = "rbxassetid://1216922932"
- --EyeMagic
- 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)
- --Special Item
- local Knife = workspace:FindFirstChild("Knife's Killer Sans")
- if Knife == nil then
- ClearItemsAll()
- Knife = Instance.new("Model",workspace)
- else
- return
- end
- Knife.Name = "Knife's Killer Sans"
- local KnifeKillerSans = CreatePart(Knife, Enum.Material.Plastic, 0, 0, false, false, RGBColor(0, 0, 0), "Knife", Vector3.new(.4, 3, .7))
- KnifeKillerSans.Touched:connect(function(Hit)
- if Active["KnifeKillerSans"] == true then
- Hurt(Hit, math.random(15, 50), Me)
- end
- end)
- local MeshKnifeKiller = CreateMesh("SpecialMesh", KnifeKillerSans, "FileMesh", "rbxassetid://121944778", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
- MeshKnifeKiller.TextureId = "http://www.roblox.com/asset/?id=144012208"
- 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))
- AnimationKnife_KillerSans = WeldKnife
- Knife_KillerSans = KnifeKillerSans
- local RedCircle = Instance.new("Model",Character)
- RedCircle.Name = "RedCircle"
- local circle = CreatePart(RedCircle,Enum.Material.Neon,0,0,false,false,RGBColor(255,0,0),"Circle",Vector3.new(0.5,0.125,0.5))
- 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))
- local meshcircle = CreateMesh("CylinderMesh",circle,"","",Vector3.new(0,0,0),Vector3.new(1,1,1))
- local hollowcircle = CreatePart(circle,Enum.Material.Neon,0,0,false,false,RGBColor(255,0,0),"Circle",Vector3.new(0.75,0.75,0.125))
- local weldhollowcircle = CreateWeld(hollowcircle,hollowcircle,Torso,cf(0,0,0.475)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
- local meshhollowcircle = CreateMesh("SpecialMesh",hollowcircle,"FileMesh","rbxassetid://3270017",Vector3.new(0,0,0),Vector3.new(0.75,0.75,0.75))
- local Tear = Instance.new("Model",Character)
- Tear.Name = "BloodTear"
- local BloodOnEye = CreatePart(Tear,Enum.Material.Concrete,0,0,false,false,RGBColor(15,15,15),"Blood",Vector3.new(0.05,0.5,0.05))
- 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))
- local BloodOnEye2 = CreatePart(Tear,Enum.Material.Concrete,0,0,false,false,RGBColor(15,15,15),"Blood",Vector3.new(0.05,0.35,0.05))
- 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))
- table.insert(GetItems, Knife)
- table.insert(GetItems, RedCircle)
- table.insert(GetItems, Tear)
- end;
- ["Ink_Sans"] = function()
- ModeOfSans = 3
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://887320115"
- --Shirt & Pants
- Shirt.ShirtTemplate = "rbxassetid://789901314"
- Pants.PantsTemplate = "rbxassetid://1605269506"
- --EyeMagic
- 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)
- --Special Item
- local Brush = workspace:FindFirstChild("Brush's Ink Sans")
- if Brush == nil then
- ClearItemsAll()
- Brush = Instance.new("Model",workspace)
- else
- return
- end
- Brush.Name = "Brush's Ink Sans"
- local Handle = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(105, 64, 40), "Handle", Vector3.new(1, 10, 1))
- 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))
- local MeshCy = CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0,0,0), Vector3.new(0.75,1,0.75))
- local P1 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(255, 255, 255), "Part", Vector3.new(1.1, 1.5, 1.1))
- local MakeP1Holding = CreateWeld(P1,P1,Handle,cf(0, 3, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local MeshP1Cy = CreateMesh("CylinderMesh", P1, "", "", Vector3.new(0,0,0), Vector3.new(1,1,1))
- local P2 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(255, 255, 255), "Part", Vector3.new(1.1, 1.5, 1.1))
- local MakeP2Holding = CreateWeld(P2,P2,Handle,cf(0, -2, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local MeshP2Cy = CreateMesh("CylinderMesh", P2, "", "", Vector3.new(0,0,0), Vector3.new(1,1,1))
- local P3 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(124, 92, 70), "Part", Vector3.new(1.5, 1.75, 1.5))
- local MakeP3Holding = CreateWeld(P3,P3,Handle,cf(0, -3, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local MeshP3Cy = CreateMesh("SpecialMesh", P3, "FileMesh", "rbxassetid://1185246", Vector3.new(0,0,0), Vector3.new(3, 3, 3))
- local P4 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(105, 64, 40), "Part", Vector3.new(1.5, 1.75, 1.5))
- local MakeP4Holding = CreateWeld(P4,P4,Handle,cf(0, -4.5, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local MeshP4Cy = CreateMesh("SpecialMesh", P4, "FileMesh", "rbxassetid://1033714", Vector3.new(0,0,0), Vector3.new(1.097, 3.5, 1.097))
- local P5 = CreatePart(Brush, Enum.Material.Plastic, 0, 0, false, false, RGBColor(0, 0, 0), "Part", Vector3.new(0.5, 0.75, 0.5))
- local MakeP5Holding = CreateWeld(P5,P5,Handle,cf(0, -5.5, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local MeshP5Cy = CreateMesh("SpecialMesh", P5, "FileMesh", "rbxassetid://1033714", Vector3.new(0,0,0), Vector3.new(0.4, 1.175, 0.4))
- Equip.BrushInkSans = MakeHolding
- local PosAtt1 = CreatePart(Brush, Enum.Material.Plastic, 0, 1, false, false, RGBColor(0, 0, 0), "PosTrail1", Vector3.new(0.05, 0.05, 0.05))
- local MakeA1Holding = CreateWeld(PosAtt1,PosAtt1,Handle,cf(0, -5.1, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local PosAtt2 = CreatePart(Brush, Enum.Material.Plastic, 0, 1, false, false, RGBColor(0, 0, 0), "PosTrail2", Vector3.new(0.05, 0.05, 0.05))
- local MakeA2Holding = CreateWeld(PosAtt2,PosAtt2,Handle,cf(0, -5.9, 0)*angles(0,0,0), cf(0, 0, 0)*angles(0, 0, 0))
- local A0 = Instance.new('Attachment',PosAtt1)
- local A1 = Instance.new('Attachment',PosAtt2)
- local tl1 = Instance.new('Trail',P5)
- tl1.Attachment0 = A0
- tl1.Attachment1 = A1
- --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tl1.LightEmission = 0.5
- tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
- tl1.Lifetime = 0.6
- P4.Touched:connect(function(Hit)
- if Active["BrushInkSans"] == true then
- Hurt(Hit, math.random(15, 50), Me)
- end
- end)
- BrushTrail = tl1
- table.insert(GetItems, Brush)
- end;
- ["Error_Sans"] = function()
- ModeOfSans = 4
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://576474523"
- --Shirt & Pants
- Shirt.ShirtTemplate = "rbxassetid://2096464105"
- Pants.PantsTemplate = "rbxassetid://2039333738"
- --EyeMagic
- 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)
- ClearItemsAll()
- end;
- ["Anitvirus_Sans"] = function()
- ModeOfSans = 5
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://684447875"
- end;
- ["Digi_Sans"] = function()
- ModeOfSans = 6
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://2174461898"
- end;
- ["Timekid_Sans"] = function()
- ModeOfSans = 7
- --Music Theme
- ThemeMusic.PlaybackSpeed = 1
- ThemeMusic.SoundId = "rbxassetid://360042276"
- end;
- }
- local OriPos = nil
- local StanceAction = {
- Bone = function()
- local n = math.random(5,10)
- local BoneModel = Instance.new("Model",workspace)
- BoneModel.Name = "Bone"
- local Part1 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
- Part1.Shape = Enum.PartType.Ball
- local Part2 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
- Part2.Shape = Enum.PartType.Ball
- local Part3 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
- Part3.Shape = Enum.PartType.Ball
- local Part4 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(1,1,1))
- Part4.Shape = Enum.PartType.Ball
- local Part5 = CreatePart(BoneModel,Enum.Material.Plastic,0,0,false,true,RGBColor(255,255,255),"Part",Vector3.new(n,0.8,0.8))
- Part5.Shape = Enum.PartType.Cylinder
- local Weld1 = CreateWeld(Part1, Part1, Part5, cf(n/2, 0, 0.35)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
- local Weld2 = CreateWeld(Part2, Part2, Part5, cf(-n/2, 0, 0.35)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
- local Weld3 = CreateWeld(Part3, Part3, Part5, cf(n/2, 0, -0.35)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
- local Weld4 = CreateWeld(Part4, Part4, Part5, cf(-n/2, 0, -0.35)*angles(0, 0, 0), cf(0, 0, 0)*angles(0, 0, 0))
- Part5.CFrame = Mouse.Hit + Vector3.new(0,math.random(1,7),0)
- Part5.CFrame = Part5.CFrame * angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
- local BodyVel = Instance.new('BodyVelocity',Part5)
- BodyVel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- BodyVel.Velocity = Vector3.new(0,196.2,0)
- BodyVel.P = 1
- local BodyGyro = Instance.new('BodyGyro',Part5)
- BodyGyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- BodyGyro.P = 2e4
- Part1.Touched:connect(function(Hit)
- Hurt(Hit, math.random(1,25), Me)
- end)
- Part2.Touched:connect(function(Hit)
- Hurt(Hit, math.random(1,25), Me)
- end)
- Part3.Touched:connect(function(Hit)
- Hurt(Hit, math.random(1,25), Me)
- end)
- Part4.Touched:connect(function(Hit)
- Hurt(Hit, math.random(1,25), Me)
- end)
- Part5.Touched:connect(function(Hit)
- Hurt(Hit, math.random(1,25), Me)
- end)
- local SoundPing = CreateSound(138222365,Part5,5,1.5,false,true)
- Mouse.KeyUp:connect(function(Key)
- if ModeOfSans == 1 then
- if Key == "r" then
- Held[Key] = nil
- BodyVel.Velocity = Vector3.new(0,196.2,0)
- end
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if ModeOfSans == 1 then
- if Key == "r" then
- Held[Key] = true
- while Held[Key] == true do
- if Held[Key] == nil then
- return
- end
- BodyGyro.CFrame = CFrame.new(Part5.Position,Mouse.Hit.p)
- BodyVel.Velocity = Part5.CFrame.lookVector*300
- swait()
- end
- end
- end
- end)
- table.insert(GetItems, BoneModel)
- end;
- GasterBlaster = function()
- local aimPos = Mouse.Hit.p
- local blasterhead = Instance.new("Part",Character)
- blasterhead.Size = Vector3.new(6,6,6)
- blasterhead.CanCollide = false
- blasterhead.Anchored = true
- blasterhead.Transparency = 1
- local mesh=Instance.new("SpecialMesh",blasterhead)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
- mesh.Scale=Vector3.new(.075,.0725,.075)
- local decal = Instance.new("Decal",blasterhead)
- decal.Texture = "rbxassetid://441975828"
- blasterhead.CFrame = CFrame.new(Character.Torso.CFrame:toWorldSpace(CFrame.new(math.random(-10,10),2,math.random(-10,10))).p,aimPos)
- blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
- local s_up = CreateSound(422747271,blasterhead,10,1,false,true)
- for i = 0, 1, 0.05 do
- blasterhead.CFrame = CFrame.new(blasterhead.CFrame.p,aimPos)
- blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
- blasterhead.Position = blasterhead.Position + Vector3.new(0,math.random(i,i+0.5),0)
- swait()
- end
- spawn(function()
- wait(1/10)
- CreateSound(340722848,blasterhead,10,1,false,true)
- --head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(blasterhead.CFrame.p,(aimPos - blasterhead.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,Character)
- local dis = (blasterhead.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",workspace)
- rayPart.Shape = Enum.PartType.Cylinder
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.BrickColor = BrickColor.new("White")
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(dis + 400,blasterhead.Size/2,blasterhead.Size/2)
- rayPart.Touched:connect(function(Hit)
- Hurt(Hit,1,Me)
- end)
- 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))
- rayPart.CFrame = rayCFrame
- spawn(function()
- for i = 0, 1, .05 do
- local retardation = lerp(1.25,0.2,i)
- local ns = lerp(0.2,1,i)
- local trans = lerp(0,1.1,i)
- rayPart.Size = rayPart.Size + Vector3.new(ns,ns,ns)
- rayPart.Transparency = trans
- blasterhead.CFrame = blasterhead.CFrame + blasterhead.CFrame.lookVector * retardation
- 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))
- swait()
- end
- rayPart:Destroy()
- spawn(function()
- wait(2)
- blasterhead:Destroy()
- end)
- end)
- table.insert(GetItems, rayPart)
- end)
- table.insert(GetItems, blasterhead)
- end;
- HugeGasterBlaster = function()
- local aimPos = Mouse.Hit.p
- local blasterhead = Instance.new("Part",Character)
- blasterhead.Size = Vector3.new(20,20,20)
- blasterhead.CanCollide = false
- blasterhead.Anchored = true
- blasterhead.Transparency = 1
- local mesh=Instance.new("SpecialMesh",blasterhead)
- mesh.MeshType="FileMesh"
- mesh.MeshId="rbxassetid://431908407"
- mesh.Scale=Vector3.new(0.25,0.225,0.25)
- local decal = Instance.new("Decal",blasterhead)
- decal.Texture = "rbxassetid://441975828"
- blasterhead.CFrame = CFrame.new(Character.Torso.CFrame:toWorldSpace(CFrame.new(math.random(-20,20),1,math.random(-20,20))).p,aimPos)
- blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
- local s_up = CreateSound(422747271,blasterhead,10,1,false,true)
- for i = 0, 1, 0.05 do
- local trans = lerp(0.75,1,i)
- blasterhead.CFrame = CFrame.new(blasterhead.CFrame.p,aimPos)
- blasterhead.CFrame = blasterhead.CFrame*CFrame.Angles(0,math.rad(180),0)
- blasterhead.Position = blasterhead.Position + Vector3.new(0,i+i,0)
- swait()
- end
- spawn(function()
- wait(2)
- CreateSound(334702766,workspace,1,1,false,true)
- --head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(blasterhead.CFrame.p,(aimPos - blasterhead.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,Character)
- local dis = (blasterhead.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",workspace)
- rayPart.Shape = Enum.PartType.Cylinder
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.BrickColor = BrickColor.new("White")
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(dis + 400,18,18)
- rayPart.Touched:connect(function(Hit)
- Hurt(Hit,50,Me)
- end)
- 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))
- rayPart.CFrame = rayCFrame
- spawn(function()
- for i = 0, 2, .05 do
- local retardation = lerp(2,0.75,i)
- local ns = lerp(0.3,1,i)
- local trans = lerp(0,1.1,i)
- rayPart.Size = rayPart.Size + Vector3.new(ns,ns,ns)
- rayPart.Transparency = trans
- blasterhead.CFrame = blasterhead.CFrame + blasterhead.CFrame.lookVector * retardation
- 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))
- swait()
- end
- rayPart:Destroy()
- wait(2)
- blasterhead:Destroy()
- end)
- table.insert(GetItems, rayPart)
- end)
- table.insert(GetItems, blasterhead)
- end;
- GravityControl = function()
- local Target = Mouse.Target
- local TarTorso = Target.Parent:FindFirstChild("Torso")
- if Target.Parent.Parent:FindFirstChildOfClass("Model") and Target.Parent:FindFirstChildOfClass("Humanoid") then
- local MarkTarget = CreatePart(workspace,Enum.Material.Marble,0,0.4,false,false,RGBColor(0,0,235),"Marked",Vector3.new(2,1,1))
- local MeshMark = CreateMesh("SpecialMesh",MarkTarget,"FileMesh","rbxassetid://14656345",Vector3.new(0,0,0),Vector3.new(0.05,0.05,0.05))
- local WeldMark = CreateWeld(MarkTarget,MarkTarget,TarTorso, cf(0,0,-5)*angles(math.rad(90),0,0), cf(0,0,0)*angles(0,0,0))
- local BodyVel = Instance.new('BodyVelocity',TarTorso)
- BodyVel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- BodyVel.Velocity = Vector3.new(0,196.2,0)
- BodyVel.P = 1
- local BodyGyro = Instance.new('BodyGyro',TarTorso)
- BodyGyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- BodyGyro.P = 2e4
- Mouse.KeyUp:connect(function(Key)
- if ModeOfSans == 1 then
- if ModeOfSans == 1 then
- if Key == "q" then
- Held[Key] = nil
- BodyVel.Velocity = Vector3.new(0,0,0)
- end
- end
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if ModeOfSans == 1 then
- if Key == "q" then
- Held[Key] = true
- while Held[Key] == true do
- if Held[Key] == nil or TarTorso.Parent:FindFirstChildOfClass("Humanoid").Health == 0 then
- return
- end
- BodyGyro.CFrame = CFrame.new(TarTorso.Position,Mouse.Hit.p)
- BodyVel.Velocity = TarTorso.CFrame.lookVector*300
- swait()
- end
- end
- end
- end)
- end
- end;
- Teleport = function()
- HumanoidRootPart.CFrame = Mouse.Hit * CFrame.new(0, 2.8, 0)
- CreateSound(367453005,Head,1,1,false,true)
- end;
- Torture = function()
- local Target = Mouse.Target
- local TarTorso = Target.Parent:FindFirstChild("Torso")
- local TarHead = Target.Parent:FindFirstChild("Head")
- local TarLA = Target.Parent:FindFirstChild("Left Arm")
- local TarRA = Target.Parent:FindFirstChild("Right Arm")
- local TarLL = Target.Parent:FindFirstChild("Left Leg")
- local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
- if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL then
- KeyAndAnimation(true)
- HumanoidRootPart.CFrame = TarTorso.CFrame
- TarHead.Anchored = true
- GetValueWS_JP(Humanoid)
- StoreWS_JP(TarHum)
- StoreWS_JP(Humanoid)
- local Behind = CreateWeld(HumanoidRootPart,HumanoidRootPart,TarTorso,cf(0,0,-1.5)*angles(0,0,0), cf(0,0,0)*angles(0,0,0))
- CreateSound(305685800,workspace,1,1,false,true)
- local frame = 10
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- frame = 20
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- TarLA:BreakJoints()
- TarRA:BreakJoints()
- TarLA.Parent = TarTorso
- TarRA.Parent = TarTorso
- TarLA.CanCollide = true
- TarRA.CanCollide = true
- 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))
- 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))
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- frame = 60
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(260), math.rad(0), math.rad(-20)), 0.05)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(260), math.rad(0), math.rad(20)), 0.05)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- frame = 10
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- TarLA:BreakJoints()
- TarRA:BreakJoints()
- ThrowObj(TarLA,Head,1000)
- ThrowObj(TarRA,Head,1000)
- frame = 30
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(5),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- frame = 40
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(-0.5,-0.5,0) * angles(math.rad(0),math.rad(0),math.rad(20)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- CreateSound(1386772138,Head,1,1,false,true)
- frame = 10
- for i = 0, frame do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(-0.5,-0.5,0) * angles(math.rad(0),math.rad(0),math.rad(20)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- 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)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- swait()
- end
- if TarTorso.Parent:FindFirstChild("Torso") then
- TarTorso.Parent:FindFirstChild("Torso").CFrame = TarTorso.Parent:FindFirstChild("Torso").CFrame * angles(math.rad(2), math.rad(0), math.rad(0))
- Ragdoll(TarTorso.Parent,Torso,true)
- end
- TarHead.Anchored = false
- ReleaseWS_JP(Humanoid)
- Behind:Destroy()
- KeyAndAnimation(false)
- end
- end;
- CutHead = function()
- local Target = Mouse.Target
- local TarTorso = Target.Parent:FindFirstChild("Torso")
- local TarHead = Target.Parent:FindFirstChild("Head")
- local TarLA = Target.Parent:FindFirstChild("Left Arm")
- local TarRA = Target.Parent:FindFirstChild("Right Arm")
- local TarLL = Target.Parent:FindFirstChild("Left Leg")
- local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
- if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL and TarHead then
- KeyAndAnimation(true)
- GetValueWS_JP(Humanoid)
- StoreWS_JP(TarHum)
- StoreWS_JP(Humanoid)
- HumanoidRootPart.CFrame = TarTorso.CFrame
- TarHead.Anchored = true
- local Behind = CreateWeld(HumanoidRootPart,HumanoidRootPart,TarTorso,cf(0,0,-1.5)*angles(0,0,0), cf(0,0,0)*angles(0,0,0))
- for i = 1, 20 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.15)
- swait()
- end
- for i = 1, 20 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
- 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)
- swait()
- end
- Ragdoll(TarTorso.Parent,Torso,true)
- TarHead.Anchored = false
- wait()
- TarHead:BreakJoints()
- Sticky(LeftArm,TarHead)
- for i = 1, 30 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-10),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
- 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)
- swait()
- end
- for i = 1, 40 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2) * angles(math.rad(-25),math.rad(20),math.rad(190)), .15)
- 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)
- swait()
- end
- for i = 1, 20 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2) * angles(math.rad(-75),math.rad(20),math.rad(210)), .25)
- 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)
- swait()
- end
- CreateSound(171688984,Head,1,1,false,true)
- for i = 1, 20 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2) * angles(math.rad(-25),math.rad(20),math.rad(190)), .25)
- 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)
- swait()
- end
- for i = 1, 20 do
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.15)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-15),math.rad(0),math.rad(0)),.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, 0.2) * angles(math.rad(-75),math.rad(20),math.rad(210)), .25)
- 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)
- swait()
- end
- TarHead:BreakJoints()
- CreateSound(171688984,Head,1,1,false,true)
- ReleaseWS_JP(Humanoid)
- Behind:Destroy()
- KeyAndAnimation(false)
- end
- end;
- BrushAttack1 = function()
- KeyAndAnimation(true)
- Equip.BrushInkSans.Part1 = RightArm
- BrushTrail.Color = ColorSequence.new(BrickColor.new('Really black').Color,BrickColor.new('Lime green').Color)
- coroutine.resume(coroutine.create(function()
- for i = 1, 40 do
- Equip.BrushInkSans.C0 = clerp(Equip.BrushInkSans.C0, cf(0, -1, 0.75) *angles(math.rad(0), 0, math.rad(-180)), .075)
- swait()
- end
- end))
- for i = 1, 30 do
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.1) * angles(math.rad(70), math.rad(0), math.rad(40)), .1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0.1) * angles(math.rad(-40), math.rad(0), math.rad(40)), .1)
- swait()
- end
- Active["BrushInkSans"] = true
- for i = 1, 25 do
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), .15)
- swait()
- end
- BrushTrail.Color = ColorSequence.new(BrickColor.new('Really black').Color)
- Active["BrushInkSans"] = false
- KeyAndAnimation(false)
- end;
- ErrorRemove = function()
- local Target = Mouse.Target
- local TarTorso = Target.Parent:FindFirstChild("Torso")
- local TarHead = Target.Parent:FindFirstChild("Head")
- local TarLA = Target.Parent:FindFirstChild("Left Arm")
- local TarRA = Target.Parent:FindFirstChild("Right Arm")
- local TarLL = Target.Parent:FindFirstChild("Left Leg")
- local TarRL = Target.Parent:FindFirstChild("Right Leg")
- local TarHum = Target.Parent:FindFirstChildOfClass("Humanoid")
- if TarHum and TarHum.Health ~= 0 and TarTorso and TarLA and TarRA and TarLL and TarHead then
- KeyAndAnimation(true)
- 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))
- local WeldRemovePart = CreateWeld(RemovePart,RemovePart,TarTorso,cf(0,2.5,0)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
- swait()
- RemovePart.Anchored = true
- TarTorso.Anchored = true
- for i = 0, 1, 0.1 do
- local ns = lerp(0.5,1,i)
- RemovePart.Size = RemovePart.Size + Vector3.new(0,ns,0)
- swait()
- end
- for i = 0, 1, 0.1 do
- 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)
- end
- TarTorso:Destroy()
- TarHead:Destroy()
- TarLA:Destroy()
- TarRA:Destroy()
- TarLL:Destroy()
- TarRL:Destroy()
- for i = 0, 1, 0.1 do
- local ns = lerp(1,0.5,i)
- RemovePart.Size = RemovePart.Size - Vector3.new(ns,ns+ns+ns,ns)
- swait()
- end
- RemovePart:Destroy()
- KeyAndAnimation(false)
- end
- end;
- InfectionError = function()
- KeyAndAnimation(true)
- local speedearn = 0
- for i = 0, 10, 0.1 do
- swait()
- speedearn = speedearn + 0.1
- 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)
- 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)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
- end
- local Infected = function(v)
- coroutine.resume(coroutine.create(function()
- if v ~= Character then
- 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))
- local WeldRemovePart = CreateWeld(RemovePart,RemovePart,v.Torso,cf(0,2.5,0)*angles(0,0,0),cf(0,0,0)*angles(0,0,0))
- swait()
- RemovePart.Anchored = true
- v.Torso.Anchored = true
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- local ns = lerp(0.5,1,i)
- RemovePart.Size = RemovePart.Size + Vector3.new(0,ns,0)
- swait()
- end
- for i = 0, 1, 0.1 do
- 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)
- end
- for i, k in pairs(v:GetChildren()) do
- if k:IsA("Part") or k:IsA("Model") then
- k:Destroy()
- end
- end
- for i = 0, 1, 0.1 do
- local ns = lerp(1,0.5,i)
- RemovePart.Size = RemovePart.Size - Vector3.new(ns,ns+ns+ns,ns)
- swait()
- end
- RemovePart:Destroy()
- end))
- end
- end))
- end
- CreateSound(62339698,workspace,1,0.3,false,true)
- for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
- if v:FindFirstChild('Torso') then
- Infected(v)
- end
- end
- for i = 0, 3, 0.1 do
- swait()
- 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)
- 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)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
- end
- KeyAndAnimation(false)
- end;
- PastTime = function()
- local Freeze = function(v)
- coroutine.resume(coroutine.create(function()
- local hum = v:FindFirstChildOfClass("Humanoid")
- hum.WalkSpeed = 0
- if v ~= Character then
- v:FindFirstChild("Torso").Anchored = true
- v:FindFirstChild("Head").Anchored = true
- v:FindFirstChild("Right Arm").Anchored = true
- v:FindFirstChild("Left Arm").Anchored = true
- v:FindFirstChild("Right Leg").Anchored = true
- v:FindFirstChild("Left Leg").Anchored = true
- v:FindFirstChild("HumanoidRootPart").Anchored = true
- end
- end))
- end
- local Thaw = function(v)
- coroutine.resume(coroutine.create(function()
- v:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
- if v ~= Character then
- v:FindFirstChild("Torso").Anchored = false
- v:FindFirstChild("Head").Anchored = false
- v:FindFirstChild("Right Arm").Anchored = false
- v:FindFirstChild("Left Arm").Anchored = false
- v:FindFirstChild("Right Leg").Anchored = false
- v:FindFirstChild("Left Leg").Anchored = false
- v:FindFirstChild("HumanoidRootPart").Anchored = false
- end
- end))
- end
- spawn(function()
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") then
- if v:FindFirstChildOfClass("BodyVelocity") or v:FindFirstChildOfClass("RocketPropulsion") or v:FindFirstChildOfClass("BodyForce") or v:FindFirstChildOfClass("BodyPosition") then
- spawn(function()
- v.Anchored = true
- swait()
- v.Anchored = false
- swait()
- end)
- end
- end
- end
- end)
- for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
- if v:FindFirstChild('Torso') then
- spawn(function()
- Freeze(v)
- swait()
- Thaw(v)
- swait()
- end)
- end
- end
- end;
- FreezeTime = function()
- local Freeze = function(v)
- coroutine.resume(coroutine.create(function()
- local hum = v:FindFirstChildOfClass("Humanoid")
- hum.WalkSpeed = 0
- if v ~= Character then
- v:FindFirstChild("Torso").Anchored = true
- v:FindFirstChild("Head").Anchored = true
- v:FindFirstChild("Right Arm").Anchored = true
- v:FindFirstChild("Left Arm").Anchored = true
- v:FindFirstChild("Right Leg").Anchored = true
- v:FindFirstChild("Left Leg").Anchored = true
- v:FindFirstChild("HumanoidRootPart").Anchored = true
- end
- end))
- end
- spawn(function()
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") then
- if v:FindFirstChildOfClass("BodyVelocity") or v:FindFirstChildOfClass("RocketPropulsion") or v:FindFirstChildOfClass("BodyForce") or v:FindFirstChildOfClass("BodyPosition") then
- v.Anchored = true
- end
- end
- end
- end)
- for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
- if v:FindFirstChild('Torso') then
- Freeze(v)
- end
- end
- end;
- ThawTime = function()
- CreateSound(1195380475,workspace,1,1.75,false,true)
- spawn(function()
- for i, v in pairs(game.Lighting:GetChildren()) do
- if v:IsA("ColorCorrectionEffect") then
- v:Destroy()
- end
- end
- end)
- local Thaw = function(v)
- coroutine.resume(coroutine.create(function()
- v:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
- if v ~= Character then
- v:FindFirstChild("Torso").Anchored = false
- v:FindFirstChild("Head").Anchored = false
- v:FindFirstChild("Right Arm").Anchored = false
- v:FindFirstChild("Left Arm").Anchored = false
- v:FindFirstChild("Right Leg").Anchored = false
- v:FindFirstChild("Left Leg").Anchored = false
- v:FindFirstChild("HumanoidRootPart").Anchored = false
- end
- end))
- end
- spawn(function()
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") then
- if v:FindFirstChildOfClass("BodyVelocity") or v:FindFirstChildOfClass("RocketPropulsion") or v:FindFirstChildOfClass("BodyForce") or v:FindFirstChildOfClass("BodyPosition") then
- v.Anchored = false
- end
- end
- end
- end)
- for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 1234567890)) do
- if v:FindFirstChild('Torso') then
- Thaw(v)
- end
- end
- end
- }
- function FindNearestTorso(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v:findFirstChild("Torso") then
- if v ~= Character then
- if (v.Torso.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- if v:FindFirstChildOfClass("Model") then
- v = v:FindFirstChildOfClass("Model")
- if v:findFirstChild("Torso") then
- if v ~= Character then
- if (v.Torso.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- end
- return List
- end
- function PixelBlockNeg(bonuspeed,FastSpeed,type,transparentanim,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", Character)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = Vector3.new(x1,y1,z1)
- local scaler2 = 0
- local speeder = FastSpeed/10
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- speeder = speeder + 0.01*FastSpeed*bonuspeed/10
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- if transparentanim == true then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- local Effects = {
- ErrorEffects = function(chance)
- spawn(function()
- if chance > 100 then
- chance = 100
- end
- if math.random(chance,100) == chance then
- local iscreen = Instance.new("Model",Character)
- local screenpaids = CreatePart(iscreen,Enum.Material.Air,0,0,false,false,RGBColor(255,255,255),"Error",Vector3.new(4,3,0.2))
- 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))
- local txt = Instance.new("BillboardGui", screenpaids)
- txt.Adornee = nil
- txt.Name = "NameDetect"
- txt.Size = UDim2.new(4, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(0,0,0)
- txt.MaxDistance = 0
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(1, 0, 1, 0)
- text.FontSize = "Size8"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Code"
- text.TextStrokeColor3 = RGBColor(255,0,0)
- text.TextColor3 = RGBColor(0,0,0)
- text.Text = "Error"
- swait()
- weldscreen:Destroy()
- screenpaids.Anchored = true
- spawn(function()
- local randevent = math.random(1,3)
- if randevent == 1 then
- for i = 1, math.random(10,20) do
- text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
- text.TextColor3 = RGBColor(math.random(10,75),0,0)
- text.Text = "ErroR"
- swait(math.random(0,7))
- text.Text = "ERROr"
- swait(math.random(0,7))
- text.Text = "eRrOR"
- swait(math.random(0,7))
- text.Text = "ERroR"
- swait(math.random(0,7))
- text.Text = "eRROR"
- swait(math.random(0,7))
- text.Text = "erROr"
- swait(math.random(0,7))
- text.Text = "ERrOr"
- wait(1/30)
- end
- end
- if randevent == 2 then
- for i = 1, math.random(10,20) do
- text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
- text.TextColor3 = RGBColor(math.random(10,75),0,0)
- text.Text = "ErROR"
- swait(math.random(0,7))
- text.Text = "ERrOr"
- swait(math.random(0,7))
- text.Text = "eRrOR"
- swait(math.random(0,7))
- text.Text = "ERROR"
- swait(math.random(0,7))
- text.Text = "eRROR"
- swait(math.random(0,7))
- text.Text = "ERrOr"
- swait(math.random(0,7))
- text.Text = "eRROr"
- wait(1/30)
- end
- end
- if randevent == 3 then
- for i = 1, math.random(10,20) do
- text.TextStrokeColor3 = RGBColor(math.random(175,255),0,0)
- text.TextColor3 = RGBColor(math.random(10,75),0,0)
- text.Text = "ErROR"
- swait(math.random(0,7))
- text.Text = "ERrOr"
- swait(math.random(0,7))
- text.Text = "eRrOR"
- swait(math.random(0,7))
- text.Text = "ERroR"
- swait(math.random(0,7))
- text.Text = "eRROR"
- swait(math.random(0,7))
- text.Text = "ERrOR"
- swait(math.random(0,7))
- text.Text = "eRrOR"
- wait(1/30)
- end
- end
- end)
- spawn(function() wait(math.random(1,3)) iscreen:Destroy() end)
- table.insert(GetItems, iscreen)
- end
- end)
- end;
- CyberEffects = function(chance)
- spawn(function()
- if chance > 100 then
- chance = 100
- end
- if math.random(chance,100) == chance then
- local magik = Instance.new("Part", Torso)
- magik.Anchored = true
- magik.Locked = true
- magik.Material = "Neon"
- magik.FormFactor = "Custom"
- magik.Size = Vector3.new(1.2, 1.2, 1.2)
- magik.TopSurface = "Smooth"
- magik.BottomSurface = "Smooth"
- magik.Transparency = 0
- magik.CanCollide = false
- magik.BrickColor = BrickColor.new(0,125,255)
- local mr = math.rad
- local rnx,rny,rnz = mr(rndRange(20)),mr(rndRange(20)),mr(rndRange(20))
- local cf = Torso.CFrame * CFrame.new(math.random(-5,5), -.5, math.random(-5,5)) * CFrame.Angles(rnx,rny,rnz)
- magik.CFrame = cf
- for i = 0, 1, .025 do
- local newTrans = lerp(0.5, 1, i)
- local ns = lerp(1,1.2,i)
- magik.Transparency = newTrans
- magik.Size = Vector3.new(ns,ns+math.random(5,7),ns)
- magik.CFrame = cf
- swait()
- end
- magik:Destroy()
- wait()
- end
- end)
- end;
- }
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- 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))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- 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
- end
- function swait(num)
- if num==0 or num==nil then
- game:GetService('RunService').Heartbeat:wait()
- else
- for i=0,num do
- game:GetService('RunService').Heartbeat:wait()
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- --//=========================================\\
- --|| Animation&Stance;
- --\\=========================================//
- RW = Torso:FindFirstChild("Weld Right Shoulder") or Instance.new("Weld",Torso)
- LW = Torso:FindFirstChild("Weld Left Shoulder") or Instance.new("Weld",Torso)
- RH = Torso:FindFirstChild("Weld Right Hip") or Instance.new("Weld",Torso)
- LH = Torso:FindFirstChild("Weld Left Hip") or Instance.new("Weld",Torso)
- HW = Torso:FindFirstChild("Weld Neck") or Instance.new("Weld",Torso)
- RW.Name = "Weld Right Shoulder"
- RW.Part0 = Torso
- RW.Part1 = RightArm
- RW.C0 = cf(1.5, 0.5, 0)
- RW.C1 = cf(0, 0.5, 0)
- LW.Name = "Weld Left Shoulder"
- LW.Part0 = Torso
- LW.Part1 = LeftArm
- LW.C0 = cf(-1.5, 0.5, 0)
- LW.C1 = cf(0, 0.5, 0)
- RH.Name = "Weld Right Hip"
- RH.Part0 = Torso
- RH.Part1 = RightLeg
- RH.C0 = cf(0.5, -2, 0)
- RH.C1 = cf(0, 0, 0)
- LH.Name = "Weld Left Hip"
- LH.Part0 = Torso
- LH.Part1 = LeftLeg
- LH.C0 = cf(-0.5, -2, 0)
- LH.C1 = cf(0, 0, 0)
- HW.Name = "Weld Neck"
- HW.Part0 = Torso
- HW.Part1 = Head
- HW.C0 = cf(0, 1.5, 0)
- HW.C1 = cf(0, 0, 0)
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- sine = sine + change
- local torvel = (HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local hitfloor,posfloor = rayCast(HumanoidRootPart.Position,(CFrame.new(HumanoidRootPart.Position,HumanoidRootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- -- No Animation When Speical Events Executed
- if Debounce_Animation == false then
- -- Sans_UT Mode
- if ModeOfSans == 1 or ModeOfSans == 7 then
- if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
- animpose = "Jumping"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel < 1 and hitfloor ~=nil then
- animpose = "Standing"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
- 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)
- 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)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
- animpose = "Freefalling"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel >= 1 and hitfloor ~=nil then
- animpose = "Walking"
- val = torvel * 0.175
- change = val + 0.75
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- -- Killer_Sans Mode
- if ModeOfSans == 2 then
- if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
- animpose = "Jumping"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel < 1 and hitfloor ~=nil then
- animpose = "Standing"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
- 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)
- 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)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
- animpose = "Freefalling"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel >= 1 and hitfloor ~=nil then
- val = torvel * 0.175
- change = val + 0.75
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- -- Ink_Sans Mode
- if ModeOfSans == 3 then
- if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
- animpose = "Jumping"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel < 1 and hitfloor ~=nil then
- change = 1
- animpose = "Standing"
- 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)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
- 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)
- 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)
- 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)
- 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)
- end
- if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
- animpose = "Freefalling"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel >= 1 and hitfloor ~=nil then
- animpose = "Walking"
- val = torvel * 0.175
- change = val + 0.75
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- -- Error_Sans Mode
- if ModeOfSans == 4 then
- Effects.ErrorEffects(92)
- if HumanoidRootPart.Velocity.y > 1 and hitfloor == nil then
- animpose = "Jumping"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel < 1 and hitfloor ~=nil then
- change = 1
- animpose = "Standing"
- 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)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
- 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)
- 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)
- 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)
- 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)
- end
- if HumanoidRootPart.Velocity.y < -1 and hitfloor == nil then
- animpose = "Freefalling"
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if torvel >= 1 and hitfloor ~=nil then
- animpose = "Walking"
- val = torvel * 0.175
- change = val + 0.75
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- --[[-- Fly
- if PlayerMode == "Floating" then
- if torvel >= 2 then
- animpose = "Flying"
- change = 2
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if torvel <= 2 then
- animpose = "NotFlying"
- change = 2.5
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- --]]
- end
- end
- end))
- --//=================================================\\
- --|| Mouse&KeyBoard_Detection;
- --\\=================================================//
- table.insert(Charge, 1, 1)
- -- Held Key
- Mouse.KeyUp:connect(function(Key)
- if ModeOfSans == 1 then
- if Key == "e" then
- Held[Key] = nil
- end
- if Key == "f" then
- Held[Key] = nil
- end
- end
- if ModeOfSans == 2 then
- if Key == "r" then
- Active["KnifeKillerSans"] = true
- Held[Key] = nil
- for i = 1, 5 do
- 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)
- swait()
- end
- local WeldKnife = AnimationKnife_KillerSans
- local Knife = Knife_KillerSans
- WeldKnife.Parent = nil
- local bv = Instance.new("BodyVelocity",Knife)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = CFrame.new(RightArm.Position, Mouse.Hit.p).lookVector*100
- Knife.Touched:connect(function(Hit)
- coroutine.resume(coroutine.create(function()
- wait(1.5)
- Knife.Touched:connect(function(T)
- Knife_KillerSans.Parent:Destroy()
- Transform.Killer_Sans()
- end)
- end))
- if Hit.Parent.Name ~= Me then
- bv:Destroy()
- Hurt(Hit, Charge[1], Me)
- Charge[1] = 10
- if Hit.Parent:FindFirstChild("Blood") or Hit.Parent:FindFirstChild("Knife") then
- return
- else
- if Hit.Parent.Parent.Name ~= Me then
- if Hit.Parent.Parent.Parent.Name ~= Me then
- Sticky(Hit, Knife)
- end
- end
- end
- CreateSound(171688984,Hit,1,1,false,true)
- Active["KnifeKillerSans"] = false
- Knife.CanCollide = true
- end
- end)
- wait(1/5)
- bv:Destroy()
- end
- end
- if ModeOfSans == 7 then
- if Key == "x" then
- CreateSound(1195380475,workspace,1,1,false,true)
- Held[Key] = nil
- StanceAction.ThawTime()
- end
- if Key == "c" then
- Held[Key] = nil
- ThemeMusic:Resume()
- StanceAction.ThawTime()
- end
- end
- end)
- function ExtinctiveHeartbreak()
- local targetted = nil
- if Mouse.Target.Parent.Name ~= Me and Mouse.Target.Parent.Parent.Name ~= Me and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- targetted = Mouse.Target.Parent
- end
- isattack = true
- if targetted ~= nil then
- Character:BreakJoints()
- end
- isattack = false
- end
- -- Stance&Special Events
- Mouse.KeyDown:connect(function(Key)
- --[[================================
- Debounce_System;
- ================================--]]
- --//Return Automatic Key\\--
- --[[
- if Debouce[Key] == true then
- Debouce[Key] = false -- This can help debug of Key :)
- return
- end
- Debouce[Key] = true
- -]]
- --//Return Automatic Animation\\--
- --[[
- if Debounce_Animation == true then
- return
- end
- Debounce_Animation = true
- --]]
- --[[===========================
- MainAction;
- ===========================--]]
- if isattack == false then
- --// Global \\--
- -- Teleport
- if Key == "z" and isattack == false then
- StanceAction.Teleport()
- end
- --// Local \\--
- -- SansUT Stance
- if ModeOfSans == 1 then
- if Key == "e" and isattack == false then
- Held[Key] = true
- for i = 1, 10 do
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(0, 0, 0), .1)
- swait()
- end
- -- If Holding Then Do This
- local Debouce_Bone = false
- while Held[Key] == true do
- if Held[Key] == nil then
- break
- end
- coroutine.resume(coroutine.create(function()
- if Debouce_Bone == false then
- StanceAction.Bone()
- Debouce_Bone = true
- wait(0.2)
- Debouce_Bone = false
- end
- end))
- HW.C0 = clerp(HW.C0,necko * angles(math.rad(-5+2*math.cos(sine/16)),math.rad(0),math.rad(0)),.3)
- 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)
- 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)
- RH.C0 = clerp(RH.C0, cf(0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- LH.C0 = clerp(LH.C0, cf(-0.5, -2, 0) * angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- swait()
- end
- end
- if Key == "g" and isattack == false then
- StanceAction.GasterBlaster()
- end
- if Key == "h" and isattack == false then
- StanceAction.HugeGasterBlaster()
- end
- if Key == "f" and isattack == false then
- Held[Key] = true
- local GrabObj=Mouse.Target
- local hum=nil
- if GrabObj then
- if not GrabObj.Anchored then
- if GrabObj.Parent then
- if GrabObj.Parent:FindFirstChild'Humanoid'then
- hum=GrabObj.Parent.Humanoid
- end
- end
- local jet=Instance.new("BodyPosition",GrabObj)
- if not hum then jet.D=2000 jet.P=2000 end
- while Held[Key] == true do
- jet.MaxForce=Vector3.new(10,10,10)*10000000
- jet.Position=Mouse.Target~=nil and Mouse.Hit.p or jet.Position
- local a = 0
- a = a +((not hum or hum.Health==0) and 1 or 2)
- local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
- swait()
- end
- jet:Destroy()
- else
- warn'The object is anchored!'
- end
- end
- --StanceAction.GravityControl()
- end
- end
- -- KillerSans Stance
- if ModeOfSans == 2 then
- if Key == "e" and isattack == false then
- Active["KnifeKillerSans"] = true
- local Chance = math.random(2)
- if Chance == 1 then
- for i = 1, 10 do
- 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)
- swait()
- end
- for i = 1, 15 do
- 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)
- swait()
- end
- end
- if Chance == 2 then
- for i = 1, 10 do
- 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)
- swait()
- end
- for i = 1, 15 do
- 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)
- swait()
- end
- end
- Active["KnifeKillerSans"] = false
- end
- if Key == "r" and isattack == false then
- Held[Key] = true
- for i = 1, 15 do
- 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)
- swait()
- end
- for i = 1, 15 do
- 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)
- swait()
- end
- for i = 1, 20 do
- 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)
- swait()
- end
- while Held[Key] == true do
- 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)
- if Held[Key] == nil then
- return
- end
- if Charge[1] <= 100 then
- Charge[1] = Charge[1] + 1
- end
- swait()
- end
- end
- if Key == "x" and isattack == false then
- StanceAction.Torture()
- end
- if Key == "c" and isattack == false then
- StanceAction.CutHead()
- end
- if Key == "v" and isattack == false then
- ExtinctiveHeartbreak()
- end
- end
- -- InkSans Stance
- if ModeOfSans == 3 then
- if Key == "q" and isattack == false then
- StanceAction.BrushAttack1()
- end
- end
- -- ErrorSans Stance
- if ModeOfSans == 4 then
- if Key == "x" and isattack == false then
- StanceAction.ErrorRemove()
- end
- if Key == "c" and isattack == false then
- StanceAction.InfectionError()
- end
- end
- -- TimekidSans Stance
- if ModeOfSans == 7 then
- if Key == "x" then
- Held[Key] = true
- CreateSound(181004957,workspace,1,1,false,true)
- while Held[Key] == true do
- StanceAction.PastTime()
- swait()
- end
- end
- if Key == "c" then
- CreateSound(1177785010,workspace,1,1,false,true)
- ThemeMusic:Pause()
- local cce = game.Lighting:FindFirstChildOfClass("ColorCorrectionEffect") or Instance.new("ColorCorrectionEffect", game.Lighting)
- cce.Saturation = -0.75
- Held[Key] = true
- while Held[Key] == true do
- StanceAction.FreezeTime()
- swait()
- end
- end
- end
- end
- end)
- -- Change Sans
- Mouse.KeyDown:connect(function(Key)
- if Key == "1" then
- Transform.Sans_UT()
- end
- if Key == "2" then
- Transform.Killer_Sans()
- end
- if Key == "3" then
- Transform.Ink_Sans()
- end
- if Key == "4" then
- Transform.Error_Sans()
- end
- if Key == "5" then
- Transform.Anitvirus_Sans()
- end
- if Key == "6" then
- Transform.Digi_Sans()
- end
- if Key == "7" then
- Transform.Timekid_Sans()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement