Advertisement
BNutty07

xddsds

Nov 8th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.86 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  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. Motor6D2 = Instance.new("Motor6D")
  22. Part3 = Instance.new("Part")
  23. Motor6D4 = Instance.new("Motor6D")
  24. Motor6D5 = Instance.new("Motor6D")
  25. Motor6D6 = Instance.new("Motor6D")
  26. Motor6D7 = Instance.new("Motor6D")
  27. Motor6D8 = Instance.new("Motor6D")
  28. Sound9 = Instance.new("Sound")
  29. BillboardGui10 = Instance.new("BillboardGui")
  30. TextLabel11 = Instance.new("TextLabel")
  31. BillboardGui12 = Instance.new("BillboardGui")
  32. Frame13 = Instance.new("Frame")
  33. Frame14 = Instance.new("Frame")
  34. Frame15 = Instance.new("Frame")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Part18 = Instance.new("Part")
  38. Part19 = Instance.new("Part")
  39. Weld20 = Instance.new("Weld")
  40. Part21 = Instance.new("Part")
  41. Sound22 = Instance.new("Sound")
  42. SpecialMesh23 = Instance.new("SpecialMesh")
  43. Script24 = Instance.new("Script")
  44. StringValue25 = Instance.new("StringValue")
  45. Animation26 = Instance.new("Animation")
  46. StringValue27 = Instance.new("StringValue")
  47. Animation28 = Instance.new("Animation")
  48. StringValue29 = Instance.new("StringValue")
  49. Animation30 = Instance.new("Animation")
  50. NumberValue31 = Instance.new("NumberValue")
  51. Animation32 = Instance.new("Animation")
  52. NumberValue33 = Instance.new("NumberValue")
  53. StringValue34 = Instance.new("StringValue")
  54. Animation35 = Instance.new("Animation")
  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. Shirt42 = Instance.new("Shirt")
  62. Animation43 = Instance.new("Animation")
  63. Script44 = Instance.new("Script")
  64. BodyColors45 = Instance.new("BodyColors")
  65. Sound46 = Instance.new("Sound")
  66. Script47 = Instance.new("Script")
  67. Script48 = Instance.new("Script")
  68. Humanoid49 = Instance.new("Humanoid")
  69. Tool50 = Instance.new("Tool")
  70. Part51 = Instance.new("Part")
  71. SpecialMesh52 = Instance.new("SpecialMesh")
  72. Sound53 = Instance.new("Sound")
  73. Sound54 = Instance.new("Sound")
  74. Sound55 = Instance.new("Sound")
  75. Sound56 = Instance.new("Sound")
  76. Sound57 = Instance.new("Sound")
  77. Sound58 = Instance.new("Sound")
  78. Sound59 = Instance.new("Sound")
  79. Sound60 = Instance.new("Sound")
  80. Sound61 = Instance.new("Sound")
  81. Sound62 = Instance.new("Sound")
  82. Sound63 = Instance.new("Sound")
  83. Sound64 = Instance.new("Sound")
  84. Sound65 = Instance.new("Sound")
  85. Sound66 = Instance.new("Sound")
  86. Sound67 = Instance.new("Sound")
  87. Sound68 = Instance.new("Sound")
  88. Sound69 = Instance.new("Sound")
  89. Sound70 = Instance.new("Sound")
  90. Sound71 = Instance.new("Sound")
  91. Sound72 = Instance.new("Sound")
  92. Sound73 = Instance.new("Sound")
  93. Sound74 = Instance.new("Sound")
  94. Sound75 = Instance.new("Sound")
  95. Sound76 = Instance.new("Sound")
  96. Sound77 = Instance.new("Sound")
  97. Sound78 = Instance.new("Sound")
  98. Sound79 = Instance.new("Sound")
  99. Sound80 = Instance.new("Sound")
  100. Sound81 = Instance.new("Sound")
  101. Sound82 = Instance.new("Sound")
  102. Sound83 = Instance.new("Sound")
  103. Sound84 = Instance.new("Sound")
  104. Sound85 = Instance.new("Sound")
  105. Sound86 = Instance.new("Sound")
  106. Sound87 = Instance.new("Sound")
  107. Sound88 = Instance.new("Sound")
  108. Sound89 = Instance.new("Sound")
  109. Sound90 = Instance.new("Sound")
  110. Sound91 = Instance.new("Sound")
  111. Sound92 = Instance.new("Sound")
  112. Sound93 = Instance.new("Sound")
  113. LocalScript94 = Instance.new("LocalScript")
  114. Script95 = Instance.new("Script")
  115. ShirtGraphic96 = Instance.new("ShirtGraphic")
  116. Script97 = Instance.new("Script")
  117. Model0.Name = "Dipsy Chainsaw"
  118. Model0.Parent = mas
  119. Part1.Name = "HumanoidRootPart"
  120. Part1.Parent = Model0
  121. Part1.Transparency = 1
  122. Part1.FormFactor = Enum.FormFactor.Symmetric
  123. Part1.Size = Vector3.new(2, 2, 1)
  124. Part1.CFrame = CFrame.new(-30, 3.00001001, -11, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  125. Part1.BottomSurface = Enum.SurfaceType.Smooth
  126. Part1.TopSurface = Enum.SurfaceType.Smooth
  127. Part1.Position = Vector3.new(-30, 3.00001001, -11)
  128. Motor6D2.Name = "Root Hip"
  129. Motor6D2.Parent = Part1
  130. Motor6D2.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  131. Motor6D2.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  132. Motor6D2.Part0 = Part1
  133. Motor6D2.Part1 = Part3
  134. Motor6D2.MaxVelocity = 0.10000000149012
  135. Part3.Name = "Torso"
  136. Part3.Parent = Model0
  137. Part3.BrickColor = BrickColor.new("Lime green")
  138. Part3.CanCollide = false
  139. Part3.FormFactor = Enum.FormFactor.Symmetric
  140. Part3.Size = Vector3.new(2, 2, 1)
  141. Part3.CFrame = CFrame.new(-30, 3.00001001, -11, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  142. Part3.BottomSurface = Enum.SurfaceType.Smooth
  143. Part3.TopSurface = Enum.SurfaceType.Smooth
  144. Part3.Color = Color3.new(0, 1, 0)
  145. Part3.Position = Vector3.new(-30, 3.00001001, -11)
  146. Part3.Color = Color3.new(0, 1, 0)
  147. Motor6D4.Name = "Left Hip"
  148. Motor6D4.Parent = Part3
  149. Motor6D4.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  150. Motor6D4.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  151. Motor6D4.Part0 = Part3
  152. Motor6D4.Part1 = Part16
  153. Motor6D4.MaxVelocity = 0.10000000149012
  154. Motor6D5.Name = "Right Hip"
  155. Motor6D5.Parent = Part3
  156. Motor6D5.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  157. Motor6D5.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  158. Motor6D5.Part0 = Part3
  159. Motor6D5.Part1 = Part17
  160. Motor6D5.MaxVelocity = 0.10000000149012
  161. Motor6D6.Name = "Left Shoulder"
  162. Motor6D6.Parent = Part3
  163. Motor6D6.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  164. Motor6D6.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  165. Motor6D6.Part0 = Part3
  166. Motor6D6.Part1 = Part18
  167. Motor6D6.MaxVelocity = 0.10000000149012
  168. Motor6D7.Name = "Right Shoulder"
  169. Motor6D7.Parent = Part3
  170. Motor6D7.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  171. Motor6D7.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  172. Motor6D7.Part0 = Part3
  173. Motor6D7.Part1 = Part19
  174. Motor6D7.MaxVelocity = 0.10000000149012
  175. Motor6D8.Name = "Neck"
  176. Motor6D8.Parent = Part3
  177. Motor6D8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  178. Motor6D8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  179. Motor6D8.Part0 = Part3
  180. Motor6D8.Part1 = Part21
  181. Motor6D8.MaxVelocity = 0.10000000149012
  182. Sound9.Name = "HitSound"
  183. Sound9.Parent = Part3
  184. Sound9.SoundId = "rbxassetid://2766576"
  185. Sound9.Volume = 5
  186. BillboardGui10.Name = "BossGui"
  187. BillboardGui10.Parent = Part3
  188. BillboardGui10.Size = UDim2.new(5, 0, 5, 0)
  189. BillboardGui10.AlwaysOnTop = true
  190. BillboardGui10.StudsOffset = Vector3.new(0, 10, 0)
  191. TextLabel11.Parent = BillboardGui10
  192. TextLabel11.Transparency = 1
  193. TextLabel11.Size = UDim2.new(1, 0, 1, 0)
  194. TextLabel11.Text = "BOSS"
  195. TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
  196. TextLabel11.BackgroundTransparency = 1
  197. TextLabel11.Font = Enum.Font.ArialBold
  198. TextLabel11.FontSize = Enum.FontSize.Size12
  199. TextLabel11.TextColor3 = Color3.new(1, 0, 0)
  200. TextLabel11.TextStrokeColor3 = Color3.new(0.784314, 0, 0)
  201. TextLabel11.TextStrokeTransparency = 0
  202. BillboardGui12.Name = "Healthbar"
  203. BillboardGui12.Parent = Part3
  204. BillboardGui12.Size = UDim2.new(50, 0, 1, 0)
  205. BillboardGui12.AlwaysOnTop = true
  206. BillboardGui12.StudsOffset = Vector3.new(0, 20, 0)
  207. Frame13.Parent = BillboardGui12
  208. Frame13.Size = UDim2.new(1, 0, 1, 0)
  209. Frame13.BackgroundColor3 = Color3.new(0, 0, 0)
  210. Frame13.BorderColor3 = Color3.new(0, 0, 0)
  211. Frame14.Name = "Full"
  212. Frame14.Parent = Frame13
  213. Frame14.Size = UDim2.new(1, 0, 1, 0)
  214. Frame14.BackgroundColor3 = Color3.new(0, 0.784314, 0)
  215. Frame14.BorderColor3 = Color3.new(0, 0, 0)
  216. Frame14.BorderSizePixel = 0
  217. Frame15.Name = "Reflec"
  218. Frame15.Parent = Frame14
  219. Frame15.Transparency = 0.625
  220. Frame15.Size = UDim2.new(1, 0, 0.370000005, 0)
  221. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  222. Frame15.BackgroundTransparency = 0.625
  223. Frame15.BorderSizePixel = 0
  224. Part16.Name = "Left Leg"
  225. Part16.Parent = Model0
  226. Part16.BrickColor = BrickColor.new("Lime green")
  227. Part16.CanCollide = false
  228. Part16.FormFactor = Enum.FormFactor.Symmetric
  229. Part16.Size = Vector3.new(1, 2, 1)
  230. Part16.CFrame = CFrame.new(-30.5, 1.00001013, -11, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  231. Part16.BottomSurface = Enum.SurfaceType.Smooth
  232. Part16.TopSurface = Enum.SurfaceType.Smooth
  233. Part16.Color = Color3.new(0, 1, 0)
  234. Part16.Position = Vector3.new(-30.5, 1.00001013, -11)
  235. Part16.Color = Color3.new(0, 1, 0)
  236. Part17.Name = "Right Leg"
  237. Part17.Parent = Model0
  238. Part17.BrickColor = BrickColor.new("Lime green")
  239. Part17.CanCollide = false
  240. Part17.FormFactor = Enum.FormFactor.Symmetric
  241. Part17.Size = Vector3.new(1, 2, 1)
  242. Part17.CFrame = CFrame.new(-29.5, 1.00001013, -11, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  243. Part17.BottomSurface = Enum.SurfaceType.Smooth
  244. Part17.TopSurface = Enum.SurfaceType.Smooth
  245. Part17.Color = Color3.new(0, 1, 0)
  246. Part17.Position = Vector3.new(-29.5, 1.00001013, -11)
  247. Part17.Color = Color3.new(0, 1, 0)
  248. Part18.Name = "Left Arm"
  249. Part18.Parent = Model0
  250. Part18.BrickColor = BrickColor.new("Lime green")
  251. Part18.CanCollide = false
  252. Part18.FormFactor = Enum.FormFactor.Symmetric
  253. Part18.Size = Vector3.new(1, 2, 1)
  254. Part18.CFrame = CFrame.new(-31.5, 3.00001001, -11, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  255. Part18.BottomSurface = Enum.SurfaceType.Smooth
  256. Part18.TopSurface = Enum.SurfaceType.Smooth
  257. Part18.Color = Color3.new(0, 1, 0)
  258. Part18.Position = Vector3.new(-31.5, 3.00001001, -11)
  259. Part18.Color = Color3.new(0, 1, 0)
  260. Part19.Name = "Right Arm"
  261. Part19.Parent = Model0
  262. Part19.BrickColor = BrickColor.new("Lime green")
  263. Part19.CanCollide = false
  264. Part19.FormFactor = Enum.FormFactor.Symmetric
  265. Part19.Size = Vector3.new(1, 2, 1)
  266. Part19.CFrame = CFrame.new(-28.5, 3.00001001, -11, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  267. Part19.BottomSurface = Enum.SurfaceType.Smooth
  268. Part19.TopSurface = Enum.SurfaceType.Smooth
  269. Part19.Color = Color3.new(0, 1, 0)
  270. Part19.Position = Vector3.new(-28.5, 3.00001001, -11)
  271. Part19.Color = Color3.new(0, 1, 0)
  272. Weld20.Name = "RightGrip"
  273. Weld20.Parent = Part19
  274. Weld20.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  275. Weld20.C1 = CFrame.new(0, 0, 1.5, 0.996545732, 0, -0.0830454826, 0.0830454826, 0, 0.996545732, 0, -1, 0)
  276. Weld20.Part0 = Part19
  277. Weld20.Part1 = Part51
  278. Part21.Name = "Head"
  279. Part21.Parent = Model0
  280. Part21.BrickColor = BrickColor.new("Lime green")
  281. Part21.FormFactor = Enum.FormFactor.Symmetric
  282. Part21.Size = Vector3.new(2, 1, 1)
  283. Part21.CFrame = CFrame.new(-30, 4.50001001, -11, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  284. Part21.BottomSurface = Enum.SurfaceType.Smooth
  285. Part21.TopSurface = Enum.SurfaceType.Smooth
  286. Part21.Color = Color3.new(0, 1, 0)
  287. Part21.Position = Vector3.new(-30, 4.50001001, -11)
  288. Part21.Color = Color3.new(0, 1, 0)
  289. Sound22.Name = "Hurt"
  290. Sound22.Parent = Part21
  291. Sound22.SoundId = "rbxassetid://134059106"
  292. Sound22.Volume = 10
  293. SpecialMesh23.Parent = Part21
  294. SpecialMesh23.Offset = Vector3.new(0, -0.5, 0)
  295. SpecialMesh23.Scale = Vector3.new(0.00999999978, 0.00999999978, 0.00999999978)
  296. SpecialMesh23.MeshType = Enum.MeshType.Sphere
  297. SpecialMesh23.Scale = Vector3.new(0.00999999978, 0.00999999978, 0.00999999978)
  298. Script24.Name = "AnimateSauce"
  299. Script24.Parent = Model0
  300. table.insert(cors,sandbox(Script24,function()
  301. function waitForChild(parent, childName)
  302. local child = parent:findFirstChild(childName)
  303. if child then return child end
  304. while true do
  305. child = parent.ChildAdded:wait()
  306. if child.Name==childName then return child end
  307. end
  308. end
  309.  
  310. local Figure = script.Parent
  311. local Torso = waitForChild(Figure, "Torso")
  312. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  313. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  314. local RightHip = waitForChild(Torso, "Right Hip")
  315. local LeftHip = waitForChild(Torso, "Left Hip")
  316. local Neck = waitForChild(Torso, "Neck")
  317. local Humanoid = waitForChild(Figure, "Humanoid")
  318. local pose = "Standing"
  319.  
  320. local currentAnim = ""
  321. local currentAnimTrack = nil
  322. local currentAnimKeyframeHandler = nil
  323. local currentAnimSpeed = 1.0
  324. local animTable = {}
  325. local animNames = {
  326. idle = {
  327. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  328. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  329. },
  330. walk = {
  331. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  332. },
  333. run = {
  334. { id = "run.xml", weight = 10 }
  335. },
  336. jump = {
  337. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  338. },
  339. fall = {
  340. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  341. },
  342. climb = {
  343. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  344. },
  345. toolnone = {
  346. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  347. },
  348. toolslash = {
  349. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  350. -- { id = "slash.xml", weight = 10 }
  351. },
  352. toollunge = {
  353. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  354. },
  355. wave = {
  356. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  357. },
  358. point = {
  359. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  360. },
  361. dance = {
  362. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  363. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  364. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  365. },
  366. dance2 = {
  367. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  368. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  369. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  370. },
  371. dance3 = {
  372. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  373. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  374. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  375. },
  376. laugh = {
  377. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  378. },
  379. cheer = {
  380. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  381. },
  382. }
  383.  
  384. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  385. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  386.  
  387. math.randomseed(tick())
  388.  
  389. function configureAnimationSet(name, fileList)
  390. if (animTable[name] ~= nil) then
  391. for _, connection in pairs(animTable[name].connections) do
  392. connection:disconnect()
  393. end
  394. end
  395. animTable[name] = {}
  396. animTable[name].count = 0
  397. animTable[name].totalWeight = 0
  398. animTable[name].connections = {}
  399.  
  400. -- check for config values
  401. local config = script:FindFirstChild(name)
  402. if (config ~= nil) then
  403. -- print("Loading anims " .. name)
  404. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  405. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  406. local idx = 1
  407. for _, childPart in pairs(config:GetChildren()) do
  408. if (childPart:IsA("Animation")) then
  409. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  410. animTable[name][idx] = {}
  411. animTable[name][idx].anim = childPart
  412. local weightObject = childPart:FindFirstChild("Weight")
  413. if (weightObject == nil) then
  414. animTable[name][idx].weight = 1
  415. else
  416. animTable[name][idx].weight = weightObject.Value
  417. end
  418. animTable[name].count = animTable[name].count + 1
  419. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  420. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  421. idx = idx + 1
  422. end
  423. end
  424. end
  425.  
  426. -- fallback to defaults
  427. if (animTable[name].count <= 0) then
  428. for idx, anim in pairs(fileList) do
  429. animTable[name][idx] = {}
  430. animTable[name][idx].anim = Instance.new("Animation")
  431. animTable[name][idx].anim.Name = name
  432. animTable[name][idx].anim.AnimationId = anim.id
  433. animTable[name][idx].weight = anim.weight
  434. animTable[name].count = animTable[name].count + 1
  435. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  436. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  437. end
  438. end
  439. end
  440.  
  441. -- Setup animation objects
  442. function scriptChildModified(child)
  443. local fileList = animNames[child.Name]
  444. if (fileList ~= nil) then
  445. configureAnimationSet(child.Name, fileList)
  446. end
  447. end
  448.  
  449. script.ChildAdded:connect(scriptChildModified)
  450. script.ChildRemoved:connect(scriptChildModified)
  451.  
  452.  
  453. for name, fileList in pairs(animNames) do
  454. configureAnimationSet(name, fileList)
  455. end
  456.  
  457. -- ANIMATION
  458.  
  459. -- declarations
  460. local toolAnim = "None"
  461. local toolAnimTime = 0
  462.  
  463. local jumpAnimTime = 0
  464. local jumpAnimDuration = 0.3
  465.  
  466. local toolTransitionTime = 0.1
  467. local fallTransitionTime = 0.3
  468. local jumpMaxLimbVelocity = 0.75
  469.  
  470. -- functions
  471.  
  472. function stopAllAnimations()
  473. local oldAnim = currentAnim
  474.  
  475. -- return to idle if finishing an emote
  476. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  477. oldAnim = "idle"
  478. end
  479.  
  480. currentAnim = ""
  481. if (currentAnimKeyframeHandler ~= nil) then
  482. currentAnimKeyframeHandler:disconnect()
  483. end
  484.  
  485. if (currentAnimTrack ~= nil) then
  486. currentAnimTrack:Stop()
  487. currentAnimTrack:Destroy()
  488. currentAnimTrack = nil
  489. end
  490. return oldAnim
  491. end
  492.  
  493. function setAnimationSpeed(speed)
  494. if speed ~= currentAnimSpeed then
  495. currentAnimSpeed = speed
  496. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  497. end
  498. end
  499.  
  500. function keyFrameReachedFunc(frameName)
  501. if (frameName == "End") then
  502. -- print("Keyframe : ".. frameName)
  503. local repeatAnim = stopAllAnimations()
  504. local animSpeed = currentAnimSpeed
  505. playAnimation(repeatAnim, 0.0, Humanoid)
  506. setAnimationSpeed(animSpeed)
  507. end
  508. end
  509.  
  510. -- Preload animations
  511. function playAnimation(animName, transitionTime, humanoid)
  512. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  513. if (animName ~= currentAnim and not idleFromEmote) then
  514.  
  515. if (currentAnimTrack ~= nil) then
  516. currentAnimTrack:Stop(transitionTime)
  517. currentAnimTrack:Destroy()
  518. end
  519.  
  520. currentAnimSpeed = 1.0
  521. local roll = math.random(1, animTable[animName].totalWeight)
  522. local origRoll = roll
  523. local idx = 1
  524. while (roll > animTable[animName][idx].weight) do
  525. roll = roll - animTable[animName][idx].weight
  526. idx = idx + 1
  527. end
  528. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  529. local anim = animTable[animName][idx].anim
  530.  
  531. -- load it to the humanoid; get AnimationTrack
  532. currentAnimTrack = humanoid:LoadAnimation(anim)
  533.  
  534. -- play the animation
  535. currentAnimTrack:Play(transitionTime)
  536. currentAnim = animName
  537.  
  538. -- set up keyframe name triggers
  539. if (currentAnimKeyframeHandler ~= nil) then
  540. currentAnimKeyframeHandler:disconnect()
  541. end
  542. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  543. end
  544. end
  545.  
  546. -------------------------------------------------------------------------------------------
  547. -------------------------------------------------------------------------------------------
  548.  
  549. local toolAnimName = ""
  550. local toolAnimTrack = nil
  551. local currentToolAnimKeyframeHandler = nil
  552.  
  553. function toolKeyFrameReachedFunc(frameName)
  554. if (frameName == "End") then
  555. -- print("Keyframe : ".. frameName)
  556. local repeatAnim = stopToolAnimations()
  557. playToolAnimation(repeatAnim, 0.0, Humanoid)
  558. end
  559. end
  560.  
  561.  
  562. function playToolAnimation(animName, transitionTime, humanoid)
  563. if (animName ~= toolAnimName) then
  564.  
  565. if (toolAnimTrack ~= nil) then
  566. toolAnimTrack:Stop()
  567. toolAnimTrack:Destroy()
  568. transitionTime = 0
  569. end
  570.  
  571. local roll = math.random(1, animTable[animName].totalWeight)
  572. local origRoll = roll
  573. local idx = 1
  574. while (roll > animTable[animName][idx].weight) do
  575. roll = roll - animTable[animName][idx].weight
  576. idx = idx + 1
  577. end
  578. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  579. local anim = animTable[animName][idx].anim
  580.  
  581. -- load it to the humanoid; get AnimationTrack
  582. toolAnimTrack = humanoid:LoadAnimation(anim)
  583.  
  584. -- play the animation
  585. toolAnimTrack:Play(transitionTime)
  586. toolAnimName = animName
  587.  
  588. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  589. end
  590. end
  591.  
  592. function stopToolAnimations()
  593. local oldAnim = toolAnimName
  594.  
  595. if (currentToolAnimKeyframeHandler ~= nil) then
  596. currentToolAnimKeyframeHandler:disconnect()
  597. end
  598.  
  599. toolAnimName = ""
  600. if (toolAnimTrack ~= nil) then
  601. toolAnimTrack:Stop()
  602. toolAnimTrack:Destroy()
  603. toolAnimTrack = nil
  604. end
  605.  
  606.  
  607. return oldAnim
  608. end
  609.  
  610. -------------------------------------------------------------------------------------------
  611. -------------------------------------------------------------------------------------------
  612.  
  613.  
  614. function onRunning(speed)
  615. if speed>0.01 then
  616. playAnimation("walk", 0.1, Humanoid)
  617. pose = "Running"
  618. else
  619. playAnimation("idle", 0.1, Humanoid)
  620. pose = "Standing"
  621. end
  622. end
  623.  
  624. function onDied()
  625. pose = "Dead"
  626. end
  627.  
  628. function onJumping()
  629. playAnimation("jump", 0.1, Humanoid)
  630. jumpAnimTime = jumpAnimDuration
  631. pose = "Jumping"
  632. end
  633.  
  634. function onClimbing(speed)
  635. playAnimation("climb", 0.1, Humanoid)
  636. setAnimationSpeed(speed / 12.0)
  637. pose = "Climbing"
  638. end
  639.  
  640. function onGettingUp()
  641. pose = "GettingUp"
  642. end
  643.  
  644. function onFreeFall()
  645. if (jumpAnimTime <= 0) then
  646. playAnimation("fall", fallTransitionTime, Humanoid)
  647. end
  648. pose = "FreeFall"
  649. end
  650.  
  651. function onFallingDown()
  652. pose = "FallingDown"
  653. end
  654.  
  655. function onSeated()
  656. pose = "Seated"
  657. end
  658.  
  659. function onPlatformStanding()
  660. pose = "PlatformStanding"
  661. end
  662.  
  663. function onSwimming(speed)
  664. if speed>0 then
  665. pose = "Running"
  666. else
  667. pose = "Standing"
  668. end
  669. end
  670.  
  671. function getTool()
  672. for _, kid in ipairs(Figure:GetChildren()) do
  673. if kid.className == "Tool" then return kid end
  674. end
  675. return nil
  676. end
  677.  
  678. function getToolAnim(tool)
  679. for _, c in ipairs(tool:GetChildren()) do
  680. if c.Name == "toolanim" and c.className == "StringValue" then
  681. return c
  682. end
  683. end
  684. return nil
  685. end
  686.  
  687. function animateTool()
  688.  
  689. if (toolAnim == "None") then
  690. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  691. return
  692. end
  693.  
  694. if (toolAnim == "Slash") then
  695. playToolAnimation("toolslash", 0, Humanoid)
  696. return
  697. end
  698.  
  699. if (toolAnim == "Lunge") then
  700. playToolAnimation("toollunge", 0, Humanoid)
  701. return
  702. end
  703. end
  704.  
  705. function moveSit()
  706. RightShoulder.MaxVelocity = 0.15
  707. LeftShoulder.MaxVelocity = 0.15
  708. RightShoulder:SetDesiredAngle(3.14 /2)
  709. LeftShoulder:SetDesiredAngle(-3.14 /2)
  710. RightHip:SetDesiredAngle(3.14 /2)
  711. LeftHip:SetDesiredAngle(-3.14 /2)
  712. end
  713.  
  714. local lastTick = 0
  715.  
  716. function move(time)
  717. local amplitude = 1
  718. local frequency = 1
  719. local deltaTime = time - lastTick
  720. lastTick = time
  721.  
  722. local climbFudge = 0
  723. local setAngles = false
  724.  
  725. if (jumpAnimTime > 0) then
  726. jumpAnimTime = jumpAnimTime - deltaTime
  727. end
  728.  
  729. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  730. playAnimation("fall", fallTransitionTime, Humanoid)
  731. elseif (pose == "Seated") then
  732. stopAllAnimations()
  733. moveSit()
  734. return
  735. elseif (pose == "Running") then
  736. playAnimation("walk", 0.1, Humanoid)
  737. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  738. -- print("Wha " .. pose)
  739. amplitude = 0.1
  740. frequency = 1
  741. setAngles = true
  742. end
  743.  
  744. if (setAngles) then
  745. desiredAngle = amplitude * math.sin(time * frequency)
  746.  
  747. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  748. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  749. RightHip:SetDesiredAngle(-desiredAngle)
  750. LeftHip:SetDesiredAngle(-desiredAngle)
  751. end
  752.  
  753. -- Tool Animation handling
  754. local tool = getTool()
  755. if tool then
  756.  
  757. animStringValueObject = getToolAnim(tool)
  758.  
  759. if animStringValueObject then
  760. toolAnim = animStringValueObject.Value
  761. -- message recieved, delete StringValue
  762. animStringValueObject.Parent = nil
  763. toolAnimTime = time + .3
  764. end
  765.  
  766. if time > toolAnimTime then
  767. toolAnimTime = 0
  768. toolAnim = "None"
  769. end
  770.  
  771. animateTool()
  772. else
  773. stopToolAnimations()
  774. toolAnim = "None"
  775. toolAnimTime = 0
  776. end
  777. end
  778.  
  779. -- connect events
  780. Humanoid.Died:connect(onDied)
  781. Humanoid.Running:connect(onRunning)
  782. Humanoid.Jumping:connect(onJumping)
  783. Humanoid.Climbing:connect(onClimbing)
  784. Humanoid.GettingUp:connect(onGettingUp)
  785. Humanoid.FreeFalling:connect(onFreeFall)
  786. Humanoid.FallingDown:connect(onFallingDown)
  787. Humanoid.Seated:connect(onSeated)
  788. Humanoid.PlatformStanding:connect(onPlatformStanding)
  789. Humanoid.Swimming:connect(onSwimming)
  790.  
  791. -- setup emote chat hook
  792.  
  793.  
  794. -- main program
  795.  
  796. local runService = game:service("RunService");
  797.  
  798. -- initialize to idle
  799. playAnimation("idle", 0.1, Humanoid)
  800. pose = "Standing"
  801.  
  802. while Figure.Parent~=nil do
  803. local _, time = wait(0.1)
  804. move(time)
  805. end
  806.  
  807.  
  808.  
  809. end))
  810. StringValue25.Name = "climb"
  811. StringValue25.Parent = Script24
  812. Animation26.Name = "ClimbAnim"
  813. Animation26.Parent = StringValue25
  814. Animation26.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  815. StringValue27.Name = "fall"
  816. StringValue27.Parent = Script24
  817. Animation28.Name = "FallAnim"
  818. Animation28.Parent = StringValue27
  819. Animation28.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  820. StringValue29.Name = "idle"
  821. StringValue29.Parent = Script24
  822. Animation30.Name = "Animation1"
  823. Animation30.Parent = StringValue29
  824. Animation30.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  825. NumberValue31.Name = "Weight"
  826. NumberValue31.Parent = Animation30
  827. NumberValue31.Value = 9
  828. Animation32.Name = "Animation2"
  829. Animation32.Parent = StringValue29
  830. Animation32.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  831. NumberValue33.Name = "Weight"
  832. NumberValue33.Parent = Animation32
  833. NumberValue33.Value = 1
  834. StringValue34.Name = "jump"
  835. StringValue34.Parent = Script24
  836. Animation35.Name = "JumpAnim"
  837. Animation35.Parent = StringValue34
  838. Animation35.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  839. StringValue36.Name = "run"
  840. StringValue36.Parent = Script24
  841. Animation37.Name = "RunAnim"
  842. Animation37.Parent = StringValue36
  843. Animation37.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  844. StringValue38.Name = "toolnone"
  845. StringValue38.Parent = Script24
  846. Animation39.Name = "ToolNoneAnim"
  847. Animation39.Parent = StringValue38
  848. Animation39.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  849. StringValue40.Name = "walk"
  850. StringValue40.Parent = Script24
  851. Animation41.Name = "WalkAnim"
  852. Animation41.Parent = StringValue40
  853. Animation41.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  854. Shirt42.Parent = Model0
  855. Shirt42.ShirtTemplate = "rbxassetid://1061437532"
  856. Animation43.Name = "Swing"
  857. Animation43.Parent = Model0
  858. Animation43.AnimationId = "rbxassetid://94161088"
  859. Script44.Name = "MonsterMain"
  860. Script44.Parent = Model0
  861. table.insert(cors,sandbox(Script44,function()
  862. --[[ By: Brutez. ]]--
  863. local JeffTheKillerScript=script;
  864. repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
  865. local JeffTheKiller=JeffTheKillerScript.Parent;
  866. function raycast(Spos,vec,currentdist)
  867. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
  868. if hit2~=nil and pos2 then
  869. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  870. local currentdist=currentdist-(pos2-Spos).magnitude;
  871. return raycast(pos2,vec,currentdist);
  872. end;
  873. end;
  874. return hit2,pos2;
  875. end;
  876. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  877. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  878. end;
  879. --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
  880. --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
  881. --[[end;]]--
  882. local JeffTheKillerHumanoid;
  883. for _,Child in pairs(JeffTheKiller:GetChildren())do
  884. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  885. JeffTheKillerHumanoid=Child;
  886. end;
  887. end;
  888. local AttackDebounce=false;
  889. local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Knife");
  890. local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
  891. local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
  892. local WalkDebounce=false;
  893. local Notice=false;
  894. local JeffLaughDebounce=false;
  895. local MusicDebounce=false;
  896. local NoticeDebounce=false;
  897. local ChosenMusic;
  898. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  899. local OriginalC0=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
  900. function FindNearestBae()
  901. local NoticeDistance=100;
  902. local TargetMain;
  903. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  904. 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
  905. local TargetPart=TargetModel:FindFirstChild("Torso");
  906. local FoundHumanoid;
  907. for _,Child in pairs(TargetModel:GetChildren())do
  908. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  909. FoundHumanoid=Child;
  910. end;
  911. end;
  912. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
  913. TargetMain=TargetPart;
  914. NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
  915. local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
  916. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  917. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
  918. Spawn(function()
  919. AttackDebounce=true;
  920. local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
  921. local SwingChoice=math.random(1,2);
  922. local HitChoice=math.random(1,3);
  923. SwingAnimation:Play();
  924. SwingAnimation:AdjustSpeed(1.5+(math.random()*0.1));
  925. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
  926. local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
  927. SwingSound.Pitch=1+(math.random()*0.04);
  928. SwingSound:Play();
  929. end;
  930. Wait(0.3);
  931. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<8 then
  932. FoundHumanoid:TakeDamage(30);
  933. if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
  934. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
  935. HitSound.Pitch=1+(math.random()*0.04);
  936. HitSound:Play();
  937. elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
  938. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
  939. HitSound.Pitch=1+(math.random()*0.04);
  940. HitSound:Play();
  941. elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
  942. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
  943. HitSound.Pitch=1+(math.random()*0.04);
  944. HitSound:Play();
  945. end;
  946. end;
  947. Wait(0.1);
  948. AttackDebounce=false;
  949. end);
  950. end;
  951. end;
  952. end;
  953. end;
  954. end;
  955. return TargetMain;
  956. end;
  957. while Wait(0)do
  958. local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
  959. 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})
  960. local Jumpable=false;
  961. if Blockage then
  962. Jumpable=true;
  963. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  964. local BlockageHumanoid;
  965. for _,Child in pairs(Blockage.Parent:GetChildren())do
  966. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  967. BlockageHumanoid=Child;
  968. end;
  969. end;
  970. if Blockage and Blockage:IsA("Terrain")then
  971. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  972. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  973. if CellMaterial==Enum.CellMaterial.Water then
  974. Jumpable=false;
  975. end;
  976. 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
  977. Jumpable=false;
  978. end;
  979. end;
  980. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
  981. JeffTheKillerHumanoid.Jump=true;
  982. end;
  983. end;
  984. 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
  985. Spawn(function()
  986. WalkDebounce=true;
  987. local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
  988. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
  989. if RayTarget then
  990. local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
  991. JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
  992. JeffTheKillerHeadFootStepClone:Play();
  993. JeffTheKillerHeadFootStepClone:Destroy();
  994. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
  995. Wait(0.4);
  996. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
  997. Wait(0.15);
  998. end
  999. end;
  1000. WalkDebounce=false;
  1001. end);
  1002. end;
  1003. local MainTarget=FindNearestBae();
  1004. local FoundHumanoid;
  1005. if MainTarget then
  1006. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  1007. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1008. FoundHumanoid=Child;
  1009. end;
  1010. end;
  1011. end;
  1012. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
  1013. JeffTheKillerHumanoid.Jump=true;
  1014. end;
  1015. 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
  1016. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and not JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1017. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=1;
  1018. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Play();
  1019. end;
  1020. 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
  1021. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1022. if not JeffLaughDebounce then
  1023. Spawn(function()
  1024. JeffLaughDebounce=true;
  1025. 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;
  1026. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1027. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1028. JeffLaughDebounce=false;
  1029. end);
  1030. end;
  1031. end;
  1032. end;
  1033. 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
  1034. local MusicChoice=math.random(1,2);
  1035. if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
  1036. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
  1037. elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
  1038. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
  1039. end;
  1040. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
  1041. ChosenMusic.Volume=0.5;
  1042. ChosenMusic:Play();
  1043. end;
  1044. 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
  1045. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
  1046. if not MusicDebounce then
  1047. Spawn(function()
  1048. MusicDebounce=true;
  1049. 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;
  1050. if ChosenMusic then
  1051. ChosenMusic.Volume=0;
  1052. ChosenMusic:Stop();
  1053. end;
  1054. ChosenMusic=nil;
  1055. MusicDebounce=false;
  1056. end);
  1057. end;
  1058. end;
  1059. end;
  1060. if not MainTarget and not JeffLaughDebounce then
  1061. Spawn(function()
  1062. JeffLaughDebounce=true;
  1063. 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;
  1064. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1065. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1066. JeffLaughDebounce=false;
  1067. end);
  1068. end;
  1069. if not MainTarget and not MusicDebounce then
  1070. Spawn(function()
  1071. MusicDebounce=true;
  1072. 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;
  1073. if ChosenMusic then
  1074. ChosenMusic.Volume=0;
  1075. ChosenMusic:Stop();
  1076. end;
  1077. ChosenMusic=nil;
  1078. MusicDebounce=false;
  1079. end);
  1080. end;
  1081. if MainTarget then
  1082. Notice=true;
  1083. if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Susto2")then
  1084. JeffTheKillerHead:FindFirstChild("Jeff_Susto2"):Play();
  1085. NoticeDebounce=true;
  1086. end
  1087. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1088. if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
  1089. JeffTheKillerHumanoid.WalkSpeed=30;
  1090. elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
  1091. JeffTheKillerHumanoid.WalkSpeed=0.004;
  1092. end;
  1093. JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1094. local NeckRotation=(JeffTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
  1095. if NeckRotation>-1.5 and NeckRotation<1.5 then
  1096. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
  1097. end;
  1098. if NeckRotation<-1.5 then
  1099. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
  1100. elseif NeckRotation>1.5 then
  1101. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
  1102. end;
  1103. else
  1104. end;
  1105. else
  1106. Notice=false;
  1107. NoticeDebounce=false;
  1108. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1109. local RandomWalk=math.random(1,150);
  1110. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1111. JeffTheKillerHumanoid.WalkSpeed=12;
  1112. if RandomWalk==1 then
  1113. JeffTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1114. end;
  1115. end;
  1116. end;
  1117. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
  1118. JeffTheKillerHumanoid.DisplayDistanceType="None";
  1119. JeffTheKillerHumanoid.HealthDisplayDistance=0;
  1120. JeffTheKillerHumanoid.Name="ColdBloodedKiller";
  1121. JeffTheKillerHumanoid.NameDisplayDistance=0;
  1122. JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
  1123. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1124. JeffTheKillerHumanoid.AutoRotate=true;
  1125. JeffTheKillerHumanoid.MaxHealth=500;
  1126. JeffTheKillerHumanoid.JumpPower=60;
  1127. JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
  1128. end;
  1129. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
  1130. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1131. end;
  1132. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
  1133. JeffTheKillerHumanoid.AutoRotate=true;
  1134. end;
  1135. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
  1136. JeffTheKillerHumanoid.PlatformStand=false;
  1137. end;
  1138. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
  1139. JeffTheKillerHumanoid.Sit=false;
  1140. end;
  1141. end;
  1142. --[[ By: Brutez. ]]--
  1143. end))
  1144. BodyColors45.Parent = Model0
  1145. BodyColors45.HeadColor = BrickColor.new("Lime green")
  1146. BodyColors45.LeftArmColor = BrickColor.new("Lime green")
  1147. BodyColors45.LeftLegColor = BrickColor.new("Lime green")
  1148. BodyColors45.RightArmColor = BrickColor.new("Lime green")
  1149. BodyColors45.RightLegColor = BrickColor.new("Lime green")
  1150. BodyColors45.TorsoColor = BrickColor.new("Lime green")
  1151. Sound46.Name = "BossMusic"
  1152. Sound46.Parent = Model0
  1153. Sound46.SoundId = "rbxassetid://1071438257"
  1154. Sound46.Volume = 2
  1155. Sound46.Looped = true
  1156. Script47.Parent = Sound46
  1157. table.insert(cors,sandbox(Script47,function()
  1158. wait(1)
  1159. script.Parent:Play()
  1160. end))
  1161. Script48.Name = "Sound"
  1162. Script48.Parent = Model0
  1163. table.insert(cors,sandbox(Script48,function()
  1164. -- util
  1165.  
  1166. function waitForChild(parent, childName)
  1167. local child = parent:findFirstChild(childName)
  1168. if child then return child end
  1169. while true do
  1170. child = parent.ChildAdded:wait()
  1171. if child.Name==childName then return child end
  1172. end
  1173. end
  1174.  
  1175. function newSound(id)
  1176. local sound = Instance.new("Sound")
  1177. sound.SoundId = id
  1178. sound.archivable = false
  1179. sound.Parent = script.Parent.Head
  1180. return sound
  1181. end
  1182.  
  1183. -- declarations
  1184.  
  1185. local sDied = newSound("rbxassetid://133918674")
  1186. sDied.Pitch = 1
  1187. sDied.Volume = 1
  1188. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1189. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1190. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1191. local sJumping = newSound("rbxasset://sounds/button.wav")
  1192. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1193. sRunning.Looped = true
  1194.  
  1195. local Figure = script.Parent
  1196. local Head = waitForChild(Figure, "Head")
  1197. local Humanoid = waitForChild(Figure, "Humanoid")
  1198.  
  1199. -- functions
  1200.  
  1201. function onDied()
  1202. sDied:Play()
  1203. wait(2.5)
  1204. script.Parent:Destroy()
  1205. end
  1206.  
  1207. function onState(state, sound)
  1208. if state then
  1209. sound:Play()
  1210. else
  1211. sound:Pause()
  1212. end
  1213. end
  1214.  
  1215. function onRunning(speed)
  1216. if speed>0 then
  1217. sRunning:Play()
  1218. else
  1219. sRunning:Pause()
  1220. end
  1221. end
  1222.  
  1223. -- connect up
  1224.  
  1225. Humanoid.Died:connect(onDied)
  1226. Humanoid.Running:connect(onRunning)
  1227. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1228. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1229. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1230. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1231.  
  1232. end))
  1233. Humanoid49.Parent = Model0
  1234. Humanoid49.RightLeg = Part17
  1235. Humanoid49.LeftLeg = Part16
  1236. Humanoid49.Torso = Part1
  1237. Humanoid49.Health = 10000
  1238. Humanoid49.MaxHealth = 10000
  1239. Humanoid49.WalkSpeed = 14
  1240. Tool50.Name = "Cain saw"
  1241. Tool50.Parent = Model0
  1242. Tool50.GripForward = Vector3.new(0.0830454826, -0.996545732, -0)
  1243. Tool50.GripPos = Vector3.new(0, 0, 1.5)
  1244. Tool50.GripRight = Vector3.new(0.996545732, 0.0830454826, 0)
  1245. Tool50.GripUp = Vector3.new(0, 0, -1)
  1246. Part51.Name = "Handle"
  1247. Part51.Parent = Tool50
  1248. Part51.BrickColor = BrickColor.new("Dark stone grey")
  1249. Part51.Reflectance = 0.40000000596046
  1250. Part51.Rotation = Vector3.new(0, 0, -4.75999975)
  1251. Part51.CanCollide = false
  1252. Part51.FormFactor = Enum.FormFactor.Plate
  1253. Part51.Size = Vector3.new(1, 0.800000012, 4)
  1254. Part51.CFrame = CFrame.new(-28.5, 2.00001001, -12.5, 0.996545732, 0.0830454826, 0, -0.0830454752, 0.996545613, 0, 0, 0, 1)
  1255. Part51.BottomSurface = Enum.SurfaceType.Smooth
  1256. Part51.TopSurface = Enum.SurfaceType.Smooth
  1257. Part51.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1258. Part51.Position = Vector3.new(-28.5, 2.00001001, -12.5)
  1259. Part51.Orientation = Vector3.new(0, 0, -4.75999975)
  1260. Part51.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1261. SpecialMesh52.Parent = Part51
  1262. SpecialMesh52.MeshId = "http://www.roblox.com/asset/?id=2766469"
  1263. SpecialMesh52.Scale = Vector3.new(1, 1, 1.29999995)
  1264. SpecialMesh52.TextureId = "rbxasset://textures/SwordTexture.png"
  1265. SpecialMesh52.MeshType = Enum.MeshType.FileMesh
  1266. SpecialMesh52.Scale = Vector3.new(1, 1, 1.29999995)
  1267. Sound53.Parent = Part51
  1268. Sound54.Parent = Part51
  1269. Sound55.Parent = Part51
  1270. Sound55.Volume = 0.69999998807907
  1271. Sound56.Parent = Part51
  1272. Sound56.Volume = 1
  1273. Sound57.Parent = Part51
  1274. Sound57.SoundId = "http://www.roblox.com/asset/?id=2766589"
  1275. Sound57.Volume = 1
  1276. Sound58.Parent = Part51
  1277. Sound58.Volume = 0.69999998807907
  1278. Sound59.Parent = Part51
  1279. Sound59.Volume = 1
  1280. Sound60.Parent = Part51
  1281. Sound60.Volume = 0.69999998807907
  1282. Sound61.Parent = Part51
  1283. Sound61.Volume = 1
  1284. Sound62.Parent = Part51
  1285. Sound62.Volume = 0.69999998807907
  1286. Sound63.Parent = Part51
  1287. Sound63.Volume = 1
  1288. Sound64.Parent = Part51
  1289. Sound64.Volume = 0.69999998807907
  1290. Sound65.Parent = Part51
  1291. Sound65.Volume = 1
  1292. Sound66.Parent = Part51
  1293. Sound66.Volume = 0.69999998807907
  1294. Sound67.Parent = Part51
  1295. Sound67.Volume = 1
  1296. Sound68.Parent = Part51
  1297. Sound68.Volume = 0.69999998807907
  1298. Sound69.Parent = Part51
  1299. Sound69.Volume = 1
  1300. Sound70.Parent = Part51
  1301. Sound70.Volume = 0.69999998807907
  1302. Sound71.Parent = Part51
  1303. Sound71.Volume = 1
  1304. Sound72.Parent = Part51
  1305. Sound72.Volume = 0.69999998807907
  1306. Sound73.Parent = Part51
  1307. Sound73.Volume = 1
  1308. Sound74.Parent = Part51
  1309. Sound74.Volume = 0.69999998807907
  1310. Sound75.Parent = Part51
  1311. Sound75.Volume = 1
  1312. Sound76.Parent = Part51
  1313. Sound76.Volume = 0.69999998807907
  1314. Sound77.Parent = Part51
  1315. Sound77.Volume = 1
  1316. Sound78.Parent = Part51
  1317. Sound78.Volume = 0.69999998807907
  1318. Sound79.Parent = Part51
  1319. Sound79.Volume = 1
  1320. Sound80.Parent = Part51
  1321. Sound80.Volume = 0.69999998807907
  1322. Sound81.Parent = Part51
  1323. Sound81.Volume = 1
  1324. Sound82.Parent = Part51
  1325. Sound82.Volume = 0.69999998807907
  1326. Sound83.Parent = Part51
  1327. Sound83.Volume = 1
  1328. Sound84.Parent = Part51
  1329. Sound84.Volume = 0.69999998807907
  1330. Sound85.Parent = Part51
  1331. Sound85.Volume = 1
  1332. Sound86.Parent = Part51
  1333. Sound86.Volume = 0.69999998807907
  1334. Sound87.Parent = Part51
  1335. Sound87.Volume = 1
  1336. Sound88.Parent = Part51
  1337. Sound88.Volume = 0.69999998807907
  1338. Sound89.Parent = Part51
  1339. Sound89.Volume = 1
  1340. Sound90.Parent = Part51
  1341. Sound90.Volume = 0.69999998807907
  1342. Sound91.Parent = Part51
  1343. Sound91.Volume = 1
  1344. Sound92.Parent = Part51
  1345. Sound92.Volume = 0.69999998807907
  1346. Sound93.Parent = Part51
  1347. Sound93.Volume = 1
  1348. LocalScript94.Name = "Local Gui"
  1349. LocalScript94.Parent = Tool50
  1350. Script95.Name = "Sword Script"
  1351. Script95.Parent = Tool50
  1352. table.insert(cors,sandbox(Script95,function()
  1353. -------- OMG HAX
  1354.  
  1355. r = game:service("RunService")
  1356.  
  1357.  
  1358. local damage = 50
  1359.  
  1360.  
  1361. local slash_damage = 50
  1362.  
  1363. sword = script.Parent.Handle
  1364. Tool = script.Parent
  1365.  
  1366.  
  1367. local SlashSound = Instance.new("Sound")
  1368. SlashSound.SoundId = "ca44f4f00def1e47ab481d97fe3586ce"
  1369. SlashSound.Parent = sword
  1370. SlashSound.Volume = .7
  1371.  
  1372. local UnsheathSound = Instance.new("Sound")
  1373. UnsheathSound.SoundId = "db5eaca58f42785dd69a16c6df0e765d"
  1374. UnsheathSound.Parent = sword
  1375. UnsheathSound.Volume = 1
  1376.  
  1377.  
  1378.  
  1379. function blow(hit)
  1380. local humanoid = hit.Parent:findFirstChild("Zombie")
  1381. local vCharacter = Tool.Parent
  1382. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1383. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1384. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1385. print("SWORD HIT")
  1386. tagHumanoid(humanoid, vPlayer)
  1387. humanoid:TakeDamage(damage)
  1388. wait(1)
  1389. untagHumanoid(humanoid)
  1390. end
  1391. end
  1392.  
  1393.  
  1394. function tagHumanoid(humanoid, player)
  1395. local creator_tag = Instance.new("ObjectValue")
  1396. creator_tag.Value = player
  1397. creator_tag.Name = "creator"
  1398. creator_tag.Parent = humanoid
  1399. end
  1400.  
  1401. function untagHumanoid(humanoid)
  1402. if humanoid ~= nil then
  1403. local tag = humanoid:findFirstChild("creator")
  1404. if tag ~= nil then
  1405. tag.Parent = nil
  1406. end
  1407. end
  1408. end
  1409.  
  1410.  
  1411. function attack()
  1412. damage = slash_damage
  1413. SlashSound:play()
  1414. local anim = Instance.new("StringValue")
  1415. anim.Name = "toolanim"
  1416. anim.Value = "Slash"
  1417. anim.Parent = Tool
  1418. end
  1419.  
  1420.  
  1421. function swordUp()
  1422. Tool.GripForward = Vector3.new(-1.1,0,0)
  1423. Tool.GripRight = Vector3.new(0,1,0)
  1424. Tool.GripUp = Vector3.new(0,0,1)
  1425. end
  1426.  
  1427. function swordOut()
  1428. Tool.GripForward = Vector3.new(0,0,1)
  1429. Tool.GripRight = Vector3.new(0,-1,0)
  1430. Tool.GripUp = Vector3.new(-1,0,0)
  1431. end
  1432.  
  1433. function swordAcross()
  1434. -- parry
  1435. end
  1436.  
  1437.  
  1438. Tool.Enabled = true
  1439. local last_attack = 0
  1440. function onActivated()
  1441.  
  1442. if not Tool.Enabled then
  1443. return
  1444. end
  1445.  
  1446. Tool.Enabled = false
  1447.  
  1448. local character = Tool.Parent;
  1449. local humanoid = character.Humanoid
  1450. if humanoid == nil then
  1451. print("Humanoid not found")
  1452. return
  1453. end
  1454.  
  1455. t = r.Stepped:wait()
  1456. attack()
  1457. last_attack = t
  1458.  
  1459. --wait(.5)
  1460.  
  1461. Tool.Enabled = true
  1462. end
  1463.  
  1464.  
  1465. function onEquipped()
  1466. UnsheathSound:play()
  1467. end
  1468.  
  1469.  
  1470. script.Parent.Activated:connect(onActivated)
  1471. script.Parent.Equipped:connect(onEquipped)
  1472.  
  1473.  
  1474. connection = sword.Touched:connect(blow)
  1475.  
  1476.  
  1477.  
  1478. end))
  1479. ShirtGraphic96.Parent = Model0
  1480. ShirtGraphic96.Graphic = "http://www.roblox.com/asset/?id=11149596"
  1481. Script97.Name = "HealthBarGUIScript"
  1482. Script97.Parent = Model0
  1483. table.insert(cors,sandbox(Script97,function()
  1484. Humanoid = script.Parent.Humanoid
  1485.  
  1486. function GainCharge(Humanoid)
  1487. Humanoid.Parent.Torso.Healthbar.Frame.Full.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  1488. if Humanoid.Health >= Humanoid.MaxHealth/2 then
  1489. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(0,200/255,0)
  1490. elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
  1491. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,0,0)
  1492. elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
  1493. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,0,0)
  1494. end
  1495. end
  1496.  
  1497. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  1498. end))
  1499. for i,v in pairs(mas:GetChildren()) do
  1500. v.Parent = script
  1501. pcall(function() v:MakeJoints() end)
  1502. end
  1503. mas:Destroy()
  1504. for i,v in pairs(cors) do
  1505. spawn(function()
  1506. pcall(v)
  1507. end)
  1508. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement