Advertisement
Kaemi

Red Dress gurl

Feb 21st, 2018
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.83 KB | None | 0 0
  1.  
  2. --GENOCIDE!
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. SpecialMesh5 = Instance.new("SpecialMesh")
  25. Decal6 = Instance.new("Decal")
  26. Weld7 = Instance.new("Weld")
  27. Part8 = Instance.new("Part")
  28. Decal9 = Instance.new("Decal")
  29. Motor6D10 = Instance.new("Motor6D")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Motor6D14 = Instance.new("Motor6D")
  34. BillboardGui15 = Instance.new("BillboardGui")
  35. TextLabel16 = Instance.new("TextLabel")
  36. Part17 = Instance.new("Part")
  37. Part18 = Instance.new("Part")
  38. Weld19 = Instance.new("Weld")
  39. Weld20 = Instance.new("Weld")
  40. Part21 = Instance.new("Part")
  41. Part22 = Instance.new("Part")
  42. Humanoid23 = Instance.new("Humanoid")
  43. Model24 = Instance.new("Model")
  44. Model25 = Instance.new("Model")
  45. Part26 = Instance.new("Part")
  46. Motor6D27 = Instance.new("Motor6D")
  47. Part28 = Instance.new("Part")
  48. Sound29 = Instance.new("Sound")
  49. Sound30 = Instance.new("Sound")
  50. Sound31 = Instance.new("Sound")
  51. Sound32 = Instance.new("Sound")
  52. SpecialMesh33 = Instance.new("SpecialMesh")
  53. Script34 = Instance.new("Script")
  54. Script35 = Instance.new("Script")
  55. StringValue36 = Instance.new("StringValue")
  56. Animation37 = Instance.new("Animation")
  57. StringValue38 = Instance.new("StringValue")
  58. Animation39 = Instance.new("Animation")
  59. StringValue40 = Instance.new("StringValue")
  60. Animation41 = Instance.new("Animation")
  61. NumberValue42 = Instance.new("NumberValue")
  62. Animation43 = Instance.new("Animation")
  63. NumberValue44 = Instance.new("NumberValue")
  64. StringValue45 = Instance.new("StringValue")
  65. Animation46 = Instance.new("Animation")
  66. StringValue47 = Instance.new("StringValue")
  67. Animation48 = Instance.new("Animation")
  68. StringValue49 = Instance.new("StringValue")
  69. Animation50 = Instance.new("Animation")
  70. StringValue51 = Instance.new("StringValue")
  71. Animation52 = Instance.new("Animation")
  72. StringValue53 = Instance.new("StringValue")
  73. Animation54 = Instance.new("Animation")
  74. Animation55 = Instance.new("Animation")
  75. Tool56 = Instance.new("Tool")
  76. Part57 = Instance.new("Part")
  77. Sound58 = Instance.new("Sound")
  78. FileMesh59 = Instance.new("FileMesh")
  79. ScreenGui60 = Instance.new("ScreenGui")
  80. TextLabel61 = Instance.new("TextLabel")
  81. LocalScript62 = Instance.new("LocalScript")
  82. LocalScript63 = Instance.new("LocalScript")
  83. Script64 = Instance.new("Script")
  84. Script65 = Instance.new("Script")
  85. Pants66 = Instance.new("Pants")
  86. Hat67 = Instance.new("Hat")
  87. Part68 = Instance.new("Part")
  88. SpecialMesh69 = Instance.new("SpecialMesh")
  89. CharacterMesh70 = Instance.new("CharacterMesh")
  90. CharacterMesh71 = Instance.new("CharacterMesh")
  91. CharacterMesh72 = Instance.new("CharacterMesh")
  92. CharacterMesh73 = Instance.new("CharacterMesh")
  93. CharacterMesh74 = Instance.new("CharacterMesh")
  94. Model0.Name = "Genocide"
  95. Model0.Parent = mas
  96. Model0.PrimaryPart = Part1
  97. Part1.Name = "Head"
  98. Part1.Parent = Model0
  99. Part1.Material = Enum.Material.SmoothPlastic
  100. Part1.BrickColor = BrickColor.new("Pastel brown")
  101. Part1.Rotation = Vector3.new(-180, 0.0199999996, -180)
  102. Part1.Elasticity = 0
  103. Part1.FormFactor = Enum.FormFactor.Symmetric
  104. Part1.Friction = 0
  105. Part1.Size = Vector3.new(2, 1, 1)
  106. Part1.CFrame = CFrame.new(-2.25450635, 4.50008392, -119.720833, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  107. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  108. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  109. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  110. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  111. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  112. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  113. Part1.Color = Color3.new(1, 0.8, 0.6)
  114. Part1.Position = Vector3.new(-2.25450635, 4.50008392, -119.720833)
  115. Part1.Orientation = Vector3.new(0, 179.979996, 0)
  116. Part1.Color = Color3.new(1, 0.8, 0.6)
  117. Sound2.Name = "Jeff_Step"
  118. Sound2.Parent = Part1
  119. Sound2.SoundId = "rbxassetid://379611235"
  120. Sound2.Volume = 1
  121. Sound3.Name = "Jeff_Laugh"
  122. Sound3.Parent = Part1
  123. Sound3.SoundId = "rbxassetid://224921358"
  124. Sound3.Volume = 1
  125. Sound3.Looped = true
  126. Sound4.Name = "Jeff_Susto2"
  127. Sound4.Parent = Part1
  128. Sound4.SoundId = "rbxassetid://320355925"
  129. Sound4.Volume = 1
  130. SpecialMesh5.Parent = Part1
  131. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  132. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  133. Decal6.Parent = Part1
  134. Decal6.Texture = "http://www.roblox.com/asset/?id=143031148"
  135. Weld7.Name = "HeadWeld"
  136. Weld7.Parent = Part1
  137. Weld7.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  138. Weld7.C1 = CFrame.new(0, 0.100000001, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  139. Weld7.Part0 = Part1
  140. Weld7.Part1 = Part68
  141. Part8.Name = "Torso"
  142. Part8.Parent = Model0
  143. Part8.Material = Enum.Material.SmoothPlastic
  144. Part8.BrickColor = BrickColor.new("Pastel brown")
  145. Part8.Rotation = Vector3.new(-180, 0.0199999996, -180)
  146. Part8.Elasticity = 0
  147. Part8.FormFactor = Enum.FormFactor.Symmetric
  148. Part8.Friction = 2
  149. Part8.Size = Vector3.new(2, 2, 1)
  150. Part8.CFrame = CFrame.new(-2.25451708, 3.00008392, -119.720947, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  151. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  152. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  153. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  154. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  155. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  156. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  157. Part8.Color = Color3.new(1, 0.8, 0.6)
  158. Part8.Position = Vector3.new(-2.25451708, 3.00008392, -119.720947)
  159. Part8.Orientation = Vector3.new(0, 179.979996, 0)
  160. Part8.Color = Color3.new(1, 0.8, 0.6)
  161. Decal9.Name = "roblox"
  162. Decal9.Parent = Part8
  163. Motor6D10.Name = "Right Shoulder"
  164. Motor6D10.Parent = Part8
  165. Motor6D10.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  166. Motor6D10.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  167. Motor6D10.Part0 = Part8
  168. Motor6D10.Part1 = Part18
  169. Motor6D10.MaxVelocity = 0.10000000149012
  170. Motor6D11.Name = "Left Shoulder"
  171. Motor6D11.Parent = Part8
  172. Motor6D11.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173. Motor6D11.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  174. Motor6D11.Part0 = Part8
  175. Motor6D11.Part1 = Part17
  176. Motor6D11.MaxVelocity = 0.10000000149012
  177. Motor6D12.Name = "Right Hip"
  178. Motor6D12.Parent = Part8
  179. Motor6D12.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  180. Motor6D12.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  181. Motor6D12.Part0 = Part8
  182. Motor6D12.Part1 = Part22
  183. Motor6D12.MaxVelocity = 0.10000000149012
  184. Motor6D13.Name = "Left Hip"
  185. Motor6D13.Parent = Part8
  186. Motor6D13.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  187. Motor6D13.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  188. Motor6D13.Part0 = Part8
  189. Motor6D13.Part1 = Part21
  190. Motor6D13.MaxVelocity = 0.10000000149012
  191. Motor6D14.Name = "Neck"
  192. Motor6D14.Parent = Part8
  193. Motor6D14.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  194. Motor6D14.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  195. Motor6D14.Part0 = Part8
  196. Motor6D14.Part1 = Part1
  197. Motor6D14.MaxVelocity = 0.10000000149012
  198. BillboardGui15.Name = "BossGui"
  199. BillboardGui15.Parent = Part8
  200. BillboardGui15.Size = UDim2.new(10, 0, 10, 0)
  201. BillboardGui15.Active = true
  202. BillboardGui15.AlwaysOnTop = true
  203. BillboardGui15.StudsOffset = Vector3.new(0, 5, 0)
  204. TextLabel16.Parent = BillboardGui15
  205. TextLabel16.Transparency = 1
  206. TextLabel16.Size = UDim2.new(1, 0, 1, 0)
  207. TextLabel16.Text = "KILL THIS GAL!"
  208. TextLabel16.BackgroundColor3 = Color3.new(1, 1, 1)
  209. TextLabel16.BackgroundTransparency = 1
  210. TextLabel16.Font = Enum.Font.ArialBold
  211. TextLabel16.FontSize = Enum.FontSize.Size12
  212. TextLabel16.TextColor3 = Color3.new(1, 1, 1)
  213. TextLabel16.TextScaled = true
  214. TextLabel16.TextStrokeColor3 = Color3.new(1, 1, 1)
  215. TextLabel16.TextStrokeTransparency = 0
  216. TextLabel16.TextWrapped = true
  217. Part17.Name = "Left Arm"
  218. Part17.Parent = Model0
  219. Part17.Material = Enum.Material.SmoothPlastic
  220. Part17.BrickColor = BrickColor.new("Pastel brown")
  221. Part17.Rotation = Vector3.new(-180, 0.0199999996, -180)
  222. Part17.Elasticity = 0
  223. Part17.FormFactor = Enum.FormFactor.Symmetric
  224. Part17.Friction = 2
  225. Part17.Size = Vector3.new(1, 2, 1)
  226. Part17.CFrame = CFrame.new(-0.754513144, 3.00007319, -119.720535, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  227. Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  228. Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  229. Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  230. Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  231. Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  232. Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  233. Part17.Color = Color3.new(1, 0.8, 0.6)
  234. Part17.Position = Vector3.new(-0.754513144, 3.00007319, -119.720535)
  235. Part17.Orientation = Vector3.new(0, 179.979996, 0)
  236. Part17.Color = Color3.new(1, 0.8, 0.6)
  237. Part18.Name = "Right Arm"
  238. Part18.Parent = Model0
  239. Part18.Material = Enum.Material.SmoothPlastic
  240. Part18.BrickColor = BrickColor.new("Pastel brown")
  241. Part18.Rotation = Vector3.new(-180, 0.0199999996, -180)
  242. Part18.Elasticity = 0
  243. Part18.FormFactor = Enum.FormFactor.Symmetric
  244. Part18.Friction = 2
  245. Part18.Size = Vector3.new(1, 2, 1)
  246. Part18.CFrame = CFrame.new(-3.75452089, 3.00009465, -119.721359, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  247. Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  248. Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  249. Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  250. Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  251. Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  252. Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  253. Part18.Color = Color3.new(1, 0.8, 0.6)
  254. Part18.Position = Vector3.new(-3.75452089, 3.00009465, -119.721359)
  255. Part18.Orientation = Vector3.new(0, 179.979996, 0)
  256. Part18.Color = Color3.new(1, 0.8, 0.6)
  257. Weld19.Name = "RightGripWeld"
  258. Weld19.Parent = Part18
  259. Weld19.C0 = CFrame.new(-1.29999995, 1.16840947, 0.750634551, 1, 3.41111408e-05, -2.64397204e-05, -2.64397204e-05, 0.96840477, 0.249382511, 3.41111408e-05, -0.249382511, 0.96840477)
  260. Weld19.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  261. Weld19.Part0 = Part28
  262. Weld19.Part1 = Part18
  263. Weld20.Name = "RightGrip"
  264. Weld20.Parent = Part18
  265. Weld20.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  266. Weld20.C1 = CFrame.new(0, -0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  267. Weld20.Part0 = Part18
  268. Weld20.Part1 = Part57
  269. Part21.Name = "Left Leg"
  270. Part21.Parent = Model0
  271. Part21.Material = Enum.Material.SmoothPlastic
  272. Part21.BrickColor = BrickColor.new("Pastel brown")
  273. Part21.Rotation = Vector3.new(-180, 0.0199999996, -180)
  274. Part21.Elasticity = 0
  275. Part21.FormFactor = Enum.FormFactor.Symmetric
  276. Part21.Friction = 2
  277. Part21.Size = Vector3.new(1, 2, 1)
  278. Part21.CFrame = CFrame.new(-1.75453007, 1.00008035, -119.720963, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  279. Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  280. Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  281. Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  282. Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  283. Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  284. Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  285. Part21.Color = Color3.new(1, 0.8, 0.6)
  286. Part21.Position = Vector3.new(-1.75453007, 1.00008035, -119.720963)
  287. Part21.Orientation = Vector3.new(0, 179.979996, 0)
  288. Part21.Color = Color3.new(1, 0.8, 0.6)
  289. Part22.Name = "Right Leg"
  290. Part22.Parent = Model0
  291. Part22.Material = Enum.Material.SmoothPlastic
  292. Part22.BrickColor = BrickColor.new("Pastel brown")
  293. Part22.Rotation = Vector3.new(-180, 0.0199999996, -180)
  294. Part22.Elasticity = 0
  295. Part22.FormFactor = Enum.FormFactor.Symmetric
  296. Part22.Friction = 2
  297. Part22.Size = Vector3.new(1, 2, 1)
  298. Part22.CFrame = CFrame.new(-2.75453281, 1.0000875, -119.721237, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  299. Part22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Part22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Part22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  302. Part22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  303. Part22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  304. Part22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  305. Part22.Color = Color3.new(1, 0.8, 0.6)
  306. Part22.Position = Vector3.new(-2.75453281, 1.0000875, -119.721237)
  307. Part22.Orientation = Vector3.new(0, 179.979996, 0)
  308. Part22.Color = Color3.new(1, 0.8, 0.6)
  309. Humanoid23.Parent = Model0
  310. Humanoid23.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  311. Humanoid23.HealthDisplayDistance = 0
  312. Humanoid23.NameDisplayDistance = 0
  313. Humanoid23.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  314. Humanoid23.RightLeg = Part22
  315. Humanoid23.LeftLeg = Part21
  316. Humanoid23.Torso = Part26
  317. Humanoid23.Health = 500
  318. Humanoid23.MaxHealth = 500
  319. Model24.Name = "Status"
  320. Model24.Parent = Humanoid23
  321. Model25.Name = "AvalibleSpawns"
  322. Model25.Parent = Model24
  323. Part26.Name = "HumanoidRootPart"
  324. Part26.Parent = Model0
  325. Part26.Material = Enum.Material.SmoothPlastic
  326. Part26.BrickColor = BrickColor.new("Bright blue")
  327. Part26.Transparency = 1
  328. Part26.Rotation = Vector3.new(-180, 0.0199999996, -180)
  329. Part26.CanCollide = false
  330. Part26.Elasticity = 0
  331. Part26.FormFactor = Enum.FormFactor.Symmetric
  332. Part26.Friction = 0
  333. Part26.Size = Vector3.new(2, 2, 1)
  334. Part26.CFrame = CFrame.new(-2.25451708, 3.00008392, -119.720947, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  335. Part26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  336. Part26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  337. Part26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  338. Part26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  339. Part26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  340. Part26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  341. Part26.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  342. Part26.Position = Vector3.new(-2.25451708, 3.00008392, -119.720947)
  343. Part26.Orientation = Vector3.new(0, 179.979996, 0)
  344. Part26.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  345. Motor6D27.Name = "RootJoint"
  346. Motor6D27.Parent = Part26
  347. Motor6D27.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  348. Motor6D27.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  349. Motor6D27.Part0 = Part26
  350. Motor6D27.Part1 = Part8
  351. Motor6D27.MaxVelocity = 0.10000000149012
  352. Part28.Name = "Knife"
  353. Part28.Parent = Model0
  354. Part28.Material = Enum.Material.Metal
  355. Part28.BrickColor = BrickColor.new("Mid gray")
  356. Part28.Transparency = 1
  357. Part28.Rotation = Vector3.new(165.559998, 0.00999999978, -179.98999)
  358. Part28.CanCollide = false
  359. Part28.Elasticity = 0
  360. Part28.FormFactor = Enum.FormFactor.Custom
  361. Part28.Friction = 2
  362. Part28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  363. Part28.CFrame = CFrame.new(-3.55481315, 2.05576086, -118.703041, -1.00000262, 0.000102164006, 0.000231252649, 4.12849949e-05, 0.968424022, -0.249307781, -0.000249421137, -0.249308422, -0.968426585)
  364. Part28.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  365. Part28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  366. Part28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  367. Part28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  368. Part28.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  369. Part28.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  370. Part28.Color = Color3.new(0.803922, 0.803922, 0.803922)
  371. Part28.Position = Vector3.new(-3.55481315, 2.05576086, -118.703041)
  372. Part28.Orientation = Vector3.new(14.4399996, 179.98999, 0)
  373. Part28.Color = Color3.new(0.803922, 0.803922, 0.803922)
  374. Sound29.Name = "Hit1"
  375. Sound29.Parent = Part28
  376. Sound29.SoundId = "http://www.roblox.com/Asset?ID=186311262"
  377. Sound29.Volume = 1
  378. Sound30.Name = "Swing"
  379. Sound30.Parent = Part28
  380. Sound30.Pitch = 1.1000000238419
  381. Sound30.SoundId = "rbxassetid://153647529"
  382. Sound30.Volume = 1
  383. Sound31.Name = "Hit3"
  384. Sound31.Parent = Part28
  385. Sound31.SoundId = "http://www.roblox.com/Asset?ID=186311262"
  386. Sound31.Volume = 1
  387. Sound32.Name = "Hit2"
  388. Sound32.Parent = Part28
  389. Sound32.SoundId = "http://www.roblox.com/Asset?ID=186311262"
  390. Sound32.Volume = 1
  391. SpecialMesh33.Name = "Knife Mesh"
  392. SpecialMesh33.Parent = Part28
  393. SpecialMesh33.MeshId = "rbxassetid://165710339"
  394. SpecialMesh33.Scale = Vector3.new(0.5, 0.5, 0.699999988)
  395. SpecialMesh33.TextureId = "http://www.roblox.com/asset/?id=338106795"
  396. SpecialMesh33.MeshType = Enum.MeshType.FileMesh
  397. SpecialMesh33.Scale = Vector3.new(0.5, 0.5, 0.699999988)
  398. Script34.Name = "Health"
  399. Script34.Parent = Model0
  400. table.insert(cors,sandbox(Script34,function()
  401. --Responsible for regening a player's humanoid's health
  402.  
  403. -- declarations
  404. local Figure = script.Parent
  405. local Head = Figure:WaitForChild("Head")
  406. local Humanoid;
  407. for _,Child in pairs(Figure:GetChildren())do
  408. if Child and Child.ClassName=="Humanoid"then
  409. Humanoid=Child;
  410. end;
  411. end;
  412. local regening = false
  413.  
  414. -- regeneration
  415. function regenHealth()
  416. if regening then return end
  417. regening = true
  418.  
  419. while Humanoid.Health < Humanoid.MaxHealth do
  420. local s = wait(1)
  421. local health = Humanoid.Health
  422. if health~=0 and health < Humanoid.MaxHealth then
  423. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  424. health = health + newHealthDelta
  425. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  426. end
  427. end
  428.  
  429. if Humanoid.Health > Humanoid.MaxHealth then
  430. Humanoid.Health = Humanoid.MaxHealth
  431. end
  432.  
  433. regening = false
  434. end
  435.  
  436. Humanoid.HealthChanged:connect(regenHealth)
  437.  
  438. end))
  439. Script35.Name = "AnimateSauce"
  440. Script35.Parent = Model0
  441. table.insert(cors,sandbox(Script35,function()
  442. function waitForChild(parent, childName)
  443. local child = parent:findFirstChild(childName)
  444. if child then return child end
  445. while true do
  446. child = parent.ChildAdded:wait()
  447. if child.Name==childName then return child end
  448. end
  449. end
  450. local Figure = script.Parent
  451. local Torso = waitForChild(Figure, "Torso")
  452. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  453. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  454. local RightHip = waitForChild(Torso, "Right Hip")
  455. local LeftHip = waitForChild(Torso, "Left Hip")
  456. local Neck = waitForChild(Torso, "Neck")
  457. local Humanoid;
  458. for _,Child in pairs(Figure:GetChildren())do
  459. if Child and Child.ClassName=="Humanoid"then
  460. Humanoid=Child;
  461. end;
  462. end;
  463. local pose = "Standing"
  464. local currentAnim = ""
  465. local currentAnimInstance = nil
  466. local currentAnimTrack = nil
  467. local currentAnimKeyframeHandler = nil
  468. local currentAnimSpeed = 1.0
  469. local animTable = {}
  470. local animNames = {
  471. idle = {
  472. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  473. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  474. },
  475. walk = {
  476. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  477. },
  478. run = {
  479. { id = "http://www.roblox.com/asset/?id=252557606", weight = 20 }
  480. },
  481. jump = {
  482. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  483. },
  484. fall = {
  485. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  486. },
  487. climb = {
  488. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  489. },
  490. sit = {
  491. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  492. },
  493. toolnone = {
  494. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  495. },
  496. toolslash = {
  497. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  498. --{ id = "slash.xml", weight = 10 }
  499. },
  500. toollunge = {
  501. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  502. },
  503. wave = {
  504. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  505. },
  506. point = {
  507. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  508. },
  509. dance1 = {
  510. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  511. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  512. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  513. },
  514. dance2 = {
  515. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  516. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  517. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  518. },
  519. dance3 = {
  520. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  521. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  522. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  523. },
  524. laugh = {
  525. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  526. },
  527. cheer = {
  528. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  529. },
  530. }
  531. local dances = {"dance1", "dance2", "dance3"}
  532.  
  533. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  534. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  535.  
  536. function configureAnimationSet(name, fileList)
  537. if (animTable[name] ~= nil) then
  538. for _, connection in pairs(animTable[name].connections) do
  539. connection:disconnect()
  540. end
  541. end
  542. animTable[name] = {}
  543. animTable[name].count = 0
  544. animTable[name].totalWeight = 0
  545. animTable[name].connections = {}
  546.  
  547. -- check for config values
  548. local config = script:FindFirstChild(name)
  549. if (config ~= nil) then
  550. --print("Loading anims " .. name)
  551. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  552. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  553. local idx = 1
  554. for _, childPart in pairs(config:GetChildren()) do
  555. if (childPart:IsA("Animation")) then
  556. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  557. animTable[name][idx] = {}
  558. animTable[name][idx].anim = childPart
  559. local weightObject = childPart:FindFirstChild("Weight")
  560. if (weightObject == nil) then
  561. animTable[name][idx].weight = 1
  562. else
  563. animTable[name][idx].weight = weightObject.Value
  564. end
  565. animTable[name].count = animTable[name].count + 1
  566. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  567. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  568. idx = idx + 1
  569. end
  570. end
  571. end
  572.  
  573. -- fallback to defaults
  574. if (animTable[name].count <= 0) then
  575. for idx, anim in pairs(fileList) do
  576. animTable[name][idx] = {}
  577. animTable[name][idx].anim = Instance.new("Animation")
  578. animTable[name][idx].anim.Name = name
  579. animTable[name][idx].anim.AnimationId = anim.id
  580. animTable[name][idx].weight = anim.weight
  581. animTable[name].count = animTable[name].count + 1
  582. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  583. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  584. end
  585. end
  586. end
  587.  
  588. -- Setup animation objects
  589. function scriptChildModified(child)
  590. local fileList = animNames[child.Name]
  591. if (fileList ~= nil) then
  592. configureAnimationSet(child.Name, fileList)
  593. end
  594. end
  595.  
  596. script.ChildAdded:connect(scriptChildModified)
  597. script.ChildRemoved:connect(scriptChildModified)
  598.  
  599.  
  600. for name, fileList in pairs(animNames) do
  601. configureAnimationSet(name, fileList)
  602. end
  603.  
  604. -- ANIMATION
  605.  
  606. -- declarations
  607. local toolAnim = "None"
  608. local toolAnimTime = 0
  609.  
  610. local jumpAnimTime = 0
  611. local jumpAnimDuration = 0.3
  612.  
  613. local toolTransitionTime = 0.1
  614. local fallTransitionTime = 0.3
  615. local jumpMaxLimbVelocity = 0.75
  616.  
  617. -- functions
  618.  
  619. function stopAllAnimations()
  620. local oldAnim = currentAnim
  621.  
  622. -- return to idle if finishing an emote
  623. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  624. oldAnim = "idle"
  625. end
  626.  
  627. currentAnim = ""
  628. currentAnimInstance = nil
  629. if (currentAnimKeyframeHandler ~= nil) then
  630. currentAnimKeyframeHandler:disconnect()
  631. end
  632.  
  633. if (currentAnimTrack ~= nil) then
  634. currentAnimTrack:Stop()
  635. currentAnimTrack:Destroy()
  636. currentAnimTrack = nil
  637. end
  638. return oldAnim
  639. end
  640.  
  641. function setAnimationSpeed(speed)
  642. if speed ~= currentAnimSpeed then
  643. currentAnimSpeed = speed
  644. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  645. end
  646. end
  647.  
  648. function keyFrameReachedFunc(frameName)
  649. if (frameName == "End") then
  650.  
  651. local repeatAnim = currentAnim
  652. -- return to idle if finishing an emote
  653. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  654. repeatAnim = "idle"
  655. end
  656.  
  657. local animSpeed = currentAnimSpeed
  658. playAnimation(repeatAnim, 0.0, Humanoid)
  659. setAnimationSpeed(animSpeed)
  660. end
  661. end
  662.  
  663. -- Preload animations
  664. function playAnimation(animName, transitionTime, humanoid)
  665.  
  666. local roll = math.random(1, animTable[animName].totalWeight)
  667. local origRoll = roll
  668. local idx = 1
  669. while (roll > animTable[animName][idx].weight) do
  670. roll = roll - animTable[animName][idx].weight
  671. idx = idx + 1
  672. end
  673. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  674. local anim = animTable[animName][idx].anim
  675. -- switch animation
  676. if (anim ~= currentAnimInstance) then
  677. if (currentAnimTrack ~= nil) then
  678. currentAnimTrack:Stop(transitionTime)
  679. currentAnimTrack:Destroy()
  680. end
  681. currentAnimSpeed = 1.0
  682. -- load it to the humanoid; get AnimationTrack
  683. currentAnimTrack = humanoid:LoadAnimation(anim)
  684. -- play the animation
  685. currentAnimTrack:Play(transitionTime)
  686. currentAnim = animName
  687. currentAnimInstance = anim
  688. -- set up keyframe name triggers
  689. if (currentAnimKeyframeHandler ~= nil) then
  690. currentAnimKeyframeHandler:disconnect()
  691. end
  692. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  693. end
  694. end
  695. -------------------------------------------------------------------------------------------
  696. -------------------------------------------------------------------------------------------
  697. local toolAnimName = ""
  698. local toolAnimTrack = nil
  699. local toolAnimInstance = nil
  700. local currentToolAnimKeyframeHandler = nil
  701. function toolKeyFrameReachedFunc(frameName)
  702. if (frameName == "End") then
  703. --print("Keyframe : ".. frameName)
  704. playToolAnimation(toolAnimName, 0.0, Humanoid)
  705. end
  706. end
  707. function playToolAnimation(animName, transitionTime, humanoid)
  708. local roll = math.random(1, animTable[animName].totalWeight)
  709. local origRoll = roll
  710. local idx = 1
  711. while (roll > animTable[animName][idx].weight) do
  712. roll = roll - animTable[animName][idx].weight
  713. idx = idx + 1
  714. end
  715. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  716. local anim = animTable[animName][idx].anim
  717. if (toolAnimInstance ~= anim) then
  718. if (toolAnimTrack ~= nil) then
  719. toolAnimTrack:Stop()
  720. toolAnimTrack:Destroy()
  721. transitionTime = 0
  722. end
  723. -- load it to the humanoid; get AnimationTrack
  724. toolAnimTrack = humanoid:LoadAnimation(anim)
  725. -- play the animation
  726. toolAnimTrack:Play(transitionTime)
  727. toolAnimName = animName
  728. toolAnimInstance = anim
  729. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  730. end
  731. end
  732. function stopToolAnimations()
  733. local oldAnim = toolAnimName
  734. if (currentToolAnimKeyframeHandler ~= nil) then
  735. currentToolAnimKeyframeHandler:disconnect()
  736. end
  737. toolAnimName = ""
  738. toolAnimInstance = nil
  739. if (toolAnimTrack ~= nil) then
  740. toolAnimTrack:Stop()
  741. toolAnimTrack:Destroy()
  742. toolAnimTrack = nil
  743. end
  744. return oldAnim
  745. end
  746. -------------------------------------------------------------------------------------------
  747. -------------------------------------------------------------------------------------------
  748. function onRunning(speed)
  749. if speed>0.01 then
  750. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  751. playAnimation("walk", 0.1, Humanoid);
  752. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  753. playAnimation("run", 0.1, Humanoid);
  754. end;
  755. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  756. setAnimationSpeed(speed / 14.5)
  757. end
  758. pose = "Running"
  759. else
  760. playAnimation("idle", 0.1, Humanoid)
  761. pose = "Standing"
  762. end
  763. end
  764. function onDied()
  765. pose = "Dead"
  766. end
  767. function onJumping()
  768. playAnimation("jump", 0.1, Humanoid)
  769. jumpAnimTime = jumpAnimDuration
  770. pose = "Jumping"
  771. end
  772. function onClimbing(speed)
  773. playAnimation("climb", 0.1, Humanoid)
  774. setAnimationSpeed(speed / 12.0)
  775. pose = "Climbing"
  776. end
  777. function onGettingUp()
  778. pose = "GettingUp"
  779. end
  780. function onFreeFall()
  781. if (jumpAnimTime <= 0) then
  782. playAnimation("fall", fallTransitionTime, Humanoid)
  783. end
  784. pose = "FreeFall"
  785. end
  786. function onFallingDown()
  787. pose = "FallingDown"
  788. end
  789. function onSeated()
  790. pose = "Seated"
  791. end
  792. function onPlatformStanding()
  793. pose = "PlatformStanding"
  794. end
  795. function onSwimming(speed)
  796. if speed>0 then
  797. pose = "Running"
  798. else
  799. pose = "Standing"
  800. end
  801. end
  802.  
  803. function getTool()
  804. for _, kid in ipairs(Figure:GetChildren()) do
  805. if kid.className == "Tool" then return kid end
  806. end
  807. return nil
  808. end
  809.  
  810. function getToolAnim(tool)
  811. for _, c in ipairs(tool:GetChildren()) do
  812. if c.Name == "toolanim" and c.className == "StringValue" then
  813. return c
  814. end
  815. end
  816. return nil
  817. end
  818.  
  819. function animateTool()
  820.  
  821. if (toolAnim == "None") then
  822. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  823. return
  824. end
  825.  
  826. if (toolAnim == "Slash") then
  827. playToolAnimation("toolslash", 0, Humanoid)
  828. return
  829. end
  830.  
  831. if (toolAnim == "Lunge") then
  832. playToolAnimation("toollunge", 0, Humanoid)
  833. return
  834. end
  835. end
  836.  
  837. function moveSit()
  838. RightShoulder.MaxVelocity = 0.15
  839. LeftShoulder.MaxVelocity = 0.15
  840. RightShoulder:SetDesiredAngle(3.14 /2)
  841. LeftShoulder:SetDesiredAngle(-3.14 /2)
  842. RightHip:SetDesiredAngle(3.14 /2)
  843. LeftHip:SetDesiredAngle(-3.14 /2)
  844. end
  845.  
  846. local lastTick = 0
  847.  
  848. function move(time)
  849. local amplitude = 1
  850. local frequency = 1
  851. local deltaTime = time - lastTick
  852. lastTick = time
  853.  
  854. local climbFudge = 0
  855. local setAngles = false
  856.  
  857. if (jumpAnimTime > 0) then
  858. jumpAnimTime = jumpAnimTime - deltaTime
  859. end
  860.  
  861. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  862. playAnimation("fall", fallTransitionTime, Humanoid)
  863. elseif (pose == "Seated") then
  864. playAnimation("sit", 0.5, Humanoid)
  865. return
  866. elseif (pose == "Running") then
  867. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  868. playAnimation("walk", 0.1, Humanoid);
  869. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  870. playAnimation("run", 0.1, Humanoid);
  871. end;
  872. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  873. stopAllAnimations()
  874. amplitude = 0.1
  875. frequency = 1
  876. setAngles = true
  877. end
  878. if (setAngles) then
  879. local desiredAngle = amplitude * math.sin(time * frequency)
  880. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  881. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  882. RightHip:SetDesiredAngle(-desiredAngle)
  883. LeftHip:SetDesiredAngle(-desiredAngle)
  884. end
  885. -- Tool Animation handling
  886. local tool = getTool()
  887. if tool and tool:FindFirstChild("Handle") then
  888. local animStringValueObject = getToolAnim(tool)
  889. if animStringValueObject then
  890. toolAnim = animStringValueObject.Value
  891. -- message recieved, delete StringValue
  892. animStringValueObject.Parent = nil
  893. toolAnimTime = time + .3
  894. end
  895. if time > toolAnimTime then
  896. toolAnimTime = 0
  897. toolAnim = "None"
  898. end
  899. animateTool()
  900. else
  901. stopToolAnimations()
  902. toolAnim = "None"
  903. toolAnimInstance = nil
  904. toolAnimTime = 0
  905. end
  906. end
  907. -- connect events
  908. Humanoid.Died:connect(onDied)
  909. Humanoid.Running:connect(onRunning)
  910. Humanoid.Jumping:connect(onJumping)
  911. Humanoid.Climbing:connect(onClimbing)
  912. Humanoid.GettingUp:connect(onGettingUp)
  913. Humanoid.FreeFalling:connect(onFreeFall)
  914. Humanoid.FallingDown:connect(onFallingDown)
  915. Humanoid.Seated:connect(onSeated)
  916. Humanoid.PlatformStanding:connect(onPlatformStanding)
  917. Humanoid.Swimming:connect(onSwimming)
  918. local runService = game:GetService("RunService");
  919. playAnimation("idle", 0.1, Humanoid)
  920. pose = "Standing"
  921. while Wait(0)do
  922. local _,time=wait(0)
  923. move(time)
  924. end
  925. end))
  926. StringValue36.Name = "climb"
  927. StringValue36.Parent = Script35
  928. Animation37.Name = "ClimbAnim"
  929. Animation37.Parent = StringValue36
  930. Animation37.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  931. StringValue38.Name = "fall"
  932. StringValue38.Parent = Script35
  933. Animation39.Name = "FallAnim"
  934. Animation39.Parent = StringValue38
  935. Animation39.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  936. StringValue40.Name = "idle"
  937. StringValue40.Parent = Script35
  938. Animation41.Name = "Animation1"
  939. Animation41.Parent = StringValue40
  940. Animation41.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  941. NumberValue42.Name = "Weight"
  942. NumberValue42.Parent = Animation41
  943. NumberValue42.Value = 9
  944. Animation43.Name = "Animation2"
  945. Animation43.Parent = StringValue40
  946. Animation43.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  947. NumberValue44.Name = "Weight"
  948. NumberValue44.Parent = Animation43
  949. NumberValue44.Value = 1
  950. StringValue45.Name = "jump"
  951. StringValue45.Parent = Script35
  952. Animation46.Name = "JumpAnim"
  953. Animation46.Parent = StringValue45
  954. Animation46.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  955. StringValue47.Name = "run"
  956. StringValue47.Parent = Script35
  957. Animation48.Name = "RunAnim"
  958. Animation48.Parent = StringValue47
  959. Animation48.AnimationId = "http://www.roblox.com/asset/?id=252557606"
  960. StringValue49.Name = "sit"
  961. StringValue49.Parent = Script35
  962. Animation50.Name = "SitAnim"
  963. Animation50.Parent = StringValue49
  964. Animation50.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  965. StringValue51.Name = "toolnone"
  966. StringValue51.Parent = Script35
  967. Animation52.Name = "ToolNoneAnim"
  968. Animation52.Parent = StringValue51
  969. Animation52.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  970. StringValue53.Name = "walk"
  971. StringValue53.Parent = Script35
  972. Animation54.Name = "WalkAnim"
  973. Animation54.Parent = StringValue53
  974. Animation54.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  975. Animation55.Name = "Swing"
  976. Animation55.Parent = Model0
  977. Animation55.AnimationId = "http://www.roblox.com/Asset?ID=96559161"
  978. Tool56.Name = "Knife"
  979. Tool56.Parent = Model0
  980. Tool56.TextureId = "http://www.roblox.com/asset/?id=155344898"
  981. Tool56.GripPos = Vector3.new(0, -0.800000012, 0)
  982. Part57.Name = "Handle"
  983. Part57.Parent = Tool56
  984. Part57.BrickColor = BrickColor.new("Really black")
  985. Part57.Rotation = Vector3.new(-90, 0, 179.979996)
  986. Part57.CanCollide = false
  987. Part57.FormFactor = Enum.FormFactor.Custom
  988. Part57.Size = Vector3.new(0.400000006, 3, 0.800000012)
  989. Part57.CFrame = CFrame.new(-3.75474882, 2.0000329, -118.921432, -1.00000262, -0.000275864091, 7.15458737e-06, 7.17589546e-06, -7.71678751e-05, 1, -0.000275863538, 1.00000262, 7.71696868e-05)
  990. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  991. Part57.Position = Vector3.new(-3.75474882, 2.0000329, -118.921432)
  992. Part57.Orientation = Vector3.new(-90, 179.979996, 0)
  993. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  994. Sound58.Parent = Part57
  995. Sound58.SoundId = "rbxassetid://153647514"
  996. Sound58.Volume = 1
  997. FileMesh59.Parent = Part57
  998. FileMesh59.MeshId = "http://www.roblox.com/asset/?id=121944778"
  999. FileMesh59.TextureId = "http://www.roblox.com/asset/?id=144012212"
  1000. ScreenGui60.Parent = Tool56
  1001. TextLabel61.Name = "Devs"
  1002. TextLabel61.Parent = ScreenGui60
  1003. TextLabel61.Size = UDim2.new(0, 175, 0, 20)
  1004. TextLabel61.Text = "Knife Scripted by Cryme Studios"
  1005. TextLabel61.Position = UDim2.new(0.00999999978, 0, 0.899999976, 0)
  1006. TextLabel61.BackgroundColor3 = Color3.new(0, 0, 0)
  1007. TextLabel61.BorderColor3 = Color3.new(0.027451, 1, 0.482353)
  1008. TextLabel61.BorderSizePixel = 2
  1009. TextLabel61.Font = Enum.Font.SourceSans
  1010. TextLabel61.FontSize = Enum.FontSize.Size14
  1011. TextLabel61.TextColor3 = Color3.new(0.0823529, 1, 0.494118)
  1012. TextLabel61.TextTransparency = 1
  1013. LocalScript62.Name = "FirstPersonArms"
  1014. LocalScript62.Parent = Tool56
  1015. table.insert(cors,sandbox(LocalScript62,function()
  1016. wait(0.2)
  1017. local player=game.Players.LocalPlayer
  1018. local camera=workspace.CurrentCamera
  1019. local tool=script.Parent
  1020. local char=player.Character
  1021. local humanoid=char:WaitForChild("Humanoid")
  1022. SETTINGS={
  1023.  
  1024. FIRST_PERSON={
  1025. left_arm=true, --if left arm is Enabled
  1026. right_arm=true, --If right arm is Enabled
  1027. arm_transparency=0.5, --The transparency of the Arms
  1028. arm_color=BrickColor.new("Really black"), --The colo(u)r of the arms, If below is set to true, This will be the BrickColor of the Arms.
  1029. change_color=false, --Changes the colo(u)r of the arms, If false, Will set them as the Players arm colo(u)r
  1030. add_shirt=true, --If true, add's the Character's shirt to the Arms--
  1031. },
  1032.  
  1033. }
  1034.  
  1035. function FirstPerson()
  1036. if (camera.focus.p - camera.CoordinateFrame.p).magnitude > 1 then
  1037. return false
  1038. else
  1039. return true
  1040. end
  1041. end
  1042. function Start()
  1043. anim_arms=Instance.new("Model")
  1044. anim_arms.Name="Arms_Model"
  1045. local Shirt=player.Character:FindFirstChild("Shirt")
  1046. if Shirt then
  1047. Shirt:clone().Parent=anim_arms
  1048. Instance.new("Humanoid",anim_arms)
  1049. end
  1050. local r,l = char:FindFirstChild("Right Arm"):clone(), char:FindFirstChild("Left Arm"):clone()
  1051. if r and SETTINGS.FIRST_PERSON.right_arm then
  1052. r.Transparency=SETTINGS.FIRST_PERSON.arm_transparency
  1053. r.Material=Enum.Material.SmoothPlastic
  1054. if SETTINGS.FIRST_PERSON.change_color then
  1055. r.BrickColor=SETTINGS.FIRST_PERSON.arm_color
  1056. end
  1057. end
  1058. if l and SETTINGS.FIRST_PERSON.left_arm then
  1059. l.Transparency=SETTINGS.FIRST_PERSON.arm_transparency
  1060. l.Material=Enum.Material.SmoothPlastic
  1061. if SETTINGS.FIRST_PERSON.change_color then
  1062. l.BrickColor=SETTINGS.FIRST_PERSON.arm_color
  1063. end
  1064. end
  1065. local rw,lw = Instance.new("Weld"),Instance.new("Weld")
  1066. if rw and SETTINGS.FIRST_PERSON.right_arm then
  1067. rw.Part0=r
  1068. rw.Part1=char:FindFirstChild("Right Arm")
  1069. rw.Parent=r
  1070. r.Parent=anim_arms
  1071. end
  1072. if lw and SETTINGS.FIRST_PERSON.left_arm then
  1073. lw.Part0=l
  1074. lw.Part1=char:FindFirstChild("Left Arm")
  1075. lw.Parent=l
  1076. l.Parent=anim_arms
  1077. end
  1078. l.CanCollide=false
  1079. r.CanCollide=false
  1080. if SETTINGS.FIRST_PERSON.right_arm then
  1081. if r:FindFirstChild("RightGrip")~=nil then r:FindFirstChild("RightGrip"):Destroy() end
  1082. end
  1083. if tool.Handle:FindFirstChild("Mesh") ~= nil then tool.Handle.Mesh:Destroy() end
  1084. while equipped do
  1085. if FirstPerson() then
  1086. if anim_arms ~= nil then
  1087. anim_arms.Parent=camera
  1088. humanoid.CameraOffset = Vector3.new(0, -0.2, -0.5)
  1089. end
  1090. else
  1091. if anim_arms ~= nil then
  1092. anim_arms.Parent=nil
  1093. humanoid.CameraOffset = Vector3.new(0,0,0)
  1094. end
  1095. end
  1096. wait()
  1097. end
  1098. end
  1099. function End()
  1100. anim_arms:Destroy()
  1101. anim_arms=nil
  1102. humanoid.CameraOffset = Vector3.new(0,0,0)
  1103. end
  1104.  
  1105. tool.Equipped:connect(function ()
  1106. equipped=true
  1107. Start()
  1108. end)
  1109. tool.Unequipped:connect(function ()
  1110. equipped=false
  1111. End()
  1112. end)
  1113. end))
  1114. LocalScript63.Name = "Module"
  1115. LocalScript63.Parent = Tool56
  1116. table.insert(cors,sandbox(LocalScript63,function()
  1117. -- Knife script
  1118. -- By Cryme studios
  1119. -- Help from MatrixComplexity
  1120. wait(.2)
  1121.  
  1122.  
  1123. local tool=script.Parent
  1124. local player=game.Players.LocalPlayer
  1125. local char=player.Character
  1126. local humanoid=char:FindFirstChild("Humanoid")
  1127. local camera=workspace.CurrentCamera
  1128. local rightC1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  1129. local leftC1 = CFrame.new(0, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  1130. local mouse=player:GetMouse()
  1131. local equipping=false
  1132. local gettingknife=false
  1133. local playcharge=false
  1134. local justthrown=false
  1135. local justattacked=false
  1136. local thrownkniferotation=0
  1137. local Damage=110
  1138. local Attacking=false
  1139. local handle=nil
  1140. local WalkSpeeds={16,20}
  1141.  
  1142. SOUNDS={
  1143. throwing={"153647554","153647549"},
  1144. striking={"153647529","153647534","153647539","153647540"},
  1145. equip="153647514",
  1146. wallhit={"153647563","153647564"},
  1147. hitplayer={"153647516","153647519","153647522","153647526"},
  1148. deaths={"146594640","146457047","146594648"},
  1149. }
  1150.  
  1151. SETTINGS={
  1152.  
  1153. TOOL={
  1154. mesh_id="http://www.roblox.com/asset/?id=121944778",
  1155. mesh_type=Enum.MeshType.FileMesh,
  1156. texture_id="http://www.roblox.com/asset/?id=183076355 ",
  1157. mesh_offset=Vector3.new(0,0,0),
  1158. mesh_scale=.6,
  1159. tool_size=Vector3.new(0.2,0.2,0.2),
  1160. tool_transparency=0,
  1161. tool_color=BrickColor.Black(),
  1162. default_tool_size=0.6,
  1163. },
  1164.  
  1165. }
  1166.  
  1167. function DamageObject(hit)
  1168. local char=hit.Parent
  1169. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
  1170. local h=char:FindFirstChild("Humanoid")
  1171. if h and h.Health > 0 then
  1172. h:TakeDamage(Damage)
  1173. PlaySound("Hit1",char.Torso)
  1174. if h.Health == 0 then
  1175. PlaySound("Hit2",char.Torso)
  1176. end
  1177. end
  1178. end
  1179. end
  1180.  
  1181. function PlaySound(name,ctorso)
  1182. if name=="Throw" then
  1183. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.throwing[math.random(1,#SOUNDS.throwing)]
  1184. tool.Handle.Sound:Play()
  1185. elseif name=="Equip" then
  1186. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.equip
  1187. tool.Handle.Sound:Play()
  1188. elseif name=="Swing" then
  1189. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.striking[math.random(1,#SOUNDS.striking)]
  1190. tool.Handle.Sound:Play()
  1191. elseif name=="Hit1" then
  1192. local NewSound=tool.Handle.Sound:clone()
  1193. NewSound.Parent=ctorso
  1194. NewSound.SoundId = "rbxassetid://" .. SOUNDS.hitplayer[math.random(1,#SOUNDS.hitplayer)]
  1195. NewSound:Play()
  1196. NewSound:Destroy()
  1197. elseif name=="Hit2" then
  1198. local NewSound=tool.Handle.Sound:clone()
  1199. NewSound.Parent=ctorso
  1200. NewSound.SoundId = "rbxassetid://" .. SOUNDS.deaths[math.random(1,#SOUNDS.deaths)]
  1201. NewSound:Play()
  1202. NewSound:Destroy()
  1203. end
  1204. end
  1205.  
  1206. function ThrowTool(dPos)
  1207. if not tool.Handle then return end
  1208. local throwingHandle = tool.Handle:Clone()
  1209. game:GetService("Debris"):AddItem(throwingHandle, 5)
  1210. throwingHandle.Transparency=0
  1211. throwingHandle.Parent = workspace
  1212. if player.Character and player.Character.Humanoid then
  1213. throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * 135
  1214. if mouse.Target ~= nil then
  1215. if mouse.Target.Parent.Name~="Arms_Model" and mouse.Target.Name~="ThrownKnife" and mouse.Target.Name~="Handle" then
  1216. targetpos=player.Character.Humanoid.TargetPoint
  1217. else
  1218. targetpos=Vector3.new(0,-10,0)
  1219. end
  1220. end
  1221. -- set the orientation to the direction it is being thrown in
  1222. throwingHandle.CFrame = CFrame.new(throwingHandle.CFrame.p, throwingHandle.CFrame.p + throwingHandle.Velocity) * CFrame.Angles(0, 0, math.rad(-90))
  1223. local floatingForce = Instance.new('BodyForce', throwingHandle)
  1224. floatingForce.force = Vector3.new(0, 196.2 * throwingHandle:GetMass() * 0.98, 0)
  1225. local spin = Instance.new('BodyAngularVelocity', throwingHandle)
  1226. spin.angularvelocity = throwingHandle.CFrame:vectorToWorldSpace(Vector3.new(0, -400, 0))
  1227. spawnPos=player.Character.PrimaryPart.Position
  1228. spawnPos = spawnPos + dPos*1000000
  1229. end
  1230. if throwingHandle then
  1231. local touchedConn = throwingHandle.Touched:connect(function(hit)
  1232. local char=hit.Parent
  1233. camera.CameraSubject=humanoid
  1234. camera.CameraType=Enum.CameraType.Custom
  1235. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
  1236. local h=char:FindFirstChild("Humanoid")
  1237. if h and h.Health > 0 then
  1238. throwingHandle:Destroy()
  1239. if hit.Name~="Head" or hit.className=="Hat" then
  1240. h:TakeDamage(Damage)
  1241. PlaySound("Hit1",char.Torso)
  1242. if h.Health == 0 then
  1243. PlaySound("Hit2",char.Torso)
  1244. end
  1245. else
  1246. h:TakeDamage(Damage * 2)
  1247. print("Headshot!")
  1248. char.Head.Transparency=1
  1249. char.Head.CanCollide=false
  1250. if char.Head:FindFirstChild("face") then char.Head:FindFirstChild("face").Transparency=1 end
  1251. for _,v in pairs(char:GetChildren()) do
  1252. if v.className=="Hat" then
  1253. v:Destroy()
  1254. end
  1255. end
  1256. for i = 1, 7 do
  1257. local blood=Instance.new("Part")
  1258. blood.FormFactor="Custom"
  1259. blood.Size=Vector3.new(1,.2,1)
  1260. blood.BrickColor=BrickColor.Red()
  1261. blood.TopSurface=0
  1262. blood.BottomSurface=0
  1263. game:GetService("Debris"):AddItem(blood,5)
  1264. blood.Parent=workspace
  1265. blood.Position=char.Head.Position + Vector3.new(math.random(0.2,0.8),0,math.random(0.2,0.8))
  1266. end
  1267. local sound = Instance.new("Sound")
  1268. sound.SoundId = "rbxassetid://142347633"
  1269. sound.Parent=char.Head
  1270. sound.Pitch=1.1
  1271. sound:Play()
  1272. end
  1273. PlaySound("Hit1")
  1274. if h.Health == 0 then
  1275. PlaySound("Hit2")
  1276. end
  1277. elseif hit.Name~="Handle" or hit.Name~="IgnoreThrowingKnives" and hit.Parent.Name~="Arms_Model" and hit.CanCollide==false then
  1278. local sound=Instance.new("Sound")
  1279. sound.Parent=hit
  1280. sound.SoundId = "rbxassetid://" .. SOUNDS.wallhit[math.random(1,#SOUNDS.wallhit)]
  1281. sound:Play()
  1282. sound:Destroy()
  1283. print("Hit Object: " .. hit.Name)
  1284. local newknife=tool.Handle:clone()
  1285. newknife.Name="ThrownKnife"
  1286. newknife.CFrame = CFrame.new(spawnPos, spawnPos + dPos) * CFrame.Angles(math.pi/-2, 0, 0)
  1287. newknife.Position = targetpos
  1288. throwingHandle:Destroy()
  1289. newknife.Anchored=true
  1290. newknife.CanCollide=true
  1291. newknife.Transparency=0
  1292. newknife.Parent=workspace
  1293. wait(7)
  1294. for i=1,10 do
  1295. newknife.Transparency=i*.1
  1296. wait()
  1297. end
  1298. newknife:Destroy()
  1299. end
  1300. end
  1301. end)
  1302. end
  1303. end
  1304. -- must check if it still exists since we waited
  1305. if throwingHandle then
  1306. throwingHandle.CanCollide = true
  1307. end
  1308.  
  1309. FUNCTIONS={
  1310.  
  1311. CHECKFORFIRSTPERSON=function()
  1312. if (camera.focus.p - camera.CoordinateFrame.p).magnitude > 1 then
  1313. return false
  1314. else
  1315. return true
  1316. end
  1317. end,
  1318.  
  1319. ANIMS=function(state)
  1320. if state then
  1321. mouse.Icon="http://www.roblox.com/asset/?id=54019936"
  1322. --Start Animation
  1323. local mesh=Instance.new("FileMesh")
  1324. mesh.MeshId=SETTINGS.TOOL.mesh_id
  1325. mesh.TextureId=SETTINGS.TOOL.texture_id
  1326. mesh.Scale=Vector3.new(SETTINGS.TOOL.mesh_scale,SETTINGS.TOOL.mesh_scale,SETTINGS.TOOL.mesh_scale)
  1327. mesh.Parent=tool.Handle
  1328. if SETTINGS.TOOL.mesh_scale==.1 then
  1329. tool.GripPos = Vector3.new(0, -0.55, 0)
  1330. elseif SETTINGS.TOOL.mesh_scale==.2 then
  1331. tool.GripPos = Vector3.new(0, -0.6, 0)
  1332. elseif SETTINGS.TOOL.mesh_scale==.3 then
  1333. tool.GripPos = Vector3.new(0, -0.65, 0)
  1334. elseif SETTINGS.TOOL.mesh_scale==.4 then
  1335. tool.GripPos = Vector3.new(0, -0.7, 0)
  1336. elseif SETTINGS.TOOL.mesh_scale==.5 then
  1337. tool.GripPos = Vector3.new(0, -0.75, 0)
  1338. elseif SETTINGS.TOOL.mesh_scale==.6 then
  1339. tool.GripPos = Vector3.new(0, -0.8, 0)
  1340. elseif SETTINGS.TOOL.mesh_scale==.7 then
  1341. tool.GripPos = Vector3.new(0, -0.85, 0)
  1342. elseif SETTINGS.TOOL.mesh_scale==.8 then
  1343. tool.GripPos = Vector3.new(0, -0.9, 0)
  1344. elseif SETTINGS.TOOL.mesh_scale==.9 then
  1345. tool.GripPos = Vector3.new(0, -0.95, 0)
  1346. elseif SETTINGS.TOOL.mesh_scale==1 then
  1347. tool.GripPos = Vector3.new(0, -1, 0)
  1348. else
  1349. print("Invalid tool size! Set to default: " .. SETTINGS.TOOL.default_tool_size )
  1350. mesh.Scale=Vector3.new(SETTINGS.TOOL.default_tool_size,SETTINGS.TOOL.default_tool_size,SETTINGS.TOOL.default_tool_size)
  1351. if SETTINGS.TOOL.default_tool_size==.1 then
  1352. tool.GripPos = Vector3.new(0, -0.55, 0)
  1353. elseif SETTINGS.TOOL.default_tool_size==.2 then
  1354. tool.GripPos = Vector3.new(0, -0.6, 0)
  1355. elseif SETTINGS.TOOL.default_tool_size==.3 then
  1356. tool.GripPos = Vector3.new(0, -0.65, 0)
  1357. elseif SETTINGS.TOOL.default_tool_size==.4 then
  1358. tool.GripPos = Vector3.new(0, -0.7, 0)
  1359. elseif SETTINGS.TOOL.default_tool_size==.5 then
  1360. tool.GripPos = Vector3.new(0, -0.75, 0)
  1361. elseif SETTINGS.TOOL.default_tool_size==.6 then
  1362. tool.GripPos = Vector3.new(0, -0.8, 0)
  1363. elseif SETTINGS.TOOL.default_tool_size==.7 then
  1364. tool.GripPos = Vector3.new(0, -0.85, 0)
  1365. elseif SETTINGS.TOOL.default_tool_size==.8 then
  1366. tool.GripPos = Vector3.new(0, -0.9, 0)
  1367. elseif SETTINGS.TOOL.default_tool_size==.9 then
  1368. tool.GripPos = Vector3.new(0, -0.95, 0)
  1369. elseif SETTINGS.TOOL.default_tool_size==1 then
  1370. tool.GripPos = Vector3.new(0, -1, 0)
  1371. else
  1372. print("Invalid default size! Un-equipping and removing Knife...")
  1373. if humanoid then
  1374. humanoid:UnequipTools()
  1375. tool:Destroy()
  1376. end
  1377. end
  1378. end
  1379. torso=char:FindFirstChild("Torso")
  1380. leftarm=torso:FindFirstChild("Left Shoulder")
  1381. if leftarm then
  1382. leftarm.Parent=nil
  1383. newarmweld=Instance.new("Weld")
  1384. newarmweld.Name="LeftWeld"
  1385. newarmweld.Part0=torso
  1386. newarmweld.C0 = CFrame.new(-1.5, 0.7, 0)
  1387. newarmweld.C1 = CFrame.new(0, 0.7, 0)
  1388. newarmweld.Part1=char:FindFirstChild("Left Arm")
  1389. newarmweld.Parent=torso
  1390. end
  1391. humanoid.WalkSpeed=WalkSpeeds[2]
  1392. for i = 1, 15, 3 do
  1393. if equipped then
  1394. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1395. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1396. end
  1397. wait()
  1398. end
  1399. else
  1400. humanoid.WalkSpeed=WalkSpeeds[1]
  1401. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.new(0,-0.2,0)
  1402. tool.GripForward = Vector3.new(0,0,-1)
  1403. newarmweld:Destroy()
  1404. leftarm.Parent=torso
  1405. mouse.Icon=""
  1406. torso:FindFirstChild("Neck").C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1407. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1408. end
  1409. end
  1410. }
  1411.  
  1412. tool.Equipped:connect(function ()
  1413. equipped=true
  1414. PlaySound("Equip")
  1415. FUNCTIONS.ANIMS(true)
  1416. script.Parent.ScreenGui:clone().Parent = player.PlayerGui
  1417. end)
  1418. tool.Unequipped:connect(function ()
  1419. equipped=false
  1420. FUNCTIONS.ANIMS(false)
  1421. player.PlayerGui.ScreenGui:Destroy()
  1422. end)
  1423. tool.Handle.Touched:connect(function (hit)
  1424. if Attacking then
  1425. DamageObject(hit)
  1426. end
  1427. end)
  1428. tool.Activated:connect(function ()
  1429. if Attacking then return end
  1430. if not tool.Enabled then return end
  1431. justthrown=false
  1432. justattacked=false
  1433. if not gettingknife and not justthrown and not Attacking then
  1434. HeldTime=time()
  1435. end
  1436. playcharge=true
  1437. wait(.15)
  1438. while gettingknife do
  1439. wait()
  1440. end
  1441. for i = 1, 15, 0.2 do
  1442. if playcharge and equipped and not gettingknife and not justthrown and not Attacking then
  1443. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 50)), 0, (-i * (math.pi / 25)))
  1444. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  1445. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0.05, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.Angles((-i * (math.pi / 150)),0,0)
  1446. wait()
  1447. end
  1448. end
  1449. end)
  1450. tool.Deactivated:connect(function ()
  1451. if not tool.Enabled then return end
  1452. currTime=time()
  1453. playcharge=false
  1454. if HeldTime and currTime - HeldTime > 0.2 and
  1455. currTime - HeldTime > 0.01 and not justthrown and not gettingknife then
  1456. if not Attacking and not justattacked then
  1457. print("Throw")
  1458. PlaySound("Throw")
  1459. tool.Handle.Transparency=1
  1460. local targetPos = player.Character.Humanoid.TargetPoint
  1461. local lookAt = (targetPos - player.Character.PrimaryPart.Position).unit
  1462. local switchEvenOddParity = 1
  1463. local angle = math.ceil((1-1)/2)*math.pi/12*switchEvenOddParity
  1464. ThrowTool(CFrame.Angles(0, angle, 0) * lookAt)
  1465. HeldTime=0
  1466. gettingknife=true
  1467. mouse.Icon="http://www.roblox.com/asset/?id=54020165"
  1468. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1469. for i = 1, 15, .8 do
  1470. if equipped then
  1471. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  1472. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  1473. wait()
  1474. end
  1475. end
  1476. justthrown=true
  1477. tool.Handle.Transparency=0
  1478. PlaySound("Equip")
  1479. mouse.Icon="http://www.roblox.com/asset/?id=54019936"
  1480. tool.GripForward = Vector3.new(0,0,-1)
  1481. for i = 1, 15, 1 do
  1482. if equipped then
  1483. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  1484. wait()
  1485. end
  1486. end
  1487. gettingknife=false
  1488. for i = 1, 15, 3 do
  1489. if equipped then
  1490. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1491. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1492. end
  1493. wait()
  1494. end
  1495. end
  1496. else
  1497. if not justthrown and not gettingknife then
  1498. if Attacking then return end
  1499. print("Attack")
  1500. HeldTime=0
  1501. Attacking=true
  1502. justattacked=true
  1503. if math.random(1,2)==1 then
  1504. for i = 1, 15, 3 do
  1505. if equipped and not gettingknife and not justthrown then
  1506. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 65)), 0, (-i * (math.pi / 30)))
  1507. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  1508. wait()
  1509. end
  1510. end
  1511. PlaySound("Swing")
  1512. for i = 1, 15, 3 do
  1513. if equipped and not gettingknife and not justthrown then
  1514. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  1515. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  1516. wait()
  1517. end
  1518. end
  1519. for i = 1, 15, 3 do
  1520. if equipped and not justthrown and not gettingknife then
  1521. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  1522. wait()
  1523. end
  1524. end
  1525. for i = 1, 15, 3 do
  1526. equipping=true
  1527. if equipped and not gettingknife and not justthrown then
  1528. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1529. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1530. end
  1531. wait()
  1532. end
  1533. Attacking=false
  1534. else
  1535. for i = 1, 15, 3 do
  1536. if equipped and not gettingknife and not justthrown then
  1537. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 40)),(-i * (math.pi / 45)),(i * (math.pi / 60)))
  1538. end
  1539. wait()
  1540. end
  1541. PlaySound("Swing")
  1542. for i = 1, 15, 3 do
  1543. if equipped and not gettingknife and not justthrown then
  1544. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.2, 0.5, -.3, 0.852928281, -0.428775758, 0.29776603, 0.516928136, 0.614185035, -0.596290231, 0.0727913082, 0.662516415, 0.745502114) * CFrame.Angles((-i * (math.pi / 45)),0,0)
  1545. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.200000003, 0.7, 0, 0.849384904, 0.16895318, 0.5, -0.48470962, 0.624545038, 0.612372398, -0.208810255, -0.762494743, 0.612372398) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  1546. end
  1547. wait()
  1548. end
  1549. for i = 1, 15, 3 do
  1550. if equipped and not gettingknife and not justthrown then
  1551. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, -0.300000012, 0.852928281, -0.472260833, -0.222447708, 0.516928136, 0.82349503, 0.233754784, 0.0727913082, -0.314365625, 0.946507096) * CFrame.Angles((i * (math.pi / 45)),0,0)
  1552. end
  1553. wait()
  1554. end
  1555. for i = 1, 15, 3 do
  1556. if equipped and not gettingknife and not justthrown then
  1557. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1558. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1559. end
  1560. wait()
  1561. end
  1562. Attacking=false
  1563. end
  1564. end
  1565. end
  1566. end)
  1567. mouse.Move:connect(function ()
  1568. if equipped and mouse then
  1569. if (mouse.Hit.p - mouse.Origin.p).unit.y < 0.25 and (mouse.Hit.p - mouse.Origin.p).unit.y > -0.25 then
  1570. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(.9,.5,0) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  1571. torso:FindFirstChild("LeftWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  1572. torso:FindFirstChild("Neck").C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),0,math.rad(180)) * CFrame.Angles(math.asin(-(mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
  1573. end
  1574. end
  1575. end)
  1576. end))
  1577. Script64.Name = "Respawn"
  1578. Script64.Parent = Model0
  1579. table.insert(cors,sandbox(Script64,function()
  1580. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1581. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  1582. local AdvancedRespawnScript=script;
  1583. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  1584. local JeffTheKiller=AdvancedRespawnScript.Parent;
  1585. if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
  1586. JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
  1587. end;
  1588. local GameDerbis=Game:GetService("Debris");
  1589. local JeffTheKillerHumanoid;
  1590. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1591. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1592. JeffTheKillerHumanoid=Child;
  1593. end;
  1594. end;
  1595. local Respawndant=JeffTheKiller:Clone();
  1596. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  1597. coroutine.resume(coroutine.create(function()
  1598. if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  1599. SpawnModel=Instance.new("Model");
  1600. SpawnModel.Parent=JeffTheKillerHumanoid.Status;
  1601. SpawnModel.Name="AvalibleSpawns";
  1602. else
  1603. SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  1604. end;
  1605. function FindSpawn(SearchValue)
  1606. local PartsArchivable=SearchValue:GetChildren();
  1607. for AreaSearch=1,#PartsArchivable do
  1608. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  1609. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1610. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1611. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1612. end;
  1613. FindSpawn(PartsArchivable[AreaSearch]);
  1614. end;
  1615. end;
  1616. FindSpawn(Game:GetService("Workspace"));
  1617. local SpawnChilden=SpawnModel:GetChildren();
  1618. if#SpawnChilden>0 then
  1619. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1620. local RespawningForceField=Instance.new("ForceField");
  1621. RespawningForceField.Parent=JeffTheKiller;
  1622. RespawningForceField.Name="SpawnForceField";
  1623. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1624. JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1625. else
  1626. if JeffTheKiller:FindFirstChild("SpawnForceField")then
  1627. JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
  1628. end;
  1629. JeffTheKiller:MoveTo(Vector3.new(0,115,0));
  1630. end;
  1631. end));
  1632. end;
  1633. function Respawn()
  1634. Wait(5);
  1635. Respawndant.Parent=JeffTheKiller.Parent;
  1636. Respawndant:makeJoints();
  1637. Respawndant:FindFirstChild("Head"):MakeJoints();
  1638. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1639. JeffTheKiller:remove();
  1640. end;
  1641. if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
  1642. JeffTheKillerHumanoid.Died:connect(Respawn);
  1643. end;
  1644. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1645. end))
  1646. Script65.Name = "JeffTheKillerMain"
  1647. Script65.Parent = Model0
  1648. table.insert(cors,sandbox(Script65,function()
  1649. --[[ By: Brutez. ]]--
  1650. local JeffTheKillerScript=script;
  1651. repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
  1652. local JeffTheKiller=JeffTheKillerScript.Parent;
  1653. function raycast(Spos,vec,currentdist)
  1654. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
  1655. if hit2~=nil and pos2 then
  1656. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  1657. local currentdist=currentdist-(pos2-Spos).magnitude;
  1658. return raycast(pos2,vec,currentdist);
  1659. end;
  1660. end;
  1661. return hit2,pos2;
  1662. end;
  1663. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  1664. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  1665. end;
  1666. --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
  1667. --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
  1668. --[[end;]]--
  1669. local JeffTheKillerHumanoid;
  1670. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1671. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1672. JeffTheKillerHumanoid=Child;
  1673. end;
  1674. end;
  1675. local AttackDebounce=false;
  1676. local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Knife");
  1677. local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
  1678. local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
  1679. local WalkDebounce=false;
  1680. local Notice=false;
  1681. local JeffLaughDebounce=false;
  1682. local MusicDebounce=false;
  1683. local NoticeDebounce=false;
  1684. local ChosenMusic;
  1685. function FindNearestBae()
  1686. local NoticeDistance=100;
  1687. local TargetMain;
  1688. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1689. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=JeffTheKiller and TargetModel.Name~=JeffTheKiller.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1690. local TargetPart=TargetModel:FindFirstChild("Torso");
  1691. local FoundHumanoid;
  1692. for _,Child in pairs(TargetModel:GetChildren())do
  1693. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1694. FoundHumanoid=Child;
  1695. end;
  1696. end;
  1697. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
  1698. TargetMain=TargetPart;
  1699. NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
  1700. local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
  1701. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  1702. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
  1703. Spawn(function()
  1704. AttackDebounce=true;
  1705. local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
  1706. local SwingChoice=math.random(1,2);
  1707. local HitChoice=math.random(1,3);
  1708. SwingAnimation:Play();
  1709. SwingAnimation:AdjustSpeed(1.5+(math.random()*0.1));
  1710. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
  1711. local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
  1712. SwingSound.Pitch=1+(math.random()*0.04);
  1713. SwingSound:Play();
  1714. end;
  1715. Wait(0.3);
  1716. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<8 then
  1717. FoundHumanoid:TakeDamage(30);
  1718. if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
  1719. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
  1720. HitSound.Pitch=1+(math.random()*0.04);
  1721. HitSound:Play();
  1722. elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
  1723. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
  1724. HitSound.Pitch=1+(math.random()*0.04);
  1725. HitSound:Play();
  1726. elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
  1727. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
  1728. HitSound.Pitch=1+(math.random()*0.04);
  1729. HitSound:Play();
  1730. end;
  1731. end;
  1732. Wait(0.1);
  1733. AttackDebounce=false;
  1734. end);
  1735. end;
  1736. end;
  1737. end;
  1738. end;
  1739. end;
  1740. return TargetMain;
  1741. end;
  1742. while Wait(0)do
  1743. local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
  1744. local Blockage,BlockagePos=RayCast((JeffTheKillerHumanoidRootPart.CFrame+CFrame.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,JeffTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(JeffTheKillerHumanoidRootPart.Size.Z/2)).p,JeffTheKillerHumanoidRootPart.CFrame.lookVector,(JeffTheKillerHumanoidRootPart.Size.Z*2.5),{JeffTheKiller,JeffTheKiller})
  1745. local Jumpable=false;
  1746. if Blockage then
  1747. Jumpable=true;
  1748. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  1749. local BlockageHumanoid;
  1750. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1751. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1752. BlockageHumanoid=Child;
  1753. end;
  1754. end;
  1755. if Blockage and Blockage:IsA("Terrain")then
  1756. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1757. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1758. if CellMaterial==Enum.CellMaterial.Water then
  1759. Jumpable=false;
  1760. end;
  1761. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
  1762. Jumpable=false;
  1763. end;
  1764. end;
  1765. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
  1766. JeffTheKillerHumanoid.Jump=true;
  1767. end;
  1768. end;
  1769. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHumanoidRootPart and JeffTheKillerHead:FindFirstChild("Jeff_Step")and (JeffTheKillerHumanoidRootPart.Velocity-Vector3.new(0,JeffTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1770. Spawn(function()
  1771. WalkDebounce=true;
  1772. local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
  1773. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
  1774. if RayTarget then
  1775. local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
  1776. JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
  1777. JeffTheKillerHeadFootStepClone:Play();
  1778. JeffTheKillerHeadFootStepClone:Destroy();
  1779. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
  1780. Wait(0.5);
  1781. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
  1782. Wait(0.2);
  1783. end
  1784. end;
  1785. WalkDebounce=false;
  1786. end);
  1787. end;
  1788. local MainTarget=FindNearestBae();
  1789. local FoundHumanoid;
  1790. if MainTarget then
  1791. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  1792. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1793. FoundHumanoid=Child;
  1794. end;
  1795. end;
  1796. end;
  1797. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
  1798. JeffTheKillerHumanoid.Jump=true;
  1799. end;
  1800. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<25 then
  1801. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and not JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1802. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=1;
  1803. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Play();
  1804. end;
  1805. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>25 then
  1806. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1807. if not JeffLaughDebounce then
  1808. Spawn(function()
  1809. JeffLaughDebounce=true;
  1810. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  1811. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1812. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1813. JeffLaughDebounce=false;
  1814. end);
  1815. end;
  1816. end;
  1817. end;
  1818. if not ChosenMusic and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<50 then
  1819. local MusicChoice=math.random(1,2);
  1820. if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
  1821. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
  1822. elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
  1823. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
  1824. end;
  1825. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
  1826. ChosenMusic.Volume=0.5;
  1827. ChosenMusic:Play();
  1828. end;
  1829. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>50 then
  1830. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
  1831. if not MusicDebounce then
  1832. Spawn(function()
  1833. MusicDebounce=true;
  1834. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1835. if ChosenMusic then
  1836. ChosenMusic.Volume=0;
  1837. ChosenMusic:Stop();
  1838. end;
  1839. ChosenMusic=nil;
  1840. MusicDebounce=false;
  1841. end);
  1842. end;
  1843. end;
  1844. end;
  1845. if not MainTarget and not JeffLaughDebounce then
  1846. Spawn(function()
  1847. JeffLaughDebounce=true;
  1848. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  1849. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1850. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1851. JeffLaughDebounce=false;
  1852. end);
  1853. end;
  1854. if not MainTarget and not MusicDebounce then
  1855. Spawn(function()
  1856. MusicDebounce=true;
  1857. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1858. if ChosenMusic then
  1859. ChosenMusic.Volume=0;
  1860. ChosenMusic:Stop();
  1861. end;
  1862. ChosenMusic=nil;
  1863. MusicDebounce=false;
  1864. end);
  1865. end;
  1866. if MainTarget then
  1867. Notice=true;
  1868. if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Susto2")then
  1869. JeffTheKillerHead:FindFirstChild("Jeff_Susto2"):Play();
  1870. NoticeDebounce=true;
  1871. end
  1872. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1873. if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
  1874. JeffTheKillerHumanoid.WalkSpeed=30;
  1875. elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
  1876. JeffTheKillerHumanoid.WalkSpeed=0.004;
  1877. end;
  1878. JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1879. end;
  1880. else
  1881. Notice=false;
  1882. NoticeDebounce=false;
  1883. local RandomWalk=math.random(1,150);
  1884. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1885. JeffTheKillerHumanoid.WalkSpeed=12;
  1886. if RandomWalk==1 then
  1887. JeffTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1888. end;
  1889. end;
  1890. end;
  1891. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
  1892. JeffTheKillerHumanoid.DisplayDistanceType="None";
  1893. JeffTheKillerHumanoid.HealthDisplayDistance=0;
  1894. JeffTheKillerHumanoid.Name="ColdBloodedKiller";
  1895. JeffTheKillerHumanoid.NameDisplayDistance=0;
  1896. JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
  1897. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1898. JeffTheKillerHumanoid.AutoRotate=true;
  1899. JeffTheKillerHumanoid.MaxHealth=500;
  1900. JeffTheKillerHumanoid.JumpPower=60;
  1901. JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
  1902. end;
  1903. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
  1904. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1905. end;
  1906. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
  1907. JeffTheKillerHumanoid.AutoRotate=true;
  1908. end;
  1909. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
  1910. JeffTheKillerHumanoid.PlatformStand=false;
  1911. end;
  1912. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
  1913. JeffTheKillerHumanoid.Sit=false;
  1914. end;
  1915. end;
  1916. --[[ By: Brutez. ]]--
  1917. end))
  1918. Pants66.Name = "Pants"
  1919. Pants66.Parent = Model0
  1920. Pants66.PantsTemplate = "http://www.roblox.com/asset/?id=167539725"
  1921. Hat67.Name = "Kate Hair"
  1922. Hat67.Parent = Model0
  1923. Hat67.AttachmentPos = Vector3.new(0, 0.100000001, 0)
  1924. Part68.Name = "Handle"
  1925. Part68.Parent = Hat67
  1926. Part68.Rotation = Vector3.new(-180, 0.0199999996, -180)
  1927. Part68.CanCollide = false
  1928. Part68.FormFactor = Enum.FormFactor.Symmetric
  1929. Part68.Size = Vector3.new(1, 1, 2)
  1930. Part68.CFrame = CFrame.new(-2.25450349, 4.90008402, -119.720802, -1.00000262, 7.15458737e-06, 0.000275864091, 7.17589546e-06, 1, 7.71678751e-05, -0.000275863538, 7.71696868e-05, -1.00000262)
  1931. Part68.BottomSurface = Enum.SurfaceType.Smooth
  1932. Part68.TopSurface = Enum.SurfaceType.Smooth
  1933. Part68.Position = Vector3.new(-2.25450349, 4.90008402, -119.720802)
  1934. Part68.Orientation = Vector3.new(0, 179.979996, 0)
  1935. SpecialMesh69.Parent = Part68
  1936. SpecialMesh69.MeshId = "http://www.roblox.com/asset/?id=81642452"
  1937. SpecialMesh69.Scale = Vector3.new(1.14999998, 1.20000005, 1.10000002)
  1938. SpecialMesh69.TextureId = "http://www.roblox.com/asset/?id=81643238"
  1939. SpecialMesh69.VertexColor = Vector3.new(1.29999995, 1.10000002, 1.10000002)
  1940. SpecialMesh69.MeshType = Enum.MeshType.FileMesh
  1941. SpecialMesh69.Scale = Vector3.new(1.14999998, 1.20000005, 1.10000002)
  1942. CharacterMesh70.Name = "3.0 Female Left Arm"
  1943. CharacterMesh70.Parent = Model0
  1944. CharacterMesh70.MeshId = 83001137
  1945. CharacterMesh70.BodyPart = Enum.BodyPart.LeftArm
  1946. CharacterMesh71.Name = "3.0 Female Left Leg"
  1947. CharacterMesh71.Parent = Model0
  1948. CharacterMesh71.MeshId = 81628361
  1949. CharacterMesh71.BodyPart = Enum.BodyPart.LeftLeg
  1950. CharacterMesh72.Name = "3.0 Female Right Arm"
  1951. CharacterMesh72.Parent = Model0
  1952. CharacterMesh72.MeshId = 83001181
  1953. CharacterMesh72.BodyPart = Enum.BodyPart.RightArm
  1954. CharacterMesh73.Name = "3.0 Female Right Leg"
  1955. CharacterMesh73.Parent = Model0
  1956. CharacterMesh73.MeshId = 81628308
  1957. CharacterMesh73.BodyPart = Enum.BodyPart.RightLeg
  1958. CharacterMesh74.Name = "3.0 Female Torso"
  1959. CharacterMesh74.Parent = Model0
  1960. CharacterMesh74.MeshId = 82987757
  1961. CharacterMesh74.BodyPart = Enum.BodyPart.Torso
  1962. for i,v in pairs(mas:GetChildren()) do
  1963. v.Parent = workspace
  1964. pcall(function() v:MakeJoints() end)
  1965. end
  1966. mas:Destroy()
  1967. for i,v in pairs(cors) do
  1968. spawn(function()
  1969. pcall(v)
  1970. end)
  1971. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement