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
- --[[ last updated: 2018/5/13, 15:30
- Pen by oilsauce.]]
- print("Pen Script by Oilsauce.")
- print("Click: Stab")
- print("E: Toggle Pen")
- print("F: Throw Pen")
- wait(0.6)
- -----------------------------------------------------------------------------------
- local plrs = game:GetService("Players")
- local plr = plrs.LocalPlayer
- local char = plr.Character
- local sound = Instance.new("Sound",char.Torso)
- sound.SoundId = "rbxassetid://323901968"
- sound.Volume = 10
- plr:ClearCharacterAppearance()
- local tweenserv = game:GetService("TweenService")
- local lighting = game:GetService("Lighting")
- local hum = char:FindFirstChildOfClass("Humanoid")
- local mou = plr:GetMouse()
- local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
- local root = char:FindFirstChild("HumanoidRootPart")
- local head = char:FindFirstChild("Head")
- local face = head:FindFirstChildOfClass("Decal")
- local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
- local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
- local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
- local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
- local neck = tor:FindFirstChild("Neck")
- local rootj = root:FindFirstChild("RootJoint")
- local LS = tor:FindFirstChild("Left Shoulder")
- local RS = tor:FindFirstChild("Right Shoulder")
- local LH = tor:FindFirstChild("Left Hip")
- local RH = tor:FindFirstChild("Right Hip")
- local bp = plr:FindFirstChild("Backpack")
- canglitch = true
- hum:ClearAllChildren()
- char.Animate:remove()
- local shirt = Instance.new("Shirt",char)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1100804238"
- local pants = Instance.new("Pants",char)
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- ManualWeld3 = Instance.new("ManualWeld")
- Part4 = Instance.new("Part")
- ManualWeld5 = Instance.new("ManualWeld")
- Part6 = Instance.new("Part")
- ManualWeld7 = Instance.new("ManualWeld")
- Part8 = Instance.new("Part")
- ManualWeld9 = Instance.new("ManualWeld")
- Part10 = Instance.new("Part")
- ManualWeld11 = Instance.new("ManualWeld")
- Part12 = Instance.new("Part")
- ManualWeld13 = Instance.new("ManualWeld")
- Model0.Name = "pen"
- Model0.Parent = mas
- Part1.Name = "handler2"
- Part1.Parent = Model0
- Part1.Material = Enum.Material.Glass
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Shape = Enum.PartType.Cylinder
- Part1.Size = Vector3.new(0.099999927, 0.075000003, 0.075000003)
- Part1.CFrame = CFrame.new(0.422837317, 4.01673937, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(0.422837317, 4.01673937, 24.1206856)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Name = "handler1"
- Part2.Parent = Model0
- Part2.Material = Enum.Material.Glass
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.Shape = Enum.PartType.Cylinder
- Part2.Size = Vector3.new(0.099999927, 0.100000001, 0.100000001)
- Part2.CFrame = CFrame.new(0.356837302, 4.02223921, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Position = Vector3.new(0.356837302, 4.02223921, 24.1206856)
- Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- ManualWeld3.Name = "Weld"
- ManualWeld3.Parent = Part2
- ManualWeld3.C1 = CFrame.new(-0.0660000145, 0.00549983978, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld3.Part0 = Part2
- ManualWeld3.Part1 = Part1
- Part4.Name = "body"
- Part4.Parent = Model0
- Part4.Material = Enum.Material.Glass
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.Shape = Enum.PartType.Cylinder
- Part4.Size = Vector3.new(1.27499998, 0.125, 0.125)
- Part4.CFrame = CFrame.new(-0.320662677, 4.02673912, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Position = Vector3.new(-0.320662677, 4.02673912, 24.1206856)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- ManualWeld5.Name = "Weld"
- ManualWeld5.Parent = Part4
- ManualWeld5.C1 = CFrame.new(-0.743499994, 0.00999975204, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld5.Part0 = Part4
- ManualWeld5.Part1 = Part1
- Part6.Name = "clipholder"
- Part6.Parent = Model0
- Part6.Material = Enum.Material.Glass
- Part6.BrickColor = BrickColor.new("Really black")
- Part6.Shape = Enum.PartType.Cylinder
- Part6.Size = Vector3.new(0.2, 0.150000006, 0.150000006)
- Part6.CFrame = CFrame.new(-0.986662686, 4.02623892, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part6.Position = Vector3.new(-0.986662686, 4.02623892, 24.1206856)
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- ManualWeld7.Name = "Weld"
- ManualWeld7.Parent = Part6
- ManualWeld7.C1 = CFrame.new(-1.4095, 0.00949954987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld7.Part0 = Part6
- ManualWeld7.Part1 = Part1
- Part8.Name = "clip"
- Part8.Parent = Model0
- Part8.Material = Enum.Material.Glass
- Part8.BrickColor = BrickColor.new("Really black")
- Part8.Size = Vector3.new(0.724999905, 0.0500000119, 0.100000001)
- Part8.CFrame = CFrame.new(-0.663956106, 4.10453987, 24.1179676, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part8.Position = Vector3.new(-0.663956106, 4.10453987, 24.1179676)
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- ManualWeld9.Name = "Weld"
- ManualWeld9.Parent = Part8
- ManualWeld9.C1 = CFrame.new(-1.08679342, 0.0878005028, -0.0027179718, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld9.Part0 = Part8
- ManualWeld9.Part1 = Part1
- Part10.Name = "button"
- Part10.Parent = Model0
- Part10.Material = Enum.Material.Glass
- Part10.BrickColor = BrickColor.new("Dark indigo")
- Part10.Shape = Enum.PartType.Cylinder
- Part10.Size = Vector3.new(0.14, 0.125, 0.125)
- Part10.CFrame = CFrame.new(-1.09316278, 4.02473927, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569)
- Part10.Position = Vector3.new(-1.09316278, 4.02473927, 24.1206856)
- Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569)
- ManualWeld11.Name = "Weld"
- ManualWeld11.Parent = Part10
- ManualWeld11.C1 = CFrame.new(-1.51600003, 0.007999897, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld11.Part0 = Part10
- ManualWeld11.Part1 = Part1
- Part12.Name = "sharp"
- Part12.Parent = Model0
- Part12.Material = Enum.Material.Glass
- Part12.Shape = Enum.PartType.Cylinder
- Part12.Size = Vector3.new(0.099999927, 0.0500000007, 0.0500000007)
- Part12.CFrame = CFrame.new(0.484837323, 4.01723957, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.Position = Vector3.new(0.484837323, 4.01723957, 24.1206856)
- ManualWeld13.Name = "Weld"
- ManualWeld13.Parent = Part12
- ManualWeld13.C1 = CFrame.new(0.0620000064, 0.000500202179, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld13.Part0 = Part12
- ManualWeld13.Part1 = Part1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pen = v
- body = Part4
- button = Part10
- pcall(function() v:MakeJoints() end)
- end
- local knife = Instance.new("Part",char)
- knife.CanCollide = false
- knife.Size = Vector3.new(0.2, 2, 2)
- local knifem = Instance.new("FileMesh",knife)
- knifem.MeshId = "rbxassetid://470094777"
- knifem.TextureId = "http://www.roblox.com/asset/?id=470149026"
- knifem.Scale = Vector3.new(0.2,0.2,0.2)
- local knifew = Instance.new("Weld",knife)
- knifew.Part0 = knife
- knifew.Part1 = char["Right Arm"]
- knifew.C0 = CFrame.new(0.0950660706, 1.32505798, -0.203226089, 0.995430529, 0.0954888016, 3.47819062e-09, -0.0619644187, 0.645952582, 0.760858297, 0.072653465, -0.757381439, 0.648918033)
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 1
- end
- end
- local rootj0 = rootj.C0
- local neck0 = neck.C0
- local LS0 = LS.C0
- local RS0 = RS.C0
- local LH0 = LH.C0
- local RH0 = RH.C0
- local rootj1 = rootj.C1
- local neck1 = neck.C1
- local LS1 = LS.C1
- local RS1 = RS.C1
- local LH1 = LH.C1
- local RH1 = RH.C1
- -----------------------------------------------------------------------------------
- local CFn = CFrame.new
- local CFa = CFrame.Angles
- local Rad = math.rad
- local Sin = math.sin
- local Cos = math.cos
- local sine = 1
- local penp = Instance.new("Part", char)
- penp.Size = Vector3.new(1, 1, 1)
- penp.CanCollide = false
- penp.Transparency = 1
- local penpw = Instance.new("Weld", penp)
- penpw.Part0 = rarm
- penpw.Part1 = penp
- penpw.C1 = CFn(0, -1, 0) * CFa(0, 0, Rad(180))
- local penpw0 = penpw.C0
- local penpw1 = penpw.C1
- local penw = Instance.new("Weld", body)
- penw.Name = "penWeld22"
- penw.Part0 = penp
- penw.Part1 = body
- penw.C1 = CFa(0, 0, Rad(180))
- local penw0 = penw.C0
- local penw1 = penw.C1
- local sharpw = ManualWeld13
- local sharpw0 = ManualWeld13.C0
- local sharpw1 = ManualWeld13.C1
- local sharpw02 = CFn(0.3, 0, 0)
- sharpw.C0 = sharpw02
- local botw = ManualWeld11
- local botw0 = ManualWeld11.C0
- local botw1 = ManualWeld11.C1
- local botw02 = CFn(-0.07, 0, 0)
- botw.C0 = botw0
- -----------------------------------------------------------------------------------
- local ws = 16
- local jp = 50
- local out = false
- local ouch = false
- local hitok = false
- local canattack = true
- local stabstate = 1
- local Stabbing = false
- local Throwing = false
- local rot = 1
- local dmg = 5
- -----------------------------------------------------------------------------------
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- out = true
- function Stab()
- if stabstate == 1 and canattack == true then
- Stabbing = true
- canattack = false
- stabstate = 2
- hum.WalkSpeed = 3
- hum.JumpPower = 7
- hitok = true
- body.Touched:connect(function(hit)
- if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then
- hitok = false
- local owdude = hit.Parent
- local owhum = owdude:FindFirstChildOfClass("Humanoid")
- owhum.Health = owhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083298"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- hitok = false
- local owdude = hit.Parent.Parent
- local owhum = owdude:FindFirstChildOfClass("Humanoid")
- owhum.Health = owhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083298"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- end)
- for i = 0,1,.15 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-30), Rad(-30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- for i = 0,1,.15 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), Rad(-30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- hitok = false
- hum.WalkSpeed = ws
- hum.JumpPower = jp
- canattack = true
- Stabbing = false
- elseif stabstate == 2 and canattack == true then
- canattack = false
- stabstate = 1
- hum.WalkSpeed = 3
- hum.JumpPower = 7
- hitok = true
- body.Touched:connect(function(hit)
- if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then
- local owdude = hit.Parent
- local owhum = owdude:FindFirstChildOfClass("Humanoid")
- owhum.Health = owhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083298"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- hitok = false
- local owdude = hit.Parent.Parent
- local owhum = owdude:FindFirstChildOfClass("Humanoid")
- owhum.Health = owhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083298"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- end)
- for i = 0,1,.15 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- for i = 0,1,.15 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-20), Rad(30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- hitok = false
- hum.WalkSpeed = ws
- hum.JumpPower = jp
- canattack = true
- Stabbing = false
- end
- end
- local hair = Instance.new("Part",char)
- hair.CanCollide = false
- local m = Instance.new("FileMesh",hair)
- m.MeshId = "http://www.roblox.com/asset/?id=188004660"
- m.TextureId = "http://www.roblox.com/asset/?id=451217406"
- local w = Instance.new("Weld",hair)
- w.Part0 = hair
- w.Part1 = char.Head
- w.C0 = CFrame.new(0, -0.450000286, -0.00027179718, 1.00000095, 7.87137822e-09, -3.7608805e-15, -7.87138266e-09, 1.00000048, -4.76837158e-07, 0, -4.76837158e-07, 1.00000048)
- local sick = Instance.new("Sound",char.Torso)
- sick.SoundId = "rbxassetid://1472374501"
- sick.Looped = true
- sick.Pitch = 0.7
- sick.Volume = 3
- sick:Play()
- function Throw()
- if canattack == true then
- Throwing = true
- canattack = false
- hum.WalkSpeed = 3
- hum.JumpPower = 7
- ouch = true
- for i = 0,1,.15 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(90), Rad(90)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- local throwknife = knife:Clone()
- throwknife.Parent = workspace
- throwknife:BreakJoints()
- throwknife.CanCollide = false
- knife.Transparency = 1
- local vel = Instance.new("BodyVelocity",throwknife)
- vel.Velocity = mou.Hit.lookVector * 150
- local throwpen = pen:Clone()
- for i,v in pairs(throwpen:GetChildren()) do
- if v:IsA("BasePart") and v.CanCollide == true then
- v.CanCollide = false
- end
- end
- throwpen.Parent = workspace
- local throwbod = throwpen:FindFirstChild("body")
- if throwbod:FindFirstChild("penWeld22") then
- throwbod:FindFirstChild("penWeld22"):Destroy()
- end
- local throwbv = Instance.new("BodyVelocity", throwbod)
- throwbv.Velocity = mou.Hit.lookVector * 100
- throwbv.MaxForce = Vector3.new(100000000000000000, 100000000000000000, 100000000000000000)
- throwknife.Touched:connect(function(hit)
- if ouch == true and not hit:IsDescendantOf(char) then
- ouch = false
- throwpen:Destroy()
- if hit.Parent:FindFirstChildOfClass("Humanoid") then
- local throwhum = hit.Parent:FindFirstChildOfClass("Humanoid")
- throwhum.Health = throwhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083286"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- if hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- local throwhum = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
- throwhum.Health = throwhum.Health - math.huge
- if out == true then
- local bloodsound = Instance.new("Sound", hit)
- bloodsound.Volume = 10
- bloodsound.SoundId = "rbxassetid://180083286"
- bloodsound:Play()
- game:GetService("Debris"):AddItem(bloodsound, 1)
- local bloodsplash = Instance.new("ParticleEmitter", hit)
- bloodsplash.Lifetime = NumberRange.new(0.7, 1)
- bloodsplash.Speed = NumberRange.new(6)
- bloodsplash.SpreadAngle = Vector2.new(-360, 360)
- bloodsplash.Rate = 1000
- bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
- bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
- bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- bloodsplash.Texture = "rbxassetid://0"
- game:GetService("Debris"):AddItem(bloodsplash, 1)
- wait(0.25)
- bloodsplash.Enabled = false
- end
- end
- end
- end)
- for i,v in pairs(pen:GetChildren()) do
- if v:IsA("BasePart") then
- v.Transparency = 1
- end
- end
- for i = 0,1,.1 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(Rad(-20), 0, 0), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), Rad(-20)), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), Rad(-20)), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-80), Rad(90)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- for i = 0,1,.1 do
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-30), 0, 0), i)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(0, 0, Rad(-30)), i)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
- RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i)
- LS.C0 = clerp(LS.C0, LS0, i)
- RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), Rad(30)), i)
- LH.C0 = clerp(LH.C0, LH0, i)
- RH.C0 = clerp(RH.C0, RH0, i)
- swait()
- end
- for i,v in pairs(pen:GetChildren()) do
- if v:IsA("BasePart") then
- v.Transparency = 0
- end
- end
- hum.WalkSpeed = ws
- hum.JumpPower = jp
- canattack = true
- Throwing = false
- knife.Transparency = 0
- end
- end
- -----------------------------------------------------------------------------------
- function kdown(k)
- if k == "e" then
- Throw()
- end
- end
- mou.KeyDown:connect(kdown)
- mou.Button1Down:connect(Stab)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Really black")
- end
- end
- -----------------------------------------------------------------------------------
- local right = Instance.new("CharacterMesh",char)
- right.BodyPart = Enum.BodyPart.RightArm
- right.MeshId = 27111864
- local tors = Instance.new("CharacterMesh",char)
- tors.BodyPart = Enum.BodyPart.Torso
- tors.MeshId = 27111894
- local left = Instance.new("CharacterMesh",char)
- left.MeshId = 27111419
- left.BodyPart = Enum.BodyPart.LeftArm
- local leftl = Instance.new("CharacterMesh",char)
- leftl.BodyPart = Enum.BodyPart.LeftLeg
- leftl.MeshId = 27111857
- local rightl = Instance.new("CharacterMesh",char)
- rightl.BodyPart = Enum.BodyPart.RightLeg
- rightl.MeshId = 27111882
- local BODY = {}
- LeftArm = char["Left Arm"]
- RightLeg = char["Right Leg"]
- LeftLeg = char["Left Leg"]
- for _, c in pairs(char:GetDescendants()) do
- if c:IsA("BasePart") and c.Name ~= "Handle" then
- if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
- elseif c:IsA("JointInstance") then
- table.insert(BODY,{c,c.Parent,nil,nil,nil})
- end
- end
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
- PART.Material = MATERIAL
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- function refit()
- char.Parent = workspace
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
- PART.Material = MATERIAL
- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- char:FindFirstChildOfClass("Humanoid"):remove()
- PART.Parent = PARENT
- Humanoid = Instance.new("Humanoid",char)
- end
- end
- end
- end
- char.Humanoid.Died:connect(function()
- refit()
- sound.Parent = char
- sound:Play()
- end)
- local glitch = Instance.new("Sound",char)
- glitch.SoundId = "rbxassetid://372770465"
- glitch.Volume = 4
- normalface = {"http://www.roblox.com/asset/?id=173083239"}
- glitchface = {"rbxassetid://592123389", "http://www.roblox.com/asset/?id=752001939", "http://www.roblox.com/asset/?id=1083992759"}
- local naeeym2 = Instance.new("BillboardGui",char)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,35)
- naeeym2.StudsOffset = Vector3.new(0,2,0)
- naeeym2.Adornee = hed
- naeeym2.Name = "Name"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Guest"
- tecks2.Font = "Garamond"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = BrickColor.new('Really red').Color
- tecks2.TextStrokeColor3 = BrickColor.new('Really red').Color
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- textfag = tecks2
- tecks2.Text = "Guest"
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- coroutine.resume(coroutine.create(function()
- while textfag ~= nil do
- swait()
- textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag.Rotation = math.random(-3,3)
- end
- end))
- textrandom = {"Guest", "gUeStTTR", "dIEEEEEEEEE", "Guest 6 6 6", "begone thot", "Guest", "Guest", "Guest", "iNsAnItY", "Guest", "Guest", "Guest"}
- normaltext = {"Guest"}
- while true do
- swait()
- if canglitch then
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- local change = math.random(1,50)
- if change == 1 then
- glitch:Play()
- textfag.Text = textrandom[math.random(1,12)]
- char.Head.face.Texture = glitchface[math.random(1,3)]
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Really black")
- end
- end
- end
- if change == 2 then
- glitch:Pause()
- textfag.Text = normaltext[math.random(1,1)]
- char.Head.face.Texture = normalface[math.random(1,1)]
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 3 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 4 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 5 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 6 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 7 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 8 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 9 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 10 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 11 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 12 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 13 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 14 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- if change == 15 then
- char.Head.face.Texture = normalface[math.random(1,1)]
- textfag.Text = normaltext[math.random(1,1)]
- glitch:Pause()
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- end
- end
- end
- end
- refit()
- sine = sine + 1
- rot = rot + 25
- if rot == 360 then
- rot = 1
- end
- local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- if Stabbing == true then
- state = "Stabbing"
- elseif Throwing == true then
- state = "Throwing"
- elseif 1 < root.Velocity.y then
- state = "Jump"
- elseif -1 > root.Velocity.y then
- state = "Fall"
- elseif torvel < 1 then
- state = "Idle"
- elseif tor.Velocity.magnitude < 50 then
- state = "Walk"
- end
- if state == "Jump" then
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), 0.15)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-15), 0, 0), 0.15)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.2, 0) * CFa(Rad(2), 0, Rad(-15)), 0.15)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.5, 0) * CFa(Rad(2), 0, Rad(15)), 0.15)
- LS.C0 = clerp(LS.C0, LS0, 0.15)
- RS.C0 = clerp(RS.C0, RS0, 0.15)
- LH.C0 = clerp(LH.C0, LH0 * CFn(-0.2, 0, 0), 0.15)
- RH.C0 = clerp(RH.C0, RH0 * CFn(0.5, 0, 0), 0.15)
- elseif state == "Fall" then
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
- neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, 0), 0.15)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(15), 0, 0), 0.15)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(35), 0, 0), 0.15)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(35), 0, 0), 0.15)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(10)), 0.15)
- RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(-10)), 0.15)
- LS.C0 = clerp(LS.C0, LS0, 0.15)
- RS.C0 = clerp(RS.C0, RS0, 0.15)
- LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(-20)), 0.15)
- RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(20)), 0.15)
- elseif state == "Idle" then
- penw.C1 = clerp(penw.C1, penw1 * CFn(0, 0, 0.5) * CFa(0, 0, Rad(rot)), 0.15)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2 * Cos(sine / 15)), 0, 0), 0.15)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025 * Cos(sine / 15)), 0.15)
- LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), 0.15)
- RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(2), 0, Rad(-3 * Cos(sine / 15))), 0.15)
- LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-5), 0), 0.15)
- RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(5), 0), 0.15)
- LS.C0 = clerp(LS.C0, LS0, 0.15)
- RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(80)), 0.15)
- LH.C0 = clerp(LH.C0, LH0, 0.15)
- RH.C0 = clerp(RH.C0, RH0, 0.15)
- elseif state == "Walk" then
- penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
- neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
- rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0.1 * Cos(sine /3), 0.1 * Cos(sine /3)) * CFa(Rad(-5), 0, Rad(5 * Cos(sine / 6))), 0.15)
- LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15)
- RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15)
- LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(2), Rad(-5), Rad(50 * Cos(sine / 6))), 0.15)
- RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(2), Rad(5), Rad(50 * Cos(sine / 6))), 0.15)
- LS.C0 = clerp(LS.C0, LS0, 0.15)
- RS.C0 = clerp(RS.C0, RS0, 0.15)
- LH.C0 = clerp(LH.C0, LH0, 0.15)
- RH.C0 = clerp(RH.C0, RH0, 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement