Advertisement
Bendy928443534

Bendy

Jun 12th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.96 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility By Roiprizer Do not leak Sir plz ;)
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7.  
  8. --[[ last updated: 2018/5/13, 15:30
  9.  
  10. Pen by oilsauce.]]
  11.  
  12. print("Pen Script by Oilsauce.")
  13. print("Click: Stab")
  14. print("E: Toggle Pen")
  15. print("F: Throw Pen")
  16.  
  17. wait(0.6)
  18. -----------------------------------------------------------------------------------
  19.  
  20. local plrs = game:GetService("Players")
  21. local plr = plrs.LocalPlayer
  22. local char = plr.Character
  23. local sound = Instance.new("Sound",char.Torso)
  24. sound.SoundId = "rbxassetid://132476475"
  25. sound.Volume = 10
  26. plr:ClearCharacterAppearance()
  27. local tweenserv = game:GetService("TweenService")
  28. local lighting = game:GetService("Lighting")
  29. local hum = char:FindFirstChildOfClass("Humanoid")
  30. local mou = plr:GetMouse()
  31. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  32. local root = char:FindFirstChild("HumanoidRootPart")
  33. local head = char:FindFirstChild("Head")
  34. local face = head:FindFirstChildOfClass("Decal")
  35. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  36. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  37. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  38. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  39. local neck = tor:FindFirstChild("Neck")
  40. local rootj = root:FindFirstChild("RootJoint")
  41. local LS = tor:FindFirstChild("Left Shoulder")
  42. local RS = tor:FindFirstChild("Right Shoulder")
  43. local LH = tor:FindFirstChild("Left Hip")
  44. local RH = tor:FindFirstChild("Right Hip")
  45. local bp = plr:FindFirstChild("Backpack")
  46. canglitch = true
  47.  
  48. hum:ClearAllChildren()
  49. char.Animate:remove()
  50.  
  51. local shirt = Instance.new("Shirt",char)
  52. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1532763134"
  53. local pants = Instance.new("Pants",char)
  54. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1765933576"
  55.  
  56. --Converted with ttyyuu12345's model to script plugin v4
  57. function sandbox(var,func)
  58. local env = getfenv(func)
  59. local newenv = setmetatable({},{
  60. __index = function(self,k)
  61. if k=="script" then
  62. return var
  63. else
  64. return env[k]
  65. end
  66. end,
  67. })
  68. setfenv(func,newenv)
  69. return func
  70. end
  71. cors = {}
  72. mas = Instance.new("Model",game:GetService("Lighting"))
  73. Model0 = Instance.new("Model")
  74. Part1 = Instance.new("Part")
  75. Part2 = Instance.new("Part")
  76. ManualWeld3 = Instance.new("ManualWeld")
  77. Part4 = Instance.new("Part")
  78. ManualWeld5 = Instance.new("ManualWeld")
  79. Part6 = Instance.new("Part")
  80. ManualWeld7 = Instance.new("ManualWeld")
  81. Part8 = Instance.new("Part")
  82. ManualWeld9 = Instance.new("ManualWeld")
  83. Part10 = Instance.new("Part")
  84. ManualWeld11 = Instance.new("ManualWeld")
  85. Part12 = Instance.new("Part")
  86. ManualWeld13 = Instance.new("ManualWeld")
  87. Model0.Name = "pen"
  88. Model0.Parent = mas
  89. Part1.Name = "handler2"
  90. Part1.Parent = Model0
  91. Part1.Material = Enum.Material.Glass
  92. Part1.BrickColor = BrickColor.new("Institutional white")
  93. Part1.Shape = Enum.PartType.Cylinder
  94. Part1.Size = Vector3.new(0.099999927, 0.075000003, 0.075000003)
  95. Part1.CFrame = CFrame.new(0.422837317, 4.01673937, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  96. Part1.BottomSurface = Enum.SurfaceType.Smooth
  97. Part1.TopSurface = Enum.SurfaceType.Smooth
  98. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  99. Part1.Position = Vector3.new(0.422837317, 4.01673937, 24.1206856)
  100. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  101. Part2.Name = "handler1"
  102. Part2.Parent = Model0
  103. Part2.Material = Enum.Material.Glass
  104. Part2.BrickColor = BrickColor.new("")
  105. Part2.Shape = Enum.PartType.Cylinder
  106. Part2.Size = Vector3.new(0.099999927, 0.100000001, 0.100000001)
  107. Part2.CFrame = CFrame.new(0.356837302, 4.02223921, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  108. Part2.BottomSurface = Enum.SurfaceType.Smooth
  109. Part2.TopSurface = Enum.SurfaceType.Smooth
  110. Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  111. Part2.Position = Vector3.new(0.356837302, 4.02223921, 24.1206856)
  112. Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  113. ManualWeld3.Name = "Weld"
  114. ManualWeld3.Parent = Part2
  115. ManualWeld3.C1 = CFrame.new(-0.0660000145, 0.00549983978, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  116. ManualWeld3.Part0 = Part2
  117. ManualWeld3.Part1 = Part1
  118. Part4.Name = "body"
  119. Part4.Parent = Model0
  120. Part4.Material = Enum.Material.Glass
  121. Part4.BrickColor = BrickColor.new("Institutional white")
  122. Part4.Shape = Enum.PartType.Cylinder
  123. Part4.Size = Vector3.new(1.27499998, 0.125, 0.125)
  124. Part4.CFrame = CFrame.new(-0.320662677, 4.02673912, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  125. Part4.BottomSurface = Enum.SurfaceType.Smooth
  126. Part4.TopSurface = Enum.SurfaceType.Smooth
  127. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  128. Part4.Position = Vector3.new(-0.320662677, 4.02673912, 24.1206856)
  129. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  130. ManualWeld5.Name = "Weld"
  131. ManualWeld5.Parent = Part4
  132. ManualWeld5.C1 = CFrame.new(-0.743499994, 0.00999975204, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. ManualWeld5.Part0 = Part4
  134. ManualWeld5.Part1 = Part1
  135. Part6.Name = "clipholder"
  136. Part6.Parent = Model0
  137. Part6.Material = Enum.Material.Glass
  138. Part6.BrickColor = BrickColor.new("Institutional white")
  139. Part6.Shape = Enum.PartType.Cylinder
  140. Part6.Size = Vector3.new(0.2, 0.150000006, 0.150000006)
  141. Part6.CFrame = CFrame.new(-0.986662686, 4.02623892, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  142. Part6.BottomSurface = Enum.SurfaceType.Smooth
  143. Part6.TopSurface = Enum.SurfaceType.Smooth
  144. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  145. Part6.Position = Vector3.new(-0.986662686, 4.02623892, 24.1206856)
  146. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  147. ManualWeld7.Name = "Weld"
  148. ManualWeld7.Parent = Part6
  149. ManualWeld7.C1 = CFrame.new(-1.4095, 0.00949954987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  150. ManualWeld7.Part0 = Part6
  151. ManualWeld7.Part1 = Part1
  152. Part8.Name = "clip"
  153. Part8.Parent = Model0
  154. Part8.Material = Enum.Material.Glass
  155. Part8.BrickColor = BrickColor.new("Really black")
  156. Part8.Size = Vector3.new(0.724999905, 0.0500000119, 0.100000001)
  157. Part8.CFrame = CFrame.new(-0.663956106, 4.10453987, 24.1179676, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  158. Part8.BottomSurface = Enum.SurfaceType.Smooth
  159. Part8.TopSurface = Enum.SurfaceType.Smooth
  160. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  161. Part8.Position = Vector3.new(-0.663956106, 4.10453987, 24.1179676)
  162. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  163. ManualWeld9.Name = "Weld"
  164. ManualWeld9.Parent = Part8
  165. ManualWeld9.C1 = CFrame.new(-1.08679342, 0.0878005028, -0.0027179718, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  166. ManualWeld9.Part0 = Part8
  167. ManualWeld9.Part1 = Part1
  168. Part10.Name = "button"
  169. Part10.Parent = Model0
  170. Part10.Material = Enum.Material.Glass
  171. Part10.BrickColor = BrickColor.new("Dark indigo")
  172. Part10.Shape = Enum.PartType.Cylinder
  173. Part10.Size = Vector3.new(0.14, 0.125, 0.125)
  174. Part10.CFrame = CFrame.new(-1.09316278, 4.02473927, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  175. Part10.BottomSurface = Enum.SurfaceType.Smooth
  176. Part10.TopSurface = Enum.SurfaceType.Smooth
  177. Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569)
  178. Part10.Position = Vector3.new(-1.09316278, 4.02473927, 24.1206856)
  179. Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569)
  180. ManualWeld11.Name = "Weld"
  181. ManualWeld11.Parent = Part10
  182. ManualWeld11.C1 = CFrame.new(-1.51600003, 0.007999897, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  183. ManualWeld11.Part0 = Part10
  184. ManualWeld11.Part1 = Part1
  185. Part12.Name = "sharp"
  186. Part12.Parent = Model0
  187. Part12.Material = Enum.Material.Glass
  188. Part12.Shape = Enum.PartType.Cylinder
  189. Part12.Size = Vector3.new(0.099999927, 0.0500000007, 0.0500000007)
  190. Part12.CFrame = CFrame.new(0.484837323, 4.01723957, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. Part12.BottomSurface = Enum.SurfaceType.Smooth
  192. Part12.TopSurface = Enum.SurfaceType.Smooth
  193. Part12.Position = Vector3.new(0.484837323, 4.01723957, 24.1206856)
  194. ManualWeld13.Name = "Weld"
  195. ManualWeld13.Parent = Part12
  196. ManualWeld13.C1 = CFrame.new(0.0620000064, 0.000500202179, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  197. ManualWeld13.Part0 = Part12
  198. ManualWeld13.Part1 = Part1
  199. for i,v in pairs(mas:GetChildren()) do
  200. v.Parent = char
  201. pen = v
  202. body = Part4
  203. button = Part10
  204. pcall(function() v:MakeJoints() end)
  205. end
  206. local knife = Instance.new("Part",char)
  207. knife.CanCollide = false
  208. knife.Size = Vector3.new(0.2, 2, 2)
  209. local knifem = Instance.new("FileMesh",knife)
  210. knifem.MeshId = "rbxassetid://"
  211. knifem.TextureId = "http://www.roblox.com/asset/?id="
  212. knifem.Scale = Vector3.new(0.2,0.2,0.2)
  213. local knifew = Instance.new("Weld",knife)
  214. knifew.Part0 = knife
  215. knifew.Part1 = char["Right Arm"]
  216. 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)
  217.  
  218. mas:Destroy()
  219. for i,v in pairs(cors) do
  220. spawn(function()
  221. pcall(v)
  222. end)
  223. end
  224. for i,v in pairs(Model0:GetChildren()) do
  225. if v.ClassName == "Part" then
  226. v.Transparency = 1
  227. end
  228. end
  229.  
  230.  
  231. local rootj0 = rootj.C0
  232. local neck0 = neck.C0
  233. local LS0 = LS.C0
  234. local RS0 = RS.C0
  235. local LH0 = LH.C0
  236. local RH0 = RH.C0
  237. local rootj1 = rootj.C1
  238. local neck1 = neck.C1
  239. local LS1 = LS.C1
  240. local RS1 = RS.C1
  241. local LH1 = LH.C1
  242. local RH1 = RH.C1
  243.  
  244. -----------------------------------------------------------------------------------
  245.  
  246. local CFn = CFrame.new
  247. local CFa = CFrame.Angles
  248. local Rad = math.rad
  249. local Sin = math.sin
  250. local Cos = math.cos
  251. local sine = 1
  252.  
  253. local penp = Instance.new("Part", char)
  254. penp.Size = Vector3.new(1, 1, 1)
  255. penp.CanCollide = false
  256. penp.Transparency = 1
  257. local penpw = Instance.new("Weld", penp)
  258. penpw.Part0 = rarm
  259. penpw.Part1 = penp
  260. penpw.C1 = CFn(0, -1, 0) * CFa(0, 0, Rad(180))
  261. local penpw0 = penpw.C0
  262. local penpw1 = penpw.C1
  263.  
  264. local penw = Instance.new("Weld", body)
  265. penw.Name = "penWeld22"
  266. penw.Part0 = penp
  267. penw.Part1 = body
  268. penw.C1 = CFa(0, 0, Rad(180))
  269. local penw0 = penw.C0
  270. local penw1 = penw.C1
  271.  
  272. local sharpw = ManualWeld13
  273. local sharpw0 = ManualWeld13.C0
  274. local sharpw1 = ManualWeld13.C1
  275. local sharpw02 = CFn(0.3, 0, 0)
  276. sharpw.C0 = sharpw02
  277.  
  278. local botw = ManualWeld11
  279. local botw0 = ManualWeld11.C0
  280. local botw1 = ManualWeld11.C1
  281. local botw02 = CFn(-0.07, 0, 0)
  282. botw.C0 = botw0
  283.  
  284. -----------------------------------------------------------------------------------
  285.  
  286. local ws = 16
  287. local jp = 50
  288. local out = false
  289. local ouch = false
  290. local hitok = false
  291. local canattack = true
  292. local stabstate = 1
  293. local Stabbing = false
  294. local Throwing = false
  295. local rot = 1
  296. local dmg = 5
  297.  
  298. -----------------------------------------------------------------------------------
  299.  
  300. ArtificialHB = Instance.new("BindableEvent", script)
  301. ArtificialHB.Name = "Heartbeat"
  302. script:WaitForChild("Heartbeat")
  303.  
  304. frame = 1 / 60
  305. tf = 0
  306. allowframeloss = false
  307. tossremainder = false
  308.  
  309.  
  310. lastframe = tick()
  311. script.Heartbeat:Fire()
  312.  
  313.  
  314. game:GetService("RunService").Heartbeat:connect(function(s, p)
  315. tf = tf + s
  316. if tf >= frame then
  317. if allowframeloss then
  318. script.Heartbeat:Fire()
  319. lastframe = tick()
  320. else
  321. for i = 1, math.floor(tf / frame) do
  322. script.Heartbeat:Fire()
  323. end
  324. lastframe = tick()
  325. end
  326. if tossremainder then
  327. tf = 0
  328. else
  329. tf = tf - frame * math.floor(tf / frame)
  330. end
  331. end
  332. end)
  333.  
  334. function swait(num)
  335. if num == 0 or num == nil then
  336. game:service("RunService").Stepped:wait(0)
  337. else
  338. for i = 0, num do
  339. game:service("RunService").Stepped:wait(0)
  340. end
  341. end
  342. end
  343.  
  344. function clerp(a, b, t)
  345. return a:lerp(b, t)
  346. end
  347. out = true
  348.  
  349. function Stab()
  350. if stabstate == 1 and canattack == true then
  351. Stabbing = true
  352. canattack = false
  353. stabstate = 2
  354. hum.WalkSpeed = 8
  355. hum.JumpPower = 7
  356. hitok = true
  357. body.Touched:connect(function(hit)
  358. if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then
  359. hitok = false
  360. local owdude = hit.Parent
  361. local owhum = owdude:FindFirstChildOfClass("Humanoid")
  362. owhum.Health = owhum.Health - math.huge
  363. if out == true then
  364. local bloodsound = Instance.new("Sound", hit)
  365. bloodsound.Volume = 10
  366. bloodsound.SoundId = "rbxassetid://911682932"
  367. bloodsound:Play()
  368. game:GetService("Debris"):AddItem(bloodsound, 1)
  369. local bloodsplash = Instance.new("ParticleEmitter", hit)
  370. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  371. bloodsplash.Speed = NumberRange.new(6)
  372. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  373. bloodsplash.Rate = 1000
  374. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  375. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  376. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  377. bloodsplash.Texture = "rbxassetid://1744093986"
  378. game:GetService("Debris"):AddItem(bloodsplash, 1)
  379. wait(0.25)
  380. bloodsplash.Enabled = false
  381. end
  382. end
  383. if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  384. hitok = false
  385. local owdude = hit.Parent.Parent
  386. local owhum = owdude:FindFirstChildOfClass("Humanoid")
  387. owhum.Health = owhum.Health - math.huge
  388. if out == true then
  389. local bloodsound = Instance.new("Sound", hit)
  390. bloodsound.Volume = 10
  391. bloodsound.SoundId = "rbxassetid://948779227"
  392. bloodsound:Play()
  393. game:GetService("Debris"):AddItem(bloodsound, 1)
  394. local bloodsplash = Instance.new("ParticleEmitter", hit)
  395. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  396. bloodsplash.Speed = NumberRange.new(6)
  397. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  398. bloodsplash.Rate = 1000
  399. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  400. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  401. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  402. bloodsplash.Texture = "rbxassetid://771221224"
  403. game:GetService("Debris"):AddItem(bloodsplash, 1)
  404. wait(0.25)
  405. bloodsplash.Enabled = false
  406. end
  407. end
  408. end)
  409. for i = 0,1,.15 do
  410. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
  411. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  412. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
  413. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  414. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-30), Rad(-30), Rad(-3)), i)
  415. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
  416. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
  417. LS.C0 = clerp(LS.C0, LS0, i)
  418. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i)
  419. LH.C0 = clerp(LH.C0, LH0, i)
  420. RH.C0 = clerp(RH.C0, RH0, i)
  421. swait()
  422. end
  423. for i = 0,1,.15 do
  424. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
  425. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  426. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
  427. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  428. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), Rad(-30), Rad(-3)), i)
  429. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
  430. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
  431. LS.C0 = clerp(LS.C0, LS0, i)
  432. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i)
  433. LH.C0 = clerp(LH.C0, LH0, i)
  434. RH.C0 = clerp(RH.C0, RH0, i)
  435. swait()
  436. end
  437. hitok = false
  438. hum.WalkSpeed = ws
  439. hum.JumpPower = jp
  440. canattack = true
  441. Stabbing = false
  442. elseif stabstate == 2 and canattack == true then
  443. canattack = false
  444. stabstate = 1
  445. hum.WalkSpeed = 9
  446. hum.JumpPower = 9
  447. hitok = true
  448. body.Touched:connect(function(hit)
  449. if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then
  450. local owdude = hit.Parent
  451. local owhum = owdude:FindFirstChildOfClass("Humanoid")
  452. owhum.Health = owhum.Health - math.huge
  453. if out == true then
  454. local bloodsound = Instance.new("Sound", hit)
  455. bloodsound.Volume = 10
  456. bloodsound.SoundId = "rbxassetid://911682932"
  457. bloodsound:Play()
  458. game:GetService("Debris"):AddItem(bloodsound, 1)
  459. local bloodsplash = Instance.new("ParticleEmitter", hit)
  460. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  461. bloodsplash.Speed = NumberRange.new(6)
  462. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  463. bloodsplash.Rate = 1000
  464. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  465. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  466. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  467. bloodsplash.Texture = "rbxassetid://771221224"
  468. game:GetService("Debris"):AddItem(bloodsplash, 1)
  469. wait(0.25)
  470. bloodsplash.Enabled = false
  471. end
  472. end
  473. if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  474. hitok = false
  475. local owdude = hit.Parent.Parent
  476. local owhum = owdude:FindFirstChildOfClass("Humanoid")
  477. owhum.Health = owhum.Health - math.huge
  478. if out == true then
  479. local bloodsound = Instance.new("Sound", hit)
  480. bloodsound.Volume = 10
  481. bloodsound.SoundId = "rbxassetid://911682932"
  482. bloodsound:Play()
  483. game:GetService("Debris"):AddItem(bloodsound, 1)
  484. local bloodsplash = Instance.new("ParticleEmitter", hit)
  485. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  486. bloodsplash.Speed = NumberRange.new(6)
  487. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  488. bloodsplash.Rate = 1000
  489. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  490. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  491. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  492. bloodsplash.Texture = "rbxassetid://771221224"
  493. game:GetService("Debris"):AddItem(bloodsplash, 1)
  494. wait(0.25)
  495. bloodsplash.Enabled = false
  496. end
  497. end
  498. end)
  499. for i = 0,1,.15 do
  500. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
  501. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  502. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
  503. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  504. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(30), Rad(-3)), i)
  505. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
  506. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
  507. LS.C0 = clerp(LS.C0, LS0, i)
  508. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i)
  509. LH.C0 = clerp(LH.C0, LH0, i)
  510. RH.C0 = clerp(RH.C0, RH0, i)
  511. swait()
  512. end
  513. for i = 0,1,.15 do
  514. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i)
  515. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  516. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
  517. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  518. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-20), Rad(30), Rad(-3)), i)
  519. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
  520. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
  521. LS.C0 = clerp(LS.C0, LS0, i)
  522. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i)
  523. LH.C0 = clerp(LH.C0, LH0, i)
  524. RH.C0 = clerp(RH.C0, RH0, i)
  525. swait()
  526. end
  527. hitok = false
  528. hum.WalkSpeed = ws
  529. hum.JumpPower = jp
  530. canattack = true
  531. Stabbing = false
  532. end
  533. end
  534.  
  535. local hair = Instance.new("Part",char)
  536. hair.CanCollide = false
  537. local m = Instance.new("FileMesh",hair)
  538. m.MeshId = "http://www.roblox.com/asset/?id=36869983"
  539. m.TextureId = "http://www.roblox.com/asset/?id=367967552"
  540. local w = Instance.new("Weld",hair)
  541. w.Part0 = hair
  542. w.Part1 = char.Head
  543. 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)
  544. local sick = Instance.new("Sound",char.Torso)
  545. sick.SoundId = "rbxassetid://132476475"
  546. sick.Looped = true
  547. sick.Pitch = 1
  548. sick.Volume = 10
  549. sick:Play()
  550.  
  551. function Throw()
  552. if canattack == true then
  553. Throwing = true
  554. canattack = false
  555. hum.WalkSpeed = 10
  556. hum.JumpPower = 10
  557. ouch = true
  558. for i = 0,1,.15 do
  559. penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
  560. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  561. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i)
  562. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  563. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
  564. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i)
  565. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i)
  566. LS.C0 = clerp(LS.C0, LS0, i)
  567. RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(90), Rad(90)), i)
  568. LH.C0 = clerp(LH.C0, LH0, i)
  569. RH.C0 = clerp(RH.C0, RH0, i)
  570. swait()
  571. end
  572. local throwknife = knife:Clone()
  573. throwknife.Parent = workspace
  574. throwknife:BreakJoints()
  575. throwknife.CanCollide = false
  576. knife.Transparency = 1
  577. local vel = Instance.new("BodyVelocity",throwknife)
  578. vel.Velocity = mou.Hit.lookVector * 150
  579. local throwpen = pen:Clone()
  580. for i,v in pairs(throwpen:GetChildren()) do
  581. if v:IsA("BasePart") and v.CanCollide == true then
  582. v.CanCollide = false
  583. end
  584. end
  585. throwpen.Parent = workspace
  586. local throwbod = throwpen:FindFirstChild("body")
  587. if throwbod:FindFirstChild("penWeld22") then
  588. throwbod:FindFirstChild("penWeld22"):Destroy()
  589. end
  590. local throwbv = Instance.new("BodyVelocity", throwbod)
  591. throwbv.Velocity = mou.Hit.lookVector * 100
  592. throwbv.MaxForce = Vector3.new(100000000000000000, 100000000000000000, 100000000000000000)
  593. throwknife.Touched:connect(function(hit)
  594. if ouch == true and not hit:IsDescendantOf(char) then
  595. ouch = false
  596. throwpen:Destroy()
  597. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  598. local throwhum = hit.Parent:FindFirstChildOfClass("Humanoid")
  599. throwhum.Health = throwhum.Health - math.huge
  600. if out == true then
  601. local bloodsound = Instance.new("Sound", hit)
  602. bloodsound.Volume = 10
  603. bloodsound.SoundId = "rbxassetid://911682932"
  604. bloodsound:Play()
  605. game:GetService("Debris"):AddItem(bloodsound, 1)
  606. local bloodsplash = Instance.new("ParticleEmitter", hit)
  607. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  608. bloodsplash.Speed = NumberRange.new(6)
  609. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  610. bloodsplash.Rate = 1000
  611. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  612. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  613. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  614. bloodsplash.Texture = "rbxassetid://771221224"
  615. game:GetService("Debris"):AddItem(bloodsplash, 1)
  616. wait(0.25)
  617. bloodsplash.Enabled = false
  618. end
  619. end
  620. if hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  621. local throwhum = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  622. throwhum.Health = throwhum.Health - math.huge
  623. if out == true then
  624. local bloodsound = Instance.new("Sound", hit)
  625. bloodsound.Volume = 10
  626. bloodsound.SoundId = "rbxassetid://911682932"
  627. bloodsound:Play()
  628. game:GetService("Debris"):AddItem(bloodsound, 1)
  629. local bloodsplash = Instance.new("ParticleEmitter", hit)
  630. bloodsplash.Lifetime = NumberRange.new(0.7, 1)
  631. bloodsplash.Speed = NumberRange.new(6)
  632. bloodsplash.SpreadAngle = Vector2.new(-360, 360)
  633. bloodsplash.Rate = 1000
  634. bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)})
  635. bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)})
  636. bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
  637. bloodsplash.Texture = "rbxassetid://771221224"
  638. game:GetService("Debris"):AddItem(bloodsplash, 1)
  639. wait(0.25)
  640. bloodsplash.Enabled = false
  641. end
  642. end
  643. end
  644. end)
  645. for i,v in pairs(pen:GetChildren()) do
  646. if v:IsA("BasePart") then
  647. v.Transparency = 1
  648. end
  649. end
  650. for i = 0,1,.1 do
  651. penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
  652. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i)
  653. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(Rad(-20), 0, 0), i)
  654. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  655. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
  656. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), Rad(-20)), i)
  657. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), Rad(-20)), i)
  658. LS.C0 = clerp(LS.C0, LS0, i)
  659. RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-80), Rad(90)), i)
  660. LH.C0 = clerp(LH.C0, LH0, i)
  661. RH.C0 = clerp(RH.C0, RH0, i)
  662. swait()
  663. end
  664. for i = 0,1,.1 do
  665. penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i)
  666. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-30), 0, 0), i)
  667. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(0, 0, Rad(-30)), i)
  668. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i)
  669. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i)
  670. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i)
  671. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i)
  672. LS.C0 = clerp(LS.C0, LS0, i)
  673. RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), Rad(30)), i)
  674. LH.C0 = clerp(LH.C0, LH0, i)
  675. RH.C0 = clerp(RH.C0, RH0, i)
  676. swait()
  677. end
  678. for i,v in pairs(pen:GetChildren()) do
  679. if v:IsA("BasePart") then
  680. v.Transparency = 0
  681. end
  682. end
  683. hum.WalkSpeed = ws
  684. hum.JumpPower = jp
  685. canattack = true
  686. Throwing = false
  687. knife.Transparency = 0
  688. end
  689. end
  690.  
  691. -----------------------------------------------------------------------------------
  692.  
  693. function kdown(k)
  694. if k == "e" then
  695. Throw()
  696. end
  697. end
  698.  
  699. mou.KeyDown:connect(kdown)
  700. mou.Button1Down:connect(Stab)
  701.  
  702. for i,v in pairs(char:GetChildren()) do
  703. if v.ClassName == "Part" then
  704. v.BrickColor = BrickColor.new("Really black")
  705. end
  706. end
  707. -----------------------------------------------------------------------------------
  708.  
  709. local right = Instance.new("CharacterMesh",char)
  710. right.BodyPart = Enum.BodyPart.RightArm
  711. right.MeshId = 27111864
  712. local tors = Instance.new("CharacterMesh",char)
  713. tors.BodyPart = Enum.BodyPart.Torso
  714. tors.MeshId = 27111894
  715. local left = Instance.new("CharacterMesh",char)
  716. left.MeshId = 27111419
  717. left.BodyPart = Enum.BodyPart.LeftArm
  718. local leftl = Instance.new("CharacterMesh",char)
  719. leftl.BodyPart = Enum.BodyPart.LeftLeg
  720. leftl.MeshId = 27111857
  721. local rightl = Instance.new("CharacterMesh",char)
  722. rightl.BodyPart = Enum.BodyPart.RightLeg
  723. rightl.MeshId = 27111882
  724. local BODY = {}
  725. LeftArm = char["Left Arm"]
  726. RightLeg = char["Right Leg"]
  727. LeftLeg = char["Left Leg"]
  728. for _, c in pairs(char:GetDescendants()) do
  729. if c:IsA("BasePart") and c.Name ~= "Handle" then
  730. 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
  731. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  732. end
  733. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  734. elseif c:IsA("JointInstance") then
  735. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  736. end
  737. end
  738. for e = 1, #BODY do
  739. if BODY[e] ~= nil then
  740. local STUFF = BODY[e]
  741. local PART = STUFF[1]
  742. local PARENT = STUFF[2]
  743. local MATERIAL = STUFF[3]
  744. local TRANSPARENCY = STUFF[5]
  745. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  746. PART.Material = MATERIAL
  747. PART.Transparency = TRANSPARENCY
  748. end
  749. PART.AncestryChanged:Connect(function()
  750. PART.Parent = PARENT
  751. end)
  752. end
  753. end
  754. function refit()
  755. char.Parent = workspace
  756. for e = 1, #BODY do
  757. if BODY[e] ~= nil then
  758. local STUFF = BODY[e]
  759. local PART = STUFF[1]
  760. local PARENT = STUFF[2]
  761. local MATERIAL = STUFF[3]
  762. local TRANSPARENCY = STUFF[5]
  763. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  764. PART.Material = MATERIAL
  765. PART.Transparency = TRANSPARENCY
  766. end
  767. if PART.Parent ~= PARENT then
  768. char:FindFirstChildOfClass("Humanoid"):remove()
  769. PART.Parent = PARENT
  770. Humanoid = Instance.new("Humanoid",char)
  771. end
  772. end
  773. end
  774. end
  775. char.Humanoid.Died:connect(function()
  776. refit()
  777. sound.Parent = char
  778. sound:Play()
  779. end)
  780. local glitch = Instance.new("Sound",char)
  781. glitch.SoundId = "rbxassetid://"
  782. glitch.Volume = 4
  783.  
  784. normalface = {"http://www.roblox.com/asset/?id="}
  785. glitchface = {"rbxassetid://", "http://www.roblox.com/asset/?id=", "http://www.roblox.com/asset/?id="}
  786.  
  787. local naeeym2 = Instance.new("BillboardGui",char)
  788. naeeym2.AlwaysOnTop = true
  789. naeeym2.Size = UDim2.new(5,35,2,35)
  790. naeeym2.StudsOffset = Vector3.new(0,2,0)
  791. naeeym2.Adornee = hed
  792. naeeym2.Name = "Name"
  793.  
  794. local tecks2 = Instance.new("TextLabel",naeeym2)
  795. tecks2.BackgroundTransparency = 1
  796. tecks2.TextScaled = true
  797. tecks2.BorderSizePixel = 0
  798. tecks2.Text = "The Shy guy"
  799. tecks2.Font = "Garamond"
  800. tecks2.TextSize = 30
  801. tecks2.TextStrokeTransparency = 0
  802. tecks2.TextColor3 = BrickColor.new('Institutional white').Color
  803. tecks2.TextStrokeColor3 = BrickColor.new('Institutional white').Color
  804. tecks2.Size = UDim2.new(1,0,1,0)
  805. tecks2.Parent = naeeym2
  806. textfag = tecks2
  807. tecks2.Text = "The Shy Guy"
  808. function swait(num)
  809. if num == 0 or num == nil then
  810. game:service("RunService").Stepped:wait(0)
  811. else
  812. for i = 0, num do
  813. game:service("RunService").Stepped:wait(0)
  814. end
  815. end
  816. end
  817. coroutine.resume(coroutine.create(function()
  818. while textfag ~= nil do
  819. swait()
  820. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  821. textfag.Rotation = math.random(-3,3)
  822. end
  823. end))
  824.  
  825. textrandom = {"The Shy guy", "The Shy guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy", "The Shy Guy"}
  826. normaltext = {"The Shy Guy"}
  827.  
  828. while true do
  829. swait()
  830. if canglitch then
  831. for i,v in pairs(char:GetChildren()) do
  832. if v.ClassName == "Part" then
  833. v.BrickColor = BrickColor.new("Institutional white")
  834. end
  835. end
  836. local change = math.random(1,50)
  837. if change == 1 then
  838. glitch:Play()
  839. textfag.Text = textrandom[math.random(1,12)]
  840. char.Head.face.Texture = glitchface[math.random(1,3)]
  841. for i,v in pairs(char:GetChildren()) do
  842. if v.ClassName == "Part" then
  843. v.BrickColor = BrickColor.new("Institutional white")
  844. end
  845. end
  846. end
  847. if change == 2 then
  848. glitch:Pause()
  849. textfag.Text = normaltext[math.random(1,1)]
  850. char.Head.face.Texture = normalface[math.random(1,1)]
  851. for i,v in pairs(char:GetChildren()) do
  852. if v.ClassName == "Part" then
  853. v.BrickColor = BrickColor.new("Institutional white")
  854. end
  855. end
  856. end
  857. if change == 3 then
  858. char.Head.face.Texture = normalface[math.random(1,1)]
  859. textfag.Text = normaltext[math.random(1,1)]
  860. for i,v in pairs(char:GetChildren()) do
  861. if v.ClassName == "Part" then
  862. v.BrickColor = BrickColor.new("Institutional white")
  863. end
  864. end
  865. end
  866. if change == 4 then
  867. char.Head.face.Texture = normalface[math.random(1,1)]
  868. textfag.Text = normaltext[math.random(1,1)]
  869. glitch:Pause()
  870. for i,v in pairs(char:GetChildren()) do
  871. if v.ClassName == "Part" then
  872. v.BrickColor = BrickColor.new("Institutional white")
  873. end
  874. end
  875. end
  876. if change == 5 then
  877. char.Head.face.Texture = normalface[math.random(1,1)]
  878. textfag.Text = normaltext[math.random(1,1)]
  879. glitch:Pause()
  880. for i,v in pairs(char:GetChildren()) do
  881. if v.ClassName == "Part" then
  882. v.BrickColor = BrickColor.new("Institutional white")
  883. end
  884. end
  885. end
  886. if change == 6 then
  887. char.Head.face.Texture = normalface[math.random(1,1)]
  888. textfag.Text = normaltext[math.random(1,1)]
  889. glitch:Pause()
  890. for i,v in pairs(char:GetChildren()) do
  891. if v.ClassName == "Part" then
  892. v.BrickColor = BrickColor.new("Institutional white")
  893. end
  894. end
  895. end
  896. if change == 7 then
  897. char.Head.face.Texture = normalface[math.random(1,1)]
  898. textfag.Text = normaltext[math.random(1,1)]
  899. glitch:Pause()
  900. for i,v in pairs(char:GetChildren()) do
  901. if v.ClassName == "Part" then
  902. v.BrickColor = BrickColor.new("Institutional white")
  903. end
  904. end
  905. end
  906. if change == 8 then
  907. char.Head.face.Texture = normalface[math.random(1,1)]
  908. textfag.Text = normaltext[math.random(1,1)]
  909. glitch:Pause()
  910. for i,v in pairs(char:GetChildren()) do
  911. if v.ClassName == "Part" then
  912. v.BrickColor = BrickColor.new("Institutional white")
  913. end
  914. end
  915. end
  916. if change == 9 then
  917. char.Head.face.Texture = normalface[math.random(1,1)]
  918. textfag.Text = normaltext[math.random(1,1)]
  919. glitch:Pause()
  920. for i,v in pairs(char:GetChildren()) do
  921. if v.ClassName == "Part" then
  922. v.BrickColor = BrickColor.new("Institutional white")
  923. end
  924. end
  925. end
  926. if change == 10 then
  927. char.Head.face.Texture = normalface[math.random(1,1)]
  928. textfag.Text = normaltext[math.random(1,1)]
  929. glitch:Pause()
  930. for i,v in pairs(char:GetChildren()) do
  931. if v.ClassName == "Part" then
  932. v.BrickColor = BrickColor.new("Institutional white")
  933. end
  934. end
  935. end
  936. if change == 11 then
  937. char.Head.face.Texture = normalface[math.random(1,1)]
  938. textfag.Text = normaltext[math.random(1,1)]
  939. glitch:Pause()
  940. for i,v in pairs(char:GetChildren()) do
  941. if v.ClassName == "Part" then
  942. v.BrickColor = BrickColor.new("Institutional white")
  943. end
  944. end
  945. end
  946. if change == 12 then
  947. char.Head.face.Texture = normalface[math.random(1,1)]
  948. textfag.Text = normaltext[math.random(1,1)]
  949. glitch:Pause()
  950. for i,v in pairs(char:GetChildren()) do
  951. if v.ClassName == "Part" then
  952. v.BrickColor = BrickColor.new("Institutional white")
  953. end
  954. end
  955. end
  956. if change == 13 then
  957. char.Head.face.Texture = normalface[math.random(1,1)]
  958. textfag.Text = normaltext[math.random(1,1)]
  959. glitch:Pause()
  960. for i,v in pairs(char:GetChildren()) do
  961. if v.ClassName == "Part" then
  962. v.BrickColor = BrickColor.new("Institutional white")
  963. end
  964. end
  965. end
  966. if change == 14 then
  967. char.Head.face.Texture = normalface[math.random(1,1)]
  968. textfag.Text = normaltext[math.random(1,1)]
  969. glitch:Pause()
  970. for i,v in pairs(char:GetChildren()) do
  971. if v.ClassName == "Part" then
  972. v.BrickColor = BrickColor.new("Institutional white")
  973. end
  974. end
  975. end
  976. if change == 15 then
  977. char.Head.face.Texture = normalface[math.random(1,1)]
  978. textfag.Text = normaltext[math.random(1,1)]
  979. glitch:Pause()
  980. for i,v in pairs(char:GetChildren()) do
  981. if v.ClassName == "Part" then
  982. v.BrickColor = BrickColor.new("Institutional white")
  983. end
  984. end
  985. end
  986. end
  987. refit()
  988. sine = sine + 1
  989. rot = rot + 25
  990. if rot == 360 then
  991. rot = 1
  992. end
  993. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  994. if Stabbing == true then
  995. state = "Stabbing"
  996. elseif Throwing == true then
  997. state = "Throwing"
  998. elseif 1 < root.Velocity.y then
  999. state = "Jump"
  1000. elseif -1 > root.Velocity.y then
  1001. state = "Fall"
  1002. elseif torvel < 1 then
  1003. state = "Idle"
  1004. elseif tor.Velocity.magnitude < 50 then
  1005. state = "Walk"
  1006. end
  1007. if state == "Jump" then
  1008. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
  1009. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), 0.15)
  1010. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-15), 0, 0), 0.15)
  1011. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
  1012. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
  1013. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.2, 0) * CFa(Rad(2), 0, Rad(-15)), 0.15)
  1014. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.5, 0) * CFa(Rad(2), 0, Rad(15)), 0.15)
  1015. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1016. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1017. LH.C0 = clerp(LH.C0, LH0 * CFn(-0.2, 0, 0), 0.15)
  1018. RH.C0 = clerp(RH.C0, RH0 * CFn(0.5, 0, 0), 0.15)
  1019. elseif state == "Fall" then
  1020. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
  1021. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, 0), 0.15)
  1022. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(15), 0, 0), 0.15)
  1023. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(35), 0, 0), 0.15)
  1024. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(35), 0, 0), 0.15)
  1025. LH.C1 = clerp(LH.C1, LH1 * CFn(0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(10)), 0.15)
  1026. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(-10)), 0.15)
  1027. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1028. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1029. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(-20)), 0.15)
  1030. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(20)), 0.15)
  1031. elseif state == "Idle" then
  1032. penw.C1 = clerp(penw.C1, penw1 * CFn(0, 0, 0.5) * CFa(0, 0, Rad(rot)), 0.15)
  1033. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2 * Cos(sine / 15)), 0, 0), 0.15)
  1034. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025 * Cos(sine / 15)), 0.15)
  1035. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), 0.15)
  1036. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(2), 0, Rad(-3 * Cos(sine / 15))), 0.15)
  1037. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-5), 0), 0.15)
  1038. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(5), 0), 0.15)
  1039. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1040. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(80)), 0.15)
  1041. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1042. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1043. elseif state == "Walk" then
  1044. penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15)
  1045. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1046. 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)
  1047. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15)
  1048. RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15)
  1049. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(2), Rad(-5), Rad(50 * Cos(sine / 6))), 0.15)
  1050. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(2), Rad(5), Rad(50 * Cos(sine / 6))), 0.15)
  1051. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1052. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1053. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1054. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1055. end
  1056. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement