Advertisement
Guest User

Untitled

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