Advertisement
Animescapetower

okay this is a enemy

Mar 12th, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.23 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. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Part0 = Instance.new("Part")
  26. Backpack1 = Instance.new("Backpack")
  27. Backpack2 = Instance.new("Backpack")
  28. Model3 = Instance.new("Model")
  29. Part4 = Instance.new("Part")
  30. SpecialMesh5 = Instance.new("SpecialMesh")
  31. Attachment6 = Instance.new("Attachment")
  32. Attachment7 = Instance.new("Attachment")
  33. Attachment8 = Instance.new("Attachment")
  34. Attachment9 = Instance.new("Attachment")
  35. Decal10 = Instance.new("Decal")
  36. Part11 = Instance.new("Part")
  37. Motor6D12 = Instance.new("Motor6D")
  38. Part13 = Instance.new("Part")
  39. Attachment14 = Instance.new("Attachment")
  40. Part15 = Instance.new("Part")
  41. Part16 = Instance.new("Part")
  42. Attachment17 = Instance.new("Attachment")
  43. Weld18 = Instance.new("Weld")
  44. Part19 = Instance.new("Part")
  45. Part20 = Instance.new("Part")
  46. Decal21 = Instance.new("Decal")
  47. Motor6D22 = Instance.new("Motor6D")
  48. Motor6D23 = Instance.new("Motor6D")
  49. Motor6D24 = Instance.new("Motor6D")
  50. Motor6D25 = Instance.new("Motor6D")
  51. Motor6D26 = Instance.new("Motor6D")
  52. Attachment27 = Instance.new("Attachment")
  53. Attachment28 = Instance.new("Attachment")
  54. Attachment29 = Instance.new("Attachment")
  55. Attachment30 = Instance.new("Attachment")
  56. Attachment31 = Instance.new("Attachment")
  57. Attachment32 = Instance.new("Attachment")
  58. Attachment33 = Instance.new("Attachment")
  59. Attachment34 = Instance.new("Attachment")
  60. Humanoid35 = Instance.new("Humanoid")
  61. Accessory36 = Instance.new("Accessory")
  62. Part37 = Instance.new("Part")
  63. SpecialMesh38 = Instance.new("SpecialMesh")
  64. Attachment39 = Instance.new("Attachment")
  65. Weld40 = Instance.new("Weld")
  66. Accessory41 = Instance.new("Accessory")
  67. Part42 = Instance.new("Part")
  68. SpecialMesh43 = Instance.new("SpecialMesh")
  69. Attachment44 = Instance.new("Attachment")
  70. Weld45 = Instance.new("Weld")
  71. ShirtGraphic46 = Instance.new("ShirtGraphic")
  72. Accessory47 = Instance.new("Accessory")
  73. Part48 = Instance.new("Part")
  74. SpecialMesh49 = Instance.new("SpecialMesh")
  75. Attachment50 = Instance.new("Attachment")
  76. Vector3Value51 = Instance.new("Vector3Value")
  77. Weld52 = Instance.new("Weld")
  78. Accessory53 = Instance.new("Accessory")
  79. Part54 = Instance.new("Part")
  80. SpecialMesh55 = Instance.new("SpecialMesh")
  81. Attachment56 = Instance.new("Attachment")
  82. Vector3Value57 = Instance.new("Vector3Value")
  83. Weld58 = Instance.new("Weld")
  84. Accessory59 = Instance.new("Accessory")
  85. Part60 = Instance.new("Part")
  86. SpecialMesh61 = Instance.new("SpecialMesh")
  87. Attachment62 = Instance.new("Attachment")
  88. Weld63 = Instance.new("Weld")
  89. Accessory64 = Instance.new("Accessory")
  90. Part65 = Instance.new("Part")
  91. SpecialMesh66 = Instance.new("SpecialMesh")
  92. Attachment67 = Instance.new("Attachment")
  93. Vector3Value68 = Instance.new("Vector3Value")
  94. Weld69 = Instance.new("Weld")
  95. Accessory70 = Instance.new("Accessory")
  96. Part71 = Instance.new("Part")
  97. SpecialMesh72 = Instance.new("SpecialMesh")
  98. Attachment73 = Instance.new("Attachment")
  99. Vector3Value74 = Instance.new("Vector3Value")
  100. Weld75 = Instance.new("Weld")
  101. Pants76 = Instance.new("Pants")
  102. Accessory77 = Instance.new("Accessory")
  103. Part78 = Instance.new("Part")
  104. SpecialMesh79 = Instance.new("SpecialMesh")
  105. Attachment80 = Instance.new("Attachment")
  106. Weld81 = Instance.new("Weld")
  107. Accessory82 = Instance.new("Accessory")
  108. Part83 = Instance.new("Part")
  109. SpecialMesh84 = Instance.new("SpecialMesh")
  110. Attachment85 = Instance.new("Attachment")
  111. Vector3Value86 = Instance.new("Vector3Value")
  112. Weld87 = Instance.new("Weld")
  113. BodyColors88 = Instance.new("BodyColors")
  114. Tool89 = Instance.new("Tool")
  115. Part90 = Instance.new("Part")
  116. PointLight91 = Instance.new("PointLight")
  117. PointLight92 = Instance.new("PointLight")
  118. Script93 = Instance.new("Script")
  119. Script94 = Instance.new("Script")
  120. Sparkles95 = Instance.new("Sparkles")
  121. Fire96 = Instance.new("Fire")
  122. SpecialMesh97 = Instance.new("SpecialMesh")
  123. BoolValue98 = Instance.new("BoolValue")
  124. BoolValue99 = Instance.new("BoolValue")
  125. BoolValue100 = Instance.new("BoolValue")
  126. Script101 = Instance.new("Script")
  127. Script102 = Instance.new("Script")
  128. Script103 = Instance.new("Script")
  129. Script104 = Instance.new("Script")
  130. Script105 = Instance.new("Script")
  131. BoolValue106 = Instance.new("BoolValue")
  132. IntValue107 = Instance.new("IntValue")
  133. BoolValue108 = Instance.new("BoolValue")
  134. BoolValue109 = Instance.new("BoolValue")
  135. Script110 = Instance.new("Script")
  136. Part0.Name = "Baseplate"
  137. Part0.Parent = mas
  138. Part0.BrickColor = BrickColor.new("Dark stone grey")
  139. Part0.Anchored = true
  140. Part0.Locked = true
  141. Part0.FormFactor = Enum.FormFactor.Symmetric
  142. Part0.Size = Vector3.new(512, 20, 512)
  143. Part0.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  144. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  145. Part0.Position = Vector3.new(0, -10, 0)
  146. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  147. Backpack1.Name = "_CPData"
  148. Backpack1.Parent = mas
  149. Backpack2.Name = "_CPData"
  150. Backpack2.Parent = mas
  151. Model3.Name = "Animescapetower"
  152. Model3.Parent = mas
  153. Model3.PrimaryPart = Part11
  154. Part4.Name = "Head"
  155. Part4.Parent = Model3
  156. Part4.BrickColor = BrickColor.new("White")
  157. Part4.FormFactor = Enum.FormFactor.Symmetric
  158. Part4.Size = Vector3.new(2, 1, 1)
  159. Part4.CFrame = CFrame.new(9.25994778, 4.50001717, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  160. Part4.TopSurface = Enum.SurfaceType.Smooth
  161. Part4.Color = Color3.new(0.94902, 0.952941, 0.952941)
  162. Part4.Position = Vector3.new(9.25994778, 4.50001717, -21.4899559)
  163. Part4.Color = Color3.new(0.94902, 0.952941, 0.952941)
  164. SpecialMesh5.Parent = Part4
  165. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  166. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  167. Attachment6.Name = "HatAttachment"
  168. Attachment6.Parent = Part4
  169. Attachment6.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. Attachment6.Position = Vector3.new(0, 0.600000024, 0)
  171. Attachment7.Name = "HairAttachment"
  172. Attachment7.Parent = Part4
  173. Attachment7.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  174. Attachment7.Position = Vector3.new(0, 0.600000024, 0)
  175. Attachment8.Name = "FaceFrontAttachment"
  176. Attachment8.Parent = Part4
  177. Attachment8.CFrame = CFrame.new(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178. Attachment8.Position = Vector3.new(0, 0, -0.600000024)
  179. Attachment9.Name = "FaceCenterAttachment"
  180. Attachment9.Parent = Part4
  181. Decal10.Name = "face"
  182. Decal10.Parent = Part4
  183. Decal10.Texture = "http://www.roblox.com/asset/?id=10749463"
  184. Part11.Name = "HumanoidRootPart"
  185. Part11.Parent = Model3
  186. Part11.Transparency = 1
  187. Part11.CanCollide = false
  188. Part11.FormFactor = Enum.FormFactor.Symmetric
  189. Part11.Size = Vector3.new(2, 2, 1)
  190. Part11.CFrame = CFrame.new(9.25994778, 3.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. Part11.BottomSurface = Enum.SurfaceType.Smooth
  192. Part11.TopSurface = Enum.SurfaceType.Smooth
  193. Part11.Position = Vector3.new(9.25994778, 3.00001693, -21.4899559)
  194. Motor6D12.Name = "RootJoint"
  195. Motor6D12.Parent = Part11
  196. Motor6D12.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  197. Motor6D12.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  198. Motor6D12.Part0 = Part11
  199. Motor6D12.Part1 = Part20
  200. Motor6D12.MaxVelocity = 0.10000000149012
  201. Part13.Name = "Left Arm"
  202. Part13.Parent = Model3
  203. Part13.BrickColor = BrickColor.new("Really black")
  204. Part13.CanCollide = false
  205. Part13.FormFactor = Enum.FormFactor.Symmetric
  206. Part13.Size = Vector3.new(1, 2, 1)
  207. Part13.CFrame = CFrame.new(7.75994778, 3.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  208. Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  209. Part13.Position = Vector3.new(7.75994778, 3.00001693, -21.4899559)
  210. Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  211. Attachment14.Name = "LeftShoulderAttachment"
  212. Attachment14.Parent = Part13
  213. Attachment14.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  214. Attachment14.Position = Vector3.new(0, 1, 0)
  215. Part15.Name = "Left Leg"
  216. Part15.Parent = Model3
  217. Part15.BrickColor = BrickColor.new("Really black")
  218. Part15.CanCollide = false
  219. Part15.FormFactor = Enum.FormFactor.Symmetric
  220. Part15.Size = Vector3.new(1, 2, 1)
  221. Part15.CFrame = CFrame.new(8.75994778, 1.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  222. Part15.BottomSurface = Enum.SurfaceType.Smooth
  223. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  224. Part15.Position = Vector3.new(8.75994778, 1.00001693, -21.4899559)
  225. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  226. Part16.Name = "Right Arm"
  227. Part16.Parent = Model3
  228. Part16.BrickColor = BrickColor.new("Really black")
  229. Part16.CanCollide = false
  230. Part16.FormFactor = Enum.FormFactor.Symmetric
  231. Part16.Size = Vector3.new(1, 2, 1)
  232. Part16.CFrame = CFrame.new(10.7599478, 3.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  233. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  234. Part16.Position = Vector3.new(10.7599478, 3.00001693, -21.4899559)
  235. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  236. Attachment17.Name = "RightShoulderAttachment"
  237. Attachment17.Parent = Part16
  238. Attachment17.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  239. Attachment17.Position = Vector3.new(0, 1, 0)
  240. Weld18.Name = "RightGrip"
  241. Weld18.Parent = Part16
  242. Weld18.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
  243. Weld18.C1 = CFrame.new(0, -2.29999995, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  244. Weld18.Part0 = Part16
  245. Weld18.Part1 = Part90
  246. Part19.Name = "Right Leg"
  247. Part19.Parent = Model3
  248. Part19.BrickColor = BrickColor.new("Really black")
  249. Part19.CanCollide = false
  250. Part19.FormFactor = Enum.FormFactor.Symmetric
  251. Part19.Size = Vector3.new(1, 2, 1)
  252. Part19.CFrame = CFrame.new(9.75994778, 1.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  253. Part19.BottomSurface = Enum.SurfaceType.Smooth
  254. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  255. Part19.Position = Vector3.new(9.75994778, 1.00001693, -21.4899559)
  256. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  257. Part20.Name = "Torso"
  258. Part20.Parent = Model3
  259. Part20.BrickColor = BrickColor.new("Dark stone grey")
  260. Part20.FormFactor = Enum.FormFactor.Symmetric
  261. Part20.Size = Vector3.new(2, 2, 1)
  262. Part20.CFrame = CFrame.new(9.25994778, 3.00001693, -21.4899559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  263. Part20.LeftSurface = Enum.SurfaceType.Weld
  264. Part20.RightSurface = Enum.SurfaceType.Weld
  265. Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  266. Part20.Position = Vector3.new(9.25994778, 3.00001693, -21.4899559)
  267. Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  268. Decal21.Name = "roblox"
  269. Decal21.Parent = Part20
  270. Decal21.Texture = "http://www.roblox.com/asset/?id=278664920"
  271. Motor6D22.Name = "Right Shoulder"
  272. Motor6D22.Parent = Part20
  273. Motor6D22.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  274. Motor6D22.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  275. Motor6D22.Part0 = Part20
  276. Motor6D22.Part1 = Part16
  277. Motor6D22.MaxVelocity = 0.10000000149012
  278. Motor6D23.Name = "Right Hip"
  279. Motor6D23.Parent = Part20
  280. Motor6D23.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  281. Motor6D23.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  282. Motor6D23.Part0 = Part20
  283. Motor6D23.Part1 = Part19
  284. Motor6D23.MaxVelocity = 0.10000000149012
  285. Motor6D24.Name = "Neck"
  286. Motor6D24.Parent = Part20
  287. Motor6D24.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  288. Motor6D24.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  289. Motor6D24.Part0 = Part20
  290. Motor6D24.Part1 = Part4
  291. Motor6D24.MaxVelocity = 0.10000000149012
  292. Motor6D25.Name = "Left Shoulder"
  293. Motor6D25.Parent = Part20
  294. Motor6D25.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  295. Motor6D25.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  296. Motor6D25.Part0 = Part20
  297. Motor6D25.Part1 = Part13
  298. Motor6D25.MaxVelocity = 0.10000000149012
  299. Motor6D26.Name = "Left Hip"
  300. Motor6D26.Parent = Part20
  301. Motor6D26.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  302. Motor6D26.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  303. Motor6D26.Part0 = Part20
  304. Motor6D26.Part1 = Part15
  305. Motor6D26.MaxVelocity = 0.10000000149012
  306. Attachment27.Name = "WaistFrontAttachment"
  307. Attachment27.Parent = Part20
  308. Attachment27.CFrame = CFrame.new(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  309. Attachment27.Position = Vector3.new(0, -1, -0.5)
  310. Attachment28.Name = "WaistCenterAttachment"
  311. Attachment28.Parent = Part20
  312. Attachment28.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  313. Attachment28.Position = Vector3.new(0, -1, 0)
  314. Attachment29.Name = "WaistBackAttachment"
  315. Attachment29.Parent = Part20
  316. Attachment29.CFrame = CFrame.new(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  317. Attachment29.Position = Vector3.new(0, -1, 0.5)
  318. Attachment30.Name = "RightCollarAttachment"
  319. Attachment30.Parent = Part20
  320. Attachment30.CFrame = CFrame.new(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  321. Attachment30.Position = Vector3.new(1, 1, 0)
  322. Attachment31.Name = "NeckAttachment"
  323. Attachment31.Parent = Part20
  324. Attachment31.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  325. Attachment31.Position = Vector3.new(0, 1, 0)
  326. Attachment32.Name = "LeftCollarAttachment"
  327. Attachment32.Parent = Part20
  328. Attachment32.CFrame = CFrame.new(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. Attachment32.Position = Vector3.new(-1, 1, 0)
  330. Attachment33.Name = "BodyFrontAttachment"
  331. Attachment33.Parent = Part20
  332. Attachment33.CFrame = CFrame.new(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  333. Attachment33.Position = Vector3.new(0, 0, -0.5)
  334. Attachment34.Name = "BodyBackAttachment"
  335. Attachment34.Parent = Part20
  336. Attachment34.CFrame = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  337. Attachment34.Position = Vector3.new(0, 0, 0.5)
  338. Humanoid35.Parent = Model3
  339. Humanoid35.RightLeg = Part19
  340. Humanoid35.LeftLeg = Part15
  341. Humanoid35.Torso = Part11
  342. Accessory36.Name = "RainbowWings"
  343. Accessory36.Parent = Model3
  344. Accessory36.AttachmentPos = Vector3.new(0, 0.5, -1.04999995)
  345. Part37.Name = "Handle"
  346. Part37.Parent = Accessory36
  347. Part37.Transparency = 0.20000000298023
  348. Part37.CanCollide = false
  349. Part37.FormFactor = Enum.FormFactor.Symmetric
  350. Part37.Size = Vector3.new(1, 1.41999996, 1)
  351. Part37.CFrame = CFrame.new(9.25994778, 4.50001717, -20.4396839, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  352. Part37.BottomSurface = Enum.SurfaceType.Smooth
  353. Part37.TopSurface = Enum.SurfaceType.Smooth
  354. Part37.Position = Vector3.new(9.25994778, 4.50001717, -20.4396839)
  355. SpecialMesh38.Parent = Part37
  356. SpecialMesh38.MeshId = "http://www.roblox.com/asset/?id=335060772 "
  357. SpecialMesh38.TextureId = "http://www.roblox.com/asset/?id=335060906"
  358. SpecialMesh38.MeshType = Enum.MeshType.FileMesh
  359. Attachment39.Name = "BodyBackAttachment"
  360. Attachment39.Parent = Part37
  361. Attachment39.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  362. Attachment39.CFrame = CFrame.new(-9.09494702e-13, -1.50000024, -0.550272346, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  363. Attachment39.Position = Vector3.new(-9.09494702e-13, -1.50000024, -0.550272346)
  364. Attachment39.Axis = Vector3.new(1, 6.83440315e-31, 0)
  365. Attachment39.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  366. Weld40.Name = "AccessoryWeld"
  367. Weld40.Parent = Part37
  368. Weld40.C0 = CFrame.new(-9.09494702e-13, -1.50000024, -0.550272346, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  369. Weld40.C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  370. Weld40.Part0 = Part37
  371. Weld40.Part1 = Part20
  372. Accessory41.Name = "FriendlySnowfOX"
  373. Accessory41.Parent = Model3
  374. Accessory41.AttachmentPos = Vector3.new(0, 1.79999995, 0)
  375. Part42.Name = "Handle"
  376. Part42.Parent = Accessory41
  377. Part42.CanCollide = false
  378. Part42.FormFactor = Enum.FormFactor.Custom
  379. Part42.Size = Vector3.new(0.720027149, 1.31999815, 1.91000271)
  380. Part42.CFrame = CFrame.new(10.2599478, 4.65001678, -21.3899555, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  381. Part42.BottomSurface = Enum.SurfaceType.Smooth
  382. Part42.TopSurface = Enum.SurfaceType.Smooth
  383. Part42.Position = Vector3.new(10.2599478, 4.65001678, -21.3899555)
  384. SpecialMesh43.Parent = Part42
  385. SpecialMesh43.MeshId = "rbxassetid://1241037817"
  386. SpecialMesh43.TextureId = "rbxassetid://1241038471"
  387. SpecialMesh43.MeshType = Enum.MeshType.FileMesh
  388. Attachment44.Name = "RightCollarAttachment"
  389. Attachment44.Parent = Part42
  390. Attachment44.CFrame = CFrame.new(0, -0.649999976, -0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  391. Attachment44.Position = Vector3.new(0, -0.649999976, -0.100000001)
  392. Weld45.Name = "AccessoryWeld"
  393. Weld45.Parent = Part42
  394. Weld45.C0 = CFrame.new(0, -0.649999976, -0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  395. Weld45.C1 = CFrame.new(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  396. Weld45.Part0 = Part42
  397. Weld45.Part1 = Part20
  398. ShirtGraphic46.Parent = Model3
  399. ShirtGraphic46.Graphic = "http://www.roblox.com/asset/?id=278664920"
  400. Accessory47.Name = "HeadlightSoundGear"
  401. Accessory47.Parent = Model3
  402. Accessory47.AttachmentPos = Vector3.new(0, 0.25, 0)
  403. Part48.Name = "Handle"
  404. Part48.Parent = Accessory47
  405. Part48.CanCollide = false
  406. Part48.FormFactor = Enum.FormFactor.Custom
  407. Part48.Size = Vector3.new(1.5999999, 0.799999833, 0.599999845)
  408. Part48.CFrame = CFrame.new(9.25994778, 4.75001717, -21.4896832, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  409. Part48.BottomSurface = Enum.SurfaceType.Smooth
  410. Part48.TopSurface = Enum.SurfaceType.Smooth
  411. Part48.Position = Vector3.new(9.25994778, 4.75001717, -21.4896832)
  412. SpecialMesh49.Parent = Part48
  413. SpecialMesh49.MeshId = "http://www.roblox.com/asset/?id=54582024"
  414. SpecialMesh49.TextureId = "http://www.roblox.com/asset/?id=139600792 "
  415. SpecialMesh49.MeshType = Enum.MeshType.FileMesh
  416. Attachment50.Name = "HatAttachment"
  417. Attachment50.Parent = Part48
  418. Attachment50.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  419. Attachment50.CFrame = CFrame.new(8.65838956e-09, 0.349999905, -0.000272244215, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  420. Attachment50.Position = Vector3.new(8.65838956e-09, 0.349999905, -0.000272244215)
  421. Attachment50.Axis = Vector3.new(1, -7.87137555e-09, 0)
  422. Attachment50.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  423. Vector3Value51.Name = "OriginalSize"
  424. Vector3Value51.Parent = Part48
  425. Vector3Value51.Value = Vector3.new(1.5999999, 0.799999833, 0.599999845)
  426. Weld52.Name = "AccessoryWeld"
  427. Weld52.Parent = Part48
  428. Weld52.C0 = CFrame.new(8.65838956e-09, 0.349999905, -0.000272244215, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  429. Weld52.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  430. Weld52.Part0 = Part48
  431. Weld52.Part1 = Part4
  432. Accessory53.Name = "WingwsHeaddess"
  433. Accessory53.Parent = Model3
  434. Accessory53.AttachmentPos = Vector3.new(-0.0500000007, 0.00999999978, -0.0799999982)
  435. Part54.Name = "Handle"
  436. Part54.Parent = Accessory53
  437. Part54.CanCollide = false
  438. Part54.FormFactor = Enum.FormFactor.Symmetric
  439. Part54.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  440. Part54.CFrame = CFrame.new(9.26494789, 5.08001709, -21.5099564, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  441. Part54.BottomSurface = Enum.SurfaceType.Smooth
  442. Part54.TopSurface = Enum.SurfaceType.Smooth
  443. Part54.Position = Vector3.new(9.26494789, 5.08001709, -21.5099564)
  444. SpecialMesh55.Parent = Part54
  445. SpecialMesh55.MeshId = "http://www.roblox.com/asset/?id=581009766"
  446. SpecialMesh55.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  447. SpecialMesh55.TextureId = "http://www.roblox.com/asset/?id=581008916"
  448. SpecialMesh55.MeshType = Enum.MeshType.FileMesh
  449. SpecialMesh55.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  450. Attachment56.Name = "HatAttachment"
  451. Attachment56.Parent = Part54
  452. Attachment56.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  453. Attachment56.CFrame = CFrame.new(-0.00499999989, 0.0199999996, 0.0199999996, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  454. Attachment56.Position = Vector3.new(-0.00499999989, 0.0199999996, 0.0199999996)
  455. Attachment56.Axis = Vector3.new(1, -7.87137555e-09, 0)
  456. Attachment56.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  457. Vector3Value57.Name = "OriginalSize"
  458. Vector3Value57.Parent = Part54
  459. Vector3Value57.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  460. Weld58.Name = "AccessoryWeld"
  461. Weld58.Parent = Part54
  462. Weld58.C0 = CFrame.new(-0.00499999989, 0.0199999996, 0.0199999996, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  463. Weld58.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  464. Weld58.Part0 = Part54
  465. Weld58.Part1 = Part4
  466. Accessory59.Name = "8bitCatTail"
  467. Accessory59.Parent = Model3
  468. Accessory59.AttachmentPos = Vector3.new(0, 1.89999998, -0.899999976)
  469. Part60.Name = "Handle"
  470. Part60.Parent = Accessory59
  471. Part60.CanCollide = false
  472. Part60.FormFactor = Enum.FormFactor.Symmetric
  473. Part60.Size = Vector3.new(1.24999964, 1.1500001, 1.24000001)
  474. Part60.CFrame = CFrame.new(9.25994778, 3.10001707, -20.5896835, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  475. Part60.BottomSurface = Enum.SurfaceType.Smooth
  476. Part60.TopSurface = Enum.SurfaceType.Smooth
  477. Part60.Position = Vector3.new(9.25994778, 3.10001707, -20.5896835)
  478. SpecialMesh61.Parent = Part60
  479. SpecialMesh61.MeshId = "rbxassetid://542109971"
  480. SpecialMesh61.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
  481. SpecialMesh61.TextureId = "rbxassetid://542105636"
  482. SpecialMesh61.MeshType = Enum.MeshType.FileMesh
  483. SpecialMesh61.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
  484. Attachment62.Name = "WaistFrontAttachment"
  485. Attachment62.Parent = Part60
  486. Attachment62.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  487. Attachment62.CFrame = CFrame.new(1.1920838e-07, -1.10000014, -1.40027213, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  488. Attachment62.Position = Vector3.new(1.1920838e-07, -1.10000014, -1.40027213)
  489. Attachment62.Axis = Vector3.new(1, 6.83440315e-31, 0)
  490. Attachment62.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  491. Weld63.Name = "AccessoryWeld"
  492. Weld63.Parent = Part60
  493. Weld63.C0 = CFrame.new(1.1920838e-07, -1.10000014, -1.40027213, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  494. Weld63.C1 = CFrame.new(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  495. Weld63.Part0 = Part60
  496. Weld63.Part1 = Part20
  497. Accessory64.Name = "BluesteelShades"
  498. Accessory64.Parent = Model3
  499. Accessory64.AttachmentPos = Vector3.new(0, 0.300000012, 0.150000006)
  500. Part65.Name = "Handle"
  501. Part65.Parent = Accessory64
  502. Part65.CanCollide = false
  503. Part65.FormFactor = Enum.FormFactor.Custom
  504. Part65.Size = Vector3.new(1.40003085, 0.400000006, 1.40000176)
  505. Part65.CFrame = CFrame.new(9.25994778, 4.70001698, -21.6396828, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  506. Part65.BottomSurface = Enum.SurfaceType.Smooth
  507. Part65.TopSurface = Enum.SurfaceType.Smooth
  508. Part65.Position = Vector3.new(9.25994778, 4.70001698, -21.6396828)
  509. SpecialMesh66.Parent = Part65
  510. SpecialMesh66.MeshId = "http://www.roblox.com/asset/?id=116526914 "
  511. SpecialMesh66.Scale = Vector3.new(0.649999976, 0.649999976, 0.649999976)
  512. SpecialMesh66.TextureId = "http://www.roblox.com/asset/?id=139594977 "
  513. SpecialMesh66.MeshType = Enum.MeshType.FileMesh
  514. SpecialMesh66.Scale = Vector3.new(0.649999976, 0.649999976, 0.649999976)
  515. Attachment67.Name = "FaceFrontAttachment"
  516. Attachment67.Parent = Part65
  517. Attachment67.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  518. Attachment67.CFrame = CFrame.new(3.93538357e-09, -0.199999809, -0.450272292, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  519. Attachment67.Position = Vector3.new(3.93538357e-09, -0.199999809, -0.450272292)
  520. Attachment67.Axis = Vector3.new(1, -7.87137555e-09, 0)
  521. Attachment67.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  522. Vector3Value68.Name = "OriginalSize"
  523. Vector3Value68.Parent = Part65
  524. Vector3Value68.Value = Vector3.new(1.40003085, 0.400000006, 1.40000176)
  525. Weld69.Name = "AccessoryWeld"
  526. Weld69.Parent = Part65
  527. Weld69.C0 = CFrame.new(3.93538357e-09, -0.199999809, -0.450272292, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  528. Weld69.C1 = CFrame.new(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  529. Weld69.Part0 = Part65
  530. Weld69.Part1 = Part4
  531. Accessory70.Name = "MessyHairBlue"
  532. Accessory70.Parent = Model3
  533. Accessory70.AttachmentPos = Vector3.new(0.100000001, 0.400000006, -0.200000003)
  534. Part71.Name = "Handle"
  535. Part71.Parent = Accessory70
  536. Part71.CanCollide = false
  537. Part71.FormFactor = Enum.FormFactor.Custom
  538. Part71.Size = Vector3.new(1.99999928, 1.79999995, 2.00000024)
  539. Part71.CFrame = CFrame.new(9.1599474, 4.60001707, -21.2896843, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  540. Part71.BottomSurface = Enum.SurfaceType.Smooth
  541. Part71.TopSurface = Enum.SurfaceType.Smooth
  542. Part71.Position = Vector3.new(9.1599474, 4.60001707, -21.2896843)
  543. SpecialMesh72.Parent = Part71
  544. SpecialMesh72.MeshId = "http://www.roblox.com/asset/?id=76056263"
  545. SpecialMesh72.TextureId = "http://www.roblox.com/asset/?id=76055088"
  546. SpecialMesh72.MeshType = Enum.MeshType.FileMesh
  547. Attachment73.Name = "HairAttachment"
  548. Attachment73.Parent = Part71
  549. Attachment73.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  550. Attachment73.CFrame = CFrame.new(0.100000009, 0.5, -0.200272247, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  551. Attachment73.Position = Vector3.new(0.100000009, 0.5, -0.200272247)
  552. Attachment73.Axis = Vector3.new(1, -7.87137555e-09, 0)
  553. Attachment73.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  554. Vector3Value74.Name = "OriginalSize"
  555. Vector3Value74.Parent = Part71
  556. Vector3Value74.Value = Vector3.new(1.99999928, 1.79999995, 2.00000024)
  557. Weld75.Name = "AccessoryWeld"
  558. Weld75.Parent = Part71
  559. Weld75.C0 = CFrame.new(0.100000009, 0.5, -0.200272247, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  560. Weld75.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  561. Weld75.Part0 = Part71
  562. Weld75.Part1 = Part4
  563. Pants76.Name = "Pants"
  564. Pants76.Parent = Model3
  565. Pants76.PantsTemplate = "http://www.roblox.com/asset/?id=296341198"
  566. Accessory77.Name = "GemTie"
  567. Accessory77.Parent = Model3
  568. Accessory77.AttachmentPos = Vector3.new(0, 1.79999995, 0)
  569. Part78.Name = "Handle"
  570. Part78.Parent = Accessory77
  571. Part78.CanCollide = false
  572. Part78.FormFactor = Enum.FormFactor.Custom
  573. Part78.Size = Vector3.new(2.31002712, 0.70999819, 1.91000271)
  574. Part78.CFrame = CFrame.new(9.25994778, 3.80001688, -22.0399551, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  575. Part78.BottomSurface = Enum.SurfaceType.Smooth
  576. Part78.TopSurface = Enum.SurfaceType.Smooth
  577. Part78.Position = Vector3.new(9.25994778, 3.80001688, -22.0399551)
  578. SpecialMesh79.Parent = Part78
  579. SpecialMesh79.MeshId = "rbxassetid://1423138090"
  580. SpecialMesh79.Scale = Vector3.new(1.5, 1.5, 1.5)
  581. SpecialMesh79.TextureId = "rbxassetid://1423138617"
  582. SpecialMesh79.MeshType = Enum.MeshType.FileMesh
  583. SpecialMesh79.Scale = Vector3.new(1.5, 1.5, 1.5)
  584. Attachment80.Name = "NeckAttachment"
  585. Attachment80.Parent = Part78
  586. Attachment80.CFrame = CFrame.new(0, 0.200000003, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  587. Attachment80.Position = Vector3.new(0, 0.200000003, 0.550000012)
  588. Weld81.Name = "AccessoryWeld"
  589. Weld81.Parent = Part78
  590. Weld81.C0 = CFrame.new(0, 0.200000003, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  591. Weld81.C1 = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  592. Weld81.Part0 = Part78
  593. Weld81.Part1 = Part20
  594. Accessory82.Name = "NeonGreenAnimalHood"
  595. Accessory82.Parent = Model3
  596. Accessory82.AttachmentPos = Vector3.new(0, -0.0299999993, 0.0500000007)
  597. Part83.Name = "Handle"
  598. Part83.Parent = Accessory82
  599. Part83.CanCollide = false
  600. Part83.FormFactor = Enum.FormFactor.Custom
  601. Part83.Size = Vector3.new(2.6000278, 2.20000005, 1.79999816)
  602. Part83.CFrame = CFrame.new(9.25994778, 5.03001738, -21.5396843, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  603. Part83.BottomSurface = Enum.SurfaceType.Smooth
  604. Part83.TopSurface = Enum.SurfaceType.Smooth
  605. Part83.Position = Vector3.new(9.25994778, 5.03001738, -21.5396843)
  606. SpecialMesh84.Parent = Part83
  607. SpecialMesh84.MeshId = "rbxassetid://135446047"
  608. SpecialMesh84.Scale = Vector3.new(1, 1.10000002, 1)
  609. SpecialMesh84.TextureId = "rbxassetid://1134835201"
  610. SpecialMesh84.MeshType = Enum.MeshType.FileMesh
  611. SpecialMesh84.Scale = Vector3.new(1, 1.10000002, 1)
  612. Attachment85.Name = "HatAttachment"
  613. Attachment85.Parent = Part83
  614. Attachment85.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  615. Attachment85.CFrame = CFrame.new(8.65748007e-09, 0.0699996948, 0.0497277565, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  616. Attachment85.Position = Vector3.new(8.65748007e-09, 0.0699996948, 0.0497277565)
  617. Attachment85.Axis = Vector3.new(1, -7.87137555e-09, 0)
  618. Attachment85.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  619. Vector3Value86.Name = "OriginalSize"
  620. Vector3Value86.Parent = Part83
  621. Vector3Value86.Value = Vector3.new(2.6000278, 2.20000005, 1.79999816)
  622. Weld87.Name = "AccessoryWeld"
  623. Weld87.Parent = Part83
  624. Weld87.C0 = CFrame.new(8.65748007e-09, 0.0699996948, 0.0497277565, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  625. Weld87.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  626. Weld87.Part0 = Part83
  627. Weld87.Part1 = Part4
  628. BodyColors88.Parent = Model3
  629. BodyColors88.HeadColor = BrickColor.new("White")
  630. BodyColors88.LeftArmColor = BrickColor.new("Really black")
  631. BodyColors88.LeftLegColor = BrickColor.new("Really black")
  632. BodyColors88.RightArmColor = BrickColor.new("Really black")
  633. BodyColors88.RightLegColor = BrickColor.new("Really black")
  634. BodyColors88.TorsoColor = BrickColor.new("Dark stone grey")
  635. Tool89.Name = "MainSword"
  636. Tool89.Parent = Model3
  637. Tool89.TextureId = "http://www.roblox.com/asset/?id=120894242"
  638. Tool89.GripPos = Vector3.new(0, -2.29999995, 0)
  639. Part90.Name = "Handle"
  640. Part90.Parent = Tool89
  641. Part90.BrickColor = BrickColor.new("Really black")
  642. Part90.Reflectance = 123123122176
  643. Part90.Rotation = Vector3.new(-90, 0, 0)
  644. Part90.CanCollide = false
  645. Part90.FormFactor = Enum.FormFactor.Custom
  646. Part90.Size = Vector3.new(1, 0.800000012, 4)
  647. Part90.CFrame = CFrame.new(10.7599478, 2.00001693, -23.7899551, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  648. Part90.BottomSurface = Enum.SurfaceType.Smooth
  649. Part90.TopSurface = Enum.SurfaceType.Smooth
  650. Part90.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  651. Part90.Position = Vector3.new(10.7599478, 2.00001693, -23.7899551)
  652. Part90.Orientation = Vector3.new(-90, 0, 0)
  653. Part90.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  654. PointLight91.Name = "PointLight2"
  655. PointLight91.Parent = Part90
  656. PointLight91.Color = Color3.new(0.666667, 0, 1)
  657. PointLight91.Brightness = 0.20000000298023
  658. PointLight91.Range = 30
  659. PointLight91.Shadows = true
  660. PointLight91.Color = Color3.new(0.666667, 0, 1)
  661. PointLight92.Parent = Part90
  662. PointLight92.Color = Color3.new(0.72549, 0.278431, 1)
  663. PointLight92.Brightness = 0.75
  664. PointLight92.Range = 15
  665. PointLight92.Shadows = true
  666. PointLight92.Color = Color3.new(0.72549, 0.278431, 1)
  667. Script93.Name = "DamegeFunc"
  668. Script93.Parent = Part90
  669. table.insert(cors,sandbox(Script93,function()
  670. Damege = script.Parent.Parent.Parent.AttackDamege.Value
  671. CanAttack = script.Parent.Parent.Parent.CanDamegePlayers.Value
  672. Timer = script.BasicTimer
  673. Disabled = script.Disabled
  674. if CanAttack == true then
  675. function onTouched(hit)
  676. local human = hit.Parent:findFirstChild("Humanoid")
  677. if (human ~= nil) then
  678. human.Health = human.Health - Damege
  679.  
  680. end
  681. end
  682.  
  683. end
  684. function mem()
  685. Disabled = true
  686. Timer.Disabled = false
  687. end
  688. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  689. -- connection = script.Parent.Touched:connect(onTouched)
  690. --end -- Grass Troll by RangeMeludE --
  691. script.Parent.Touched:connect(onTouched)
  692. script.Parent.Touched:connect(mem)
  693.  
  694. end))
  695. Script94.Name = "BasicTimer"
  696. Script94.Parent = Script93
  697. Script94.Disabled = true
  698. table.insert(cors,sandbox(Script94,function()
  699. print("This is just a basic timer script incase of damege")
  700. wait(5)--This Setting Is Changable I Recommend To Set The Time About 5 or 8, If you want it to attack once change it to something like 13791237128392198312983128937219372817313 or "9e1" or maby "18e5"
  701. script.Parent.Disabled = false
  702. script.Disabled = true
  703.  
  704. end))
  705. Sparkles95.Parent = Part90
  706. Sparkles95.Enabled = false
  707. Fire96.Parent = Part90
  708. Fire96.Color = Color3.new(0.333333, 0, 1)
  709. Fire96.Enabled = false
  710. Fire96.SecondaryColor = Color3.new(0, 0, 0)
  711. Fire96.Color = Color3.new(0.333333, 0, 1)
  712. SpecialMesh97.Parent = Part90
  713. SpecialMesh97.MeshId = "http://www.roblox.com/asset/?id=94840342"
  714. SpecialMesh97.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  715. SpecialMesh97.TextureId = "rbxassetid://120869251"
  716. SpecialMesh97.MeshType = Enum.MeshType.FileMesh
  717. SpecialMesh97.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  718. BoolValue98.Name = "Azure"
  719. BoolValue98.Parent = Tool89
  720. BoolValue99.Name = "Normal"
  721. BoolValue99.Parent = Tool89
  722. BoolValue100.Name = "Special"
  723. BoolValue100.Parent = Tool89
  724. Script101.Parent = Tool89
  725. table.insert(cors,sandbox(Script101,function()
  726. --Converted with ttyyuu12345's model to script plugin v4
  727. function sandbox(var,func)
  728. local env = getfenv(func)
  729. local newenv = setmetatable({},{
  730. __index = function(self,k)
  731. if k=="script" then
  732. return var
  733. else
  734. return env[k]
  735. end
  736. end,
  737. })
  738. setfenv(func,newenv)
  739. return func
  740. end
  741. cors = {}
  742. mas = Instance.new("Model",game:GetService("Lighting"))
  743. Tool0 = Instance.new("Tool")
  744. Part1 = Instance.new("Part")
  745. SpecialMesh2 = Instance.new("SpecialMesh")
  746. Sound3 = Instance.new("Sound")
  747. Script4 = Instance.new("Script")
  748. Script5 = Instance.new("Script")
  749. Tool0.Name = "RemoteMine"
  750. Tool0.Parent = mas
  751. Tool0.TextureId = "http://www.roblox.com/asset/?id=28516273"
  752. Tool0.GripForward = Vector3.new(1, -0, -0)
  753. Tool0.GripPos = Vector3.new(-0.100000001, 0, 0)
  754. Tool0.GripRight = Vector3.new(0, -0, 1)
  755. Part1.Name = "Handle"
  756. Part1.Parent = Tool0
  757. Part1.Locked = true
  758. Part1.FormFactor = Enum.FormFactor.Symmetric
  759. Part1.Size = Vector3.new(1, 1, 1)
  760. Part1.CFrame = CFrame.new(-75.5, 0.900000036, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  761. Part1.BottomSurface = Enum.SurfaceType.Smooth
  762. Part1.TopSurface = Enum.SurfaceType.Smooth
  763. Part1.Position = Vector3.new(-75.5, 0.900000036, -9.5)
  764. SpecialMesh2.Parent = Part1
  765. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=28511792"
  766. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=28511890"
  767. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  768. Sound3.Name = "Plant"
  769. Sound3.Parent = Part1
  770. Sound3.SoundId = "http://www.roblox.com/asset/?id=28518380"
  771. Sound3.Volume = 1
  772. Script4.Name = "PlantBomb"
  773. Script4.Parent = Tool0
  774. table.insert(cors,sandbox(Script4,function()
  775. Tool = script.Parent
  776. local planting = true
  777. local bomb = nil
  778.  
  779. local sound = Instance.new("Sound")
  780. sound.SoundId = "http://www.roblox.com/asset/?id=28517063"
  781. sound.Looped = true
  782.  
  783. local explosion = Instance.new("Sound")
  784. explosion.SoundId = "http://www.roblox.com/asset/?id=28518734"
  785. explosion.Volume = 0.01
  786. explosion:Play()
  787. explosion.Volume = 0.5
  788.  
  789. function plant(pos)
  790.  
  791. Tool.Handle.Plant:Play()
  792.  
  793. local vCharacter = Tool.Parent
  794. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  795.  
  796. local spawnPos = vCharacter.PrimaryPart.Position
  797.  
  798. bomb = Instance.new("Part")
  799. bomb.Locked = true
  800. bomb.formFactor = 2
  801. bomb.Size = Vector3.new(1,0.4,1)
  802. bomb.Name = "Mine"
  803. bomb.Position = pos
  804.  
  805. sound.Parent = bomb
  806. sound:Play()
  807.  
  808. explosion:Stop()
  809.  
  810. local mesh = Instance.new("SpecialMesh")
  811. mesh.MeshId = "http://www.roblox.com/asset/?id=28511843"
  812. mesh.TextureId = "http://www.roblox.com/asset/?id=28512114"
  813. mesh.Parent = bomb
  814.  
  815. local creator_tag = Instance.new("ObjectValue")
  816. creator_tag.Value = vPlayer
  817. creator_tag.Name = "creator"
  818. creator_tag.Parent = bomb
  819.  
  820. local script = Tool.BombBlink:clone()
  821. script.Parent = bomb
  822. script.Disabled = false
  823.  
  824. bomb.Parent = game.Workspace
  825. bomb.Touched:connect(function(part)
  826. if part ~= Tool.Handle and part.Parent:FindFirstChild("Humanoid") == nil then
  827. bomb.Anchored = true
  828. bomb.CanCollide = false
  829. end
  830. end)
  831.  
  832. end
  833.  
  834. function blowUp()
  835.  
  836. local e = Instance.new("Explosion")
  837. e.BlastPressure = 50000
  838. e.BlastRadius = 50
  839. e.Parent = game.Workspace
  840. e.Position = bomb.Position
  841. sound:Stop()
  842. explosion.Parent = e
  843. explosion:Play()
  844. bomb:remove()
  845.  
  846. end
  847.  
  848.  
  849. Tool.Enabled = true
  850. function onActivated()
  851.  
  852. if not Tool.Enabled then
  853. return
  854. end
  855.  
  856. Tool.Enabled = false
  857.  
  858. local character = Tool.Parent;
  859. local humanoid = character.Humanoid
  860. if humanoid == nil then
  861. print("Humanoid not found")
  862. return
  863. end
  864.  
  865. local targetPos = humanoid.TargetPoint
  866.  
  867. if planting then
  868. plant(Tool.Handle.Position)
  869. planting = false
  870. else
  871. blowUp()
  872. planting = true
  873. end
  874.  
  875. Tool.Enabled = true
  876. end
  877.  
  878.  
  879. script.Parent.Activated:connect(onActivated)
  880. end))
  881. Script5.Name = "BombBlink"
  882. Script5.Parent = Tool0
  883. Script5.Disabled = true
  884. table.insert(cors,sandbox(Script5,function()
  885. local Mesh = script.Parent.Mesh
  886. local blink = false
  887.  
  888. while true do
  889.  
  890. blink = not blink
  891. if blink then
  892. Mesh.TextureId = "http://www.roblox.com/asset/?id=28512114"
  893. else
  894. Mesh.TextureId = "http://www.roblox.com/asset/?id=33378623"
  895. end
  896. wait(2)
  897.  
  898. end
  899.  
  900. end))
  901. for i,v in pairs(mas:GetChildren()) do
  902. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  903. pcall(function() v:MakeJoints() end)
  904. end
  905. mas:Destroy()
  906. for i,v in pairs(cors) do
  907. spawn(function()
  908. pcall(v)
  909. end)
  910. end
  911. end))
  912. Script102.Name = "Azure2"
  913. Script102.Parent = Tool89
  914. Script102.Disabled = true
  915. table.insert(cors,sandbox(Script102,function()
  916. Azure = script.Parent.Azure.Value
  917. if Azure == true then--Sword Mesh Change
  918. script.Parent.Handle.Transparency = 0
  919. script.Parent.Handle.Sparkles.Enabled = true
  920. script.Parent.Handle.PointLight.Enabled = true
  921. script.Parent.Handle.PointLight2.Enabled = true
  922. script.Parent.Handle.Fire.Enabled = true
  923. end
  924. end))
  925. Script103.Name = "Normal22"
  926. Script103.Parent = Tool89
  927. Script103.Disabled = true
  928. table.insert(cors,sandbox(Script103,function()
  929. Niled = script.Parent.Normal.Value
  930. if Niled == true then--Sword Mesh Change
  931. script.Parent.Handle.Mesh.TextureId = "rbxasset://textures/SwordTexture.png"--DON'T CHANGE
  932. script.Parent.Handle.Mesh.MeshId = "http://www.roblox.com/asset/?id=94840342"
  933. script.Parent.Handle.PointLight.Enabled = false
  934. script.Parent.Handle.PointLight2.Enabled = false
  935. end
  936. end))
  937. Script104.Name = "Special2"
  938. Script104.Parent = Tool89
  939. Script104.Disabled = true
  940. table.insert(cors,sandbox(Script104,function()
  941. Special = script.Parent.Special.Value
  942. if Special == true then--Sword Mesh Change
  943. script.Parent.Handle.Mesh.TextureId = ""--DON'T CHANGE
  944. script.Parent.Handle.Mesh.MeshId = "http://www.roblox.com/asset/?id=94840342"
  945. script.Parent.Handle.Reflectance = 1
  946. script.Parent.Handle.Sparkles.Enabled = true
  947. script.Parent.Handle.PointLight.Enabled = false
  948. script.Parent.Handle.PointLight2.Enabled = false
  949.  
  950.  
  951.  
  952. end
  953. end))
  954. Script105.Parent = Model3
  955. table.insert(cors,sandbox(Script105,function()
  956. VALUE = script.Parent.IsNPC.Value
  957.  
  958. if VALUE == false then -- if the value is set to false or true, if its false the bool has to be false to make the follow to work, if its true then the npc can follow player if its true
  959. local larm = script.Parent:FindFirstChild("Left Arm")
  960. local rarm = script.Parent:FindFirstChild("Right Arm")
  961.  
  962. function findNearestTorso(pos)
  963. local list = game.Workspace:children()
  964. local torso = nil
  965. local dist = 30--this makes the npc to follow people for a distance value
  966. local temp = nil
  967. local human = nil
  968. local temp2 = nil
  969. for x = 1, #list do
  970. temp2 = list[x]
  971. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  972. temp = temp2:findFirstChild("UpperTorso")
  973. human = temp2:findFirstChild("Humanoid")
  974. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  975. if (temp.Position - pos).magnitude < dist then
  976. torso = temp
  977. dist = (temp.Position - pos).magnitude
  978. end
  979. end
  980. end
  981. end
  982. return torso
  983. end
  984.  
  985.  
  986.  
  987.  
  988. while true do
  989. wait(math.random(1,1))
  990. local target = findNearestTorso(script.Parent.Torso.Position)
  991. if target ~= nil then
  992. script.Parent.Humanoid:MoveTo(target.Position, target)
  993. end
  994.  
  995. end
  996. end
  997.  
  998. end))
  999. BoolValue106.Name = "IsNPC"
  1000. BoolValue106.Parent = Model3
  1001. IntValue107.Name = "AttackDamege"
  1002. IntValue107.Parent = Model3
  1003. IntValue107.Value = 3
  1004. BoolValue108.Name = "CanDamegePlayers"
  1005. BoolValue108.Parent = Model3
  1006. BoolValue108.Value = true
  1007. BoolValue109.Name = "SwordMesh"
  1008. BoolValue109.Parent = Model3
  1009. BoolValue109.Value = true
  1010. Script110.Name = "Animation"
  1011. Script110.Parent = Model3
  1012. table.insert(cors,sandbox(Script110,function()
  1013. function waitForChild(parent, childName)
  1014. local child = parent:findFirstChild(childName)
  1015. if child then return child end
  1016. while true do
  1017. child = parent.ChildAdded:wait()
  1018. if child.Name==childName then return child end
  1019. end
  1020. end
  1021.  
  1022. local Figure = script.Parent
  1023. local Torso = waitForChild(Figure, "Torso")
  1024. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1025. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1026. local RightHip = waitForChild(Torso, "Right Hip")
  1027. local LeftHip = waitForChild(Torso, "Left Hip")
  1028. local Neck = waitForChild(Torso, "Neck")
  1029. local Humanoid = waitForChild(Figure, "Humanoid")
  1030. local pose = "Standing"
  1031.  
  1032. local currentAnim = ""
  1033. local currentAnimTrack = nil
  1034. local currentAnimKeyframeHandler = nil
  1035. local currentAnimSpeed = 1.0
  1036. local animTable = {}
  1037. local animNames = {
  1038. idle = {
  1039. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  1040. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  1041. },
  1042. walk = {
  1043. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  1044. },
  1045. run = {
  1046. { id = "run.xml", weight = 10 }
  1047. },
  1048. jump = {
  1049. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1050. },
  1051. fall = {
  1052. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  1053. },
  1054. climb = {
  1055. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  1056. },
  1057. toolnone = {
  1058. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  1059. },
  1060. toolslash = {
  1061. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1062. -- { id = "slash.xml", weight = 10 }
  1063. },
  1064. toollunge = {
  1065. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1066. },
  1067. wave = {
  1068. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1069. },
  1070. point = {
  1071. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1072. },
  1073. dance = {
  1074. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  1075. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  1076. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  1077. },
  1078. dance2 = {
  1079. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  1080. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  1081. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  1082. },
  1083. dance3 = {
  1084. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  1085. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  1086. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  1087. },
  1088. laugh = {
  1089. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1090. },
  1091. cheer = {
  1092. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1093. },
  1094. }
  1095.  
  1096. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1097. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1098.  
  1099. math.randomseed(tick())
  1100.  
  1101. function configureAnimationSet(name, fileList)
  1102. if (animTable[name] ~= nil) then
  1103. for _, connection in pairs(animTable[name].connections) do
  1104. connection:disconnect()
  1105. end
  1106. end
  1107. animTable[name] = {}
  1108. animTable[name].count = 0
  1109. animTable[name].totalWeight = 0
  1110. animTable[name].connections = {}
  1111.  
  1112. -- check for config values
  1113. local config = script:FindFirstChild(name)
  1114. if (config ~= nil) then
  1115. -- print("Loading anims " .. name)
  1116. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1117. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1118. local idx = 1
  1119. for _, childPart in pairs(config:GetChildren()) do
  1120. if (childPart:IsA("Animation")) then
  1121. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1122. animTable[name][idx] = {}
  1123. animTable[name][idx].anim = childPart
  1124. local weightObject = childPart:FindFirstChild("Weight")
  1125. if (weightObject == nil) then
  1126. animTable[name][idx].weight = 1
  1127. else
  1128. animTable[name][idx].weight = weightObject.Value
  1129. end
  1130. animTable[name].count = animTable[name].count + 1
  1131. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1132. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1133. idx = idx + 1
  1134. end
  1135. end
  1136. end
  1137.  
  1138. -- fallback to defaults
  1139. if (animTable[name].count <= 0) then
  1140. for idx, anim in pairs(fileList) do
  1141. animTable[name][idx] = {}
  1142. animTable[name][idx].anim = Instance.new("Animation")
  1143. animTable[name][idx].anim.Name = name
  1144. animTable[name][idx].anim.AnimationId = anim.id
  1145. animTable[name][idx].weight = anim.weight
  1146. animTable[name].count = animTable[name].count + 1
  1147. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1148. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1149. end
  1150. end
  1151. end
  1152.  
  1153. -- Setup animation objects
  1154. function scriptChildModified(child)
  1155. local fileList = animNames[child.Name]
  1156. if (fileList ~= nil) then
  1157. configureAnimationSet(child.Name, fileList)
  1158. end
  1159. end
  1160.  
  1161. script.ChildAdded:connect(scriptChildModified)
  1162. script.ChildRemoved:connect(scriptChildModified)
  1163.  
  1164.  
  1165. for name, fileList in pairs(animNames) do
  1166. configureAnimationSet(name, fileList)
  1167. end
  1168.  
  1169. -- ANIMATION
  1170.  
  1171. -- declarations
  1172. local toolAnim = "None"
  1173. local toolAnimTime = 0
  1174.  
  1175. local jumpAnimTime = 0
  1176. local jumpAnimDuration = 0.3
  1177.  
  1178. local toolTransitionTime = 0.1
  1179. local fallTransitionTime = 0.3
  1180. local jumpMaxLimbVelocity = 0.75
  1181.  
  1182. -- functions
  1183.  
  1184. function stopAllAnimations()
  1185. local oldAnim = currentAnim
  1186.  
  1187. -- return to idle if finishing an emote
  1188. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1189. oldAnim = "idle"
  1190. end
  1191.  
  1192. currentAnim = ""
  1193. if (currentAnimKeyframeHandler ~= nil) then
  1194. currentAnimKeyframeHandler:disconnect()
  1195. end
  1196.  
  1197. if (currentAnimTrack ~= nil) then
  1198. currentAnimTrack:Stop()
  1199. currentAnimTrack:Destroy()
  1200. currentAnimTrack = nil
  1201. end
  1202. return oldAnim
  1203. end
  1204.  
  1205. function setAnimationSpeed(speed)
  1206. if speed ~= currentAnimSpeed then
  1207. currentAnimSpeed = speed
  1208. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1209. end
  1210. end
  1211.  
  1212. function keyFrameReachedFunc(frameName)
  1213. if (frameName == "End") then
  1214. -- print("Keyframe : ".. frameName)
  1215. local repeatAnim = stopAllAnimations()
  1216. local animSpeed = currentAnimSpeed
  1217. playAnimation(repeatAnim, 0.0, Humanoid)
  1218. setAnimationSpeed(animSpeed)
  1219. end
  1220. end
  1221.  
  1222. -- Preload animations
  1223. function playAnimation(animName, transitionTime, humanoid)
  1224. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  1225. if (animName ~= currentAnim and not idleFromEmote) then
  1226.  
  1227. if (currentAnimTrack ~= nil) then
  1228. currentAnimTrack:Stop(transitionTime)
  1229. currentAnimTrack:Destroy()
  1230. end
  1231.  
  1232. currentAnimSpeed = 1.0
  1233. local roll = math.random(1, animTable[animName].totalWeight)
  1234. local origRoll = roll
  1235. local idx = 1
  1236. while (roll > animTable[animName][idx].weight) do
  1237. roll = roll - animTable[animName][idx].weight
  1238. idx = idx + 1
  1239. end
  1240. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1241. local anim = animTable[animName][idx].anim
  1242.  
  1243. -- load it to the humanoid; get AnimationTrack
  1244. currentAnimTrack = humanoid:LoadAnimation(anim)
  1245.  
  1246. -- play the animation
  1247. currentAnimTrack:Play(transitionTime)
  1248. currentAnim = animName
  1249.  
  1250. -- set up keyframe name triggers
  1251. if (currentAnimKeyframeHandler ~= nil) then
  1252. currentAnimKeyframeHandler:disconnect()
  1253. end
  1254. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1255. end
  1256. end
  1257.  
  1258. -------------------------------------------------------------------------------------------
  1259. -------------------------------------------------------------------------------------------
  1260.  
  1261. local toolAnimName = ""
  1262. local toolAnimTrack = nil
  1263. local currentToolAnimKeyframeHandler = nil
  1264.  
  1265. function toolKeyFrameReachedFunc(frameName)
  1266. if (frameName == "End") then
  1267. -- print("Keyframe : ".. frameName)
  1268. local repeatAnim = stopToolAnimations()
  1269. playToolAnimation(repeatAnim, 0.0, Humanoid)
  1270. end
  1271. end
  1272.  
  1273.  
  1274. function playToolAnimation(animName, transitionTime, humanoid)
  1275. if (animName ~= toolAnimName) then
  1276.  
  1277. if (toolAnimTrack ~= nil) then
  1278. toolAnimTrack:Stop()
  1279. toolAnimTrack:Destroy()
  1280. transitionTime = 0
  1281. end
  1282.  
  1283. local roll = math.random(1, animTable[animName].totalWeight)
  1284. local origRoll = roll
  1285. local idx = 1
  1286. while (roll > animTable[animName][idx].weight) do
  1287. roll = roll - animTable[animName][idx].weight
  1288. idx = idx + 1
  1289. end
  1290. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1291. local anim = animTable[animName][idx].anim
  1292.  
  1293. -- load it to the humanoid; get AnimationTrack
  1294. toolAnimTrack = humanoid:LoadAnimation(anim)
  1295.  
  1296. -- play the animation
  1297. toolAnimTrack:Play(transitionTime)
  1298. toolAnimName = animName
  1299.  
  1300. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1301. end
  1302. end
  1303.  
  1304. function stopToolAnimations()
  1305. local oldAnim = toolAnimName
  1306.  
  1307. if (currentToolAnimKeyframeHandler ~= nil) then
  1308. currentToolAnimKeyframeHandler:disconnect()
  1309. end
  1310.  
  1311. toolAnimName = ""
  1312. if (toolAnimTrack ~= nil) then
  1313. toolAnimTrack:Stop()
  1314. toolAnimTrack:Destroy()
  1315. toolAnimTrack = nil
  1316. end
  1317.  
  1318.  
  1319. return oldAnim
  1320. end
  1321.  
  1322. -------------------------------------------------------------------------------------------
  1323. -------------------------------------------------------------------------------------------
  1324.  
  1325.  
  1326. function onRunning(speed)
  1327. if speed>0.01 then
  1328. playAnimation("walk", 0.1, Humanoid)
  1329. pose = "Running"
  1330. else
  1331. playAnimation("idle", 0.1, Humanoid)
  1332. pose = "Standing"
  1333. end
  1334. end
  1335.  
  1336. function onDied()
  1337. pose = "Dead"
  1338. end
  1339.  
  1340. function onJumping()
  1341. playAnimation("jump", 0.1, Humanoid)
  1342. jumpAnimTime = jumpAnimDuration
  1343. pose = "Jumping"
  1344. end
  1345.  
  1346. function onClimbing(speed)
  1347. playAnimation("climb", 0.1, Humanoid)
  1348. setAnimationSpeed(speed / 12.0)
  1349. pose = "Climbing"
  1350. end
  1351.  
  1352. function onGettingUp()
  1353. pose = "GettingUp"
  1354. end
  1355.  
  1356. function onFreeFall()
  1357. if (jumpAnimTime <= 0) then
  1358. playAnimation("fall", fallTransitionTime, Humanoid)
  1359. end
  1360. pose = "FreeFall"
  1361. end
  1362.  
  1363. function onFallingDown()
  1364. pose = "FallingDown"
  1365. end
  1366.  
  1367. function onSeated()
  1368. pose = "Seated"
  1369. end
  1370.  
  1371. function onPlatformStanding()
  1372. pose = "PlatformStanding"
  1373. end
  1374.  
  1375. function onSwimming(speed)
  1376. if speed>0 then
  1377. pose = "Running"
  1378. else
  1379. pose = "Standing"
  1380. end
  1381. end
  1382.  
  1383. function getTool()
  1384. for _, kid in ipairs(Figure:GetChildren()) do
  1385. if kid.className == "Tool" then return kid end
  1386. end
  1387. return nil
  1388. end
  1389.  
  1390. function getToolAnim(tool)
  1391. for _, c in ipairs(tool:GetChildren()) do
  1392. if c.Name == "toolanim" and c.className == "StringValue" then
  1393. return c
  1394. end
  1395. end
  1396. return nil
  1397. end
  1398.  
  1399. function animateTool()
  1400.  
  1401. if (toolAnim == "None") then
  1402. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1403. return
  1404. end
  1405.  
  1406. if (toolAnim == "Slash") then
  1407. playToolAnimation("toolslash", 0, Humanoid)
  1408. return
  1409. end
  1410.  
  1411. if (toolAnim == "Lunge") then
  1412. playToolAnimation("toollunge", 0, Humanoid)
  1413. return
  1414. end
  1415. end
  1416.  
  1417. function moveSit()
  1418. RightShoulder.MaxVelocity = 0.15
  1419. LeftShoulder.MaxVelocity = 0.15
  1420. RightShoulder:SetDesiredAngle(3.14 /2)
  1421. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1422. RightHip:SetDesiredAngle(3.14 /2)
  1423. LeftHip:SetDesiredAngle(-3.14 /2)
  1424. end
  1425.  
  1426. local lastTick = 0
  1427.  
  1428. function move(time)
  1429. local amplitude = 1
  1430. local frequency = 1
  1431. local deltaTime = time - lastTick
  1432. lastTick = time
  1433.  
  1434. local climbFudge = 0
  1435. local setAngles = false
  1436.  
  1437. if (jumpAnimTime > 0) then
  1438. jumpAnimTime = jumpAnimTime - deltaTime
  1439. end
  1440.  
  1441. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1442. playAnimation("fall", fallTransitionTime, Humanoid)
  1443. elseif (pose == "Seated") then
  1444. stopAllAnimations()
  1445. moveSit()
  1446. return
  1447. elseif (pose == "Running") then
  1448. playAnimation("walk", 0.1, Humanoid)
  1449. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1450. -- print("Wha " .. pose)
  1451. amplitude = 0.1
  1452. frequency = 1
  1453. setAngles = true
  1454. end
  1455.  
  1456. if (setAngles) then
  1457. desiredAngle = amplitude * math.sin(time * frequency)
  1458.  
  1459. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1460. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1461. RightHip:SetDesiredAngle(-desiredAngle)
  1462. LeftHip:SetDesiredAngle(-desiredAngle)
  1463. end
  1464.  
  1465. -- Tool Animation handling
  1466. local tool = getTool()
  1467. if tool then
  1468.  
  1469. animStringValueObject = getToolAnim(tool)
  1470.  
  1471. if animStringValueObject then
  1472. toolAnim = animStringValueObject.Value
  1473. -- message recieved, delete StringValue
  1474. animStringValueObject.Parent = nil
  1475. toolAnimTime = time + .3
  1476. end
  1477.  
  1478. if time > toolAnimTime then
  1479. toolAnimTime = 0
  1480. toolAnim = "None"
  1481. end
  1482.  
  1483. animateTool()
  1484. else
  1485. stopToolAnimations()
  1486. toolAnim = "None"
  1487. toolAnimTime = 0
  1488. end
  1489. end
  1490.  
  1491. -- connect events
  1492. Humanoid.Died:connect(onDied)
  1493. Humanoid.Running:connect(onRunning)
  1494. Humanoid.Jumping:connect(onJumping)
  1495. Humanoid.Climbing:connect(onClimbing)
  1496. Humanoid.GettingUp:connect(onGettingUp)
  1497. Humanoid.FreeFalling:connect(onFreeFall)
  1498. Humanoid.FallingDown:connect(onFallingDown)
  1499. Humanoid.Seated:connect(onSeated)
  1500. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1501. Humanoid.Swimming:connect(onSwimming)
  1502.  
  1503. -- setup emote chat hook
  1504. ----Removed for NPC
  1505.  
  1506. -- main program
  1507.  
  1508. local runService = game:service("RunService");
  1509.  
  1510. -- initialize to idle
  1511. playAnimation("idle", 0.1, Humanoid)
  1512. pose = "Standing"
  1513.  
  1514. while Figure.Parent~=nil do
  1515. local _, time = wait(0.1)
  1516. move(time)
  1517. end
  1518.  
  1519.  
  1520.  
  1521. end))
  1522. for i,v in pairs(mas:GetChildren()) do
  1523. v.Parent = workspace
  1524. pcall(function() v:MakeJoints() end)
  1525. end
  1526. mas:Destroy()
  1527. for i,v in pairs(cors) do
  1528. spawn(function()
  1529. pcall(v)
  1530. end)
  1531. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement