Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

maz

Animescapetower Mar 13th, 2018 78 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. Sound0 = Instance.new("Sound")
  20. Backpack1 = Instance.new("Backpack")
  21. Model2 = Instance.new("Model")
  22. Part3 = Instance.new("Part")
  23. Model4 = Instance.new("Model")
  24. Seat5 = Instance.new("Seat")
  25. Model6 = Instance.new("Model")
  26. Part7 = Instance.new("Part")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Attachment9 = Instance.new("Attachment")
  29. Attachment10 = Instance.new("Attachment")
  30. Attachment11 = Instance.new("Attachment")
  31. Attachment12 = Instance.new("Attachment")
  32. Attachment13 = Instance.new("Attachment")
  33. Attachment14 = Instance.new("Attachment")
  34. Vector3Value15 = Instance.new("Vector3Value")
  35. Motor6D16 = Instance.new("Motor6D")
  36. ParticleEmitter17 = Instance.new("ParticleEmitter")
  37. ParticleEmitter18 = Instance.new("ParticleEmitter")
  38. Script19 = Instance.new("Script")
  39. Script20 = Instance.new("Script")
  40. BillboardGui21 = Instance.new("BillboardGui")
  41. Script22 = Instance.new("Script")
  42. BillboardGui23 = Instance.new("BillboardGui")
  43. TextLabel24 = Instance.new("TextLabel")
  44. Frame25 = Instance.new("Frame")
  45. Frame26 = Instance.new("Frame")
  46. TextLabel27 = Instance.new("TextLabel")
  47. TextLabel28 = Instance.new("TextLabel")
  48. ObjectValue29 = Instance.new("ObjectValue")
  49. Frame30 = Instance.new("Frame")
  50. TextLabel31 = Instance.new("TextLabel")
  51. Animation32 = Instance.new("Animation")
  52. Script33 = Instance.new("Script")
  53. Script34 = Instance.new("Script")
  54. Part35 = Instance.new("Part")
  55. Attachment36 = Instance.new("Attachment")
  56. Vector3Value37 = Instance.new("Vector3Value")
  57. ParticleEmitter38 = Instance.new("ParticleEmitter")
  58. BodyColors39 = Instance.new("BodyColors")
  59. Attachment40 = Instance.new("Attachment")
  60. Attachment41 = Instance.new("Attachment")
  61. Attachment42 = Instance.new("Attachment")
  62. Attachment43 = Instance.new("Attachment")
  63. Attachment44 = Instance.new("Attachment")
  64. Attachment45 = Instance.new("Attachment")
  65. Attachment46 = Instance.new("Attachment")
  66. Attachment47 = Instance.new("Attachment")
  67. Vector3Value48 = Instance.new("Vector3Value")
  68. Motor6D49 = Instance.new("Motor6D")
  69. ParticleEmitter50 = Instance.new("ParticleEmitter")
  70. Sound51 = Instance.new("Sound")
  71. Sound52 = Instance.new("Sound")
  72. Attachment53 = Instance.new("Attachment")
  73. Attachment54 = Instance.new("Attachment")
  74. Attachment55 = Instance.new("Attachment")
  75. Attachment56 = Instance.new("Attachment")
  76. Attachment57 = Instance.new("Attachment")
  77. Attachment58 = Instance.new("Attachment")
  78. Attachment59 = Instance.new("Attachment")
  79. Attachment60 = Instance.new("Attachment")
  80. Vector3Value61 = Instance.new("Vector3Value")
  81. Motor6D62 = Instance.new("Motor6D")
  82. ParticleEmitter63 = Instance.new("ParticleEmitter")
  83. Attachment64 = Instance.new("Attachment")
  84. Vector3Value65 = Instance.new("Vector3Value")
  85. Motor6D66 = Instance.new("Motor6D")
  86. ParticleEmitter67 = Instance.new("ParticleEmitter")
  87. Script68 = Instance.new("Script")
  88. Script69 = Instance.new("Script")
  89. NumberValue70 = Instance.new("NumberValue")
  90. Configuration71 = Instance.new("Configuration")
  91. IntValue72 = Instance.new("IntValue")
  92. IntValue73 = Instance.new("IntValue")
  93. NumberValue74 = Instance.new("NumberValue")
  94. BrickColorValue75 = Instance.new("BrickColorValue")
  95. IntValue76 = Instance.new("IntValue")
  96. IntValue77 = Instance.new("IntValue")
  97. NumberValue78 = Instance.new("NumberValue")
  98. BoolValue79 = Instance.new("BoolValue")
  99. NumberValue80 = Instance.new("NumberValue")
  100. StringValue81 = Instance.new("StringValue")
  101. Attachment82 = Instance.new("Attachment")
  102. Attachment83 = Instance.new("Attachment")
  103. Vector3Value84 = Instance.new("Vector3Value")
  104. Motor6D85 = Instance.new("Motor6D")
  105. ParticleEmitter86 = Instance.new("ParticleEmitter")
  106. Attachment87 = Instance.new("Attachment")
  107. Attachment88 = Instance.new("Attachment")
  108. Attachment89 = Instance.new("Attachment")
  109. Vector3Value90 = Instance.new("Vector3Value")
  110. Motor6D91 = Instance.new("Motor6D")
  111. ParticleEmitter92 = Instance.new("ParticleEmitter")
  112. Attachment93 = Instance.new("Attachment")
  113. Attachment94 = Instance.new("Attachment")
  114. Vector3Value95 = Instance.new("Vector3Value")
  115. Motor6D96 = Instance.new("Motor6D")
  116. ParticleEmitter97 = Instance.new("ParticleEmitter")
  117. Attachment98 = Instance.new("Attachment")
  118. Attachment99 = Instance.new("Attachment")
  119. Vector3Value100 = Instance.new("Vector3Value")
  120. Motor6D101 = Instance.new("Motor6D")
  121. ParticleEmitter102 = Instance.new("ParticleEmitter")
  122. Attachment103 = Instance.new("Attachment")
  123. Attachment104 = Instance.new("Attachment")
  124. Vector3Value105 = Instance.new("Vector3Value")
  125. Motor6D106 = Instance.new("Motor6D")
  126. ParticleEmitter107 = Instance.new("ParticleEmitter")
  127. Attachment108 = Instance.new("Attachment")
  128. Vector3Value109 = Instance.new("Vector3Value")
  129. Motor6D110 = Instance.new("Motor6D")
  130. ParticleEmitter111 = Instance.new("ParticleEmitter")
  131. Attachment112 = Instance.new("Attachment")
  132. Attachment113 = Instance.new("Attachment")
  133. Attachment114 = Instance.new("Attachment")
  134. Attachment115 = Instance.new("Attachment")
  135. Attachment116 = Instance.new("Attachment")
  136. Attachment117 = Instance.new("Attachment")
  137. Attachment118 = Instance.new("Attachment")
  138. Vector3Value119 = Instance.new("Vector3Value")
  139. Motor6D120 = Instance.new("Motor6D")
  140. ParticleEmitter121 = Instance.new("ParticleEmitter")
  141. Attachment122 = Instance.new("Attachment")
  142. Attachment123 = Instance.new("Attachment")
  143. Vector3Value124 = Instance.new("Vector3Value")
  144. Motor6D125 = Instance.new("Motor6D")
  145. ParticleEmitter126 = Instance.new("ParticleEmitter")
  146. Attachment127 = Instance.new("Attachment")
  147. Attachment128 = Instance.new("Attachment")
  148. Attachment129 = Instance.new("Attachment")
  149. Vector3Value130 = Instance.new("Vector3Value")
  150. Motor6D131 = Instance.new("Motor6D")
  151. ParticleEmitter132 = Instance.new("ParticleEmitter")
  152. Attachment133 = Instance.new("Attachment")
  153. Attachment134 = Instance.new("Attachment")
  154. Vector3Value135 = Instance.new("Vector3Value")
  155. Motor6D136 = Instance.new("Motor6D")
  156. ParticleEmitter137 = Instance.new("ParticleEmitter")
  157. Attachment138 = Instance.new("Attachment")
  158. Attachment139 = Instance.new("Attachment")
  159. Vector3Value140 = Instance.new("Vector3Value")
  160. Motor6D141 = Instance.new("Motor6D")
  161. ParticleEmitter142 = Instance.new("ParticleEmitter")
  162. Script143 = Instance.new("Script")
  163. Configuration144 = Instance.new("Configuration")
  164. IntValue145 = Instance.new("IntValue")
  165. IntValue146 = Instance.new("IntValue")
  166. NumberValue147 = Instance.new("NumberValue")
  167. BrickColorValue148 = Instance.new("BrickColorValue")
  168. IntValue149 = Instance.new("IntValue")
  169. IntValue150 = Instance.new("IntValue")
  170. NumberValue151 = Instance.new("NumberValue")
  171. BoolValue152 = Instance.new("BoolValue")
  172. NumberValue153 = Instance.new("NumberValue")
  173. StringValue154 = Instance.new("StringValue")
  174. NumberValue155 = Instance.new("NumberValue")
  175. Script156 = Instance.new("Script")
  176. Attachment157 = Instance.new("Attachment")
  177. Attachment158 = Instance.new("Attachment")
  178. Vector3Value159 = Instance.new("Vector3Value")
  179. Motor6D160 = Instance.new("Motor6D")
  180. ParticleEmitter161 = Instance.new("ParticleEmitter")
  181. Script162 = Instance.new("Script")
  182. Script163 = Instance.new("Script")
  183. NumberValue164 = Instance.new("NumberValue")
  184. Configuration165 = Instance.new("Configuration")
  185. IntValue166 = Instance.new("IntValue")
  186. IntValue167 = Instance.new("IntValue")
  187. NumberValue168 = Instance.new("NumberValue")
  188. BrickColorValue169 = Instance.new("BrickColorValue")
  189. IntValue170 = Instance.new("IntValue")
  190. IntValue171 = Instance.new("IntValue")
  191. NumberValue172 = Instance.new("NumberValue")
  192. BoolValue173 = Instance.new("BoolValue")
  193. NumberValue174 = Instance.new("NumberValue")
  194. StringValue175 = Instance.new("StringValue")
  195. Script176 = Instance.new("Script")
  196. StringValue177 = Instance.new("StringValue")
  197. StringValue178 = Instance.new("StringValue")
  198. Animation179 = Instance.new("Animation")
  199. StringValue180 = Instance.new("StringValue")
  200. Animation181 = Instance.new("Animation")
  201. StringValue182 = Instance.new("StringValue")
  202. Animation183 = Instance.new("Animation")
  203. NumberValue184 = Instance.new("NumberValue")
  204. Animation185 = Instance.new("Animation")
  205. NumberValue186 = Instance.new("NumberValue")
  206. StringValue187 = Instance.new("StringValue")
  207. Animation188 = Instance.new("Animation")
  208. StringValue189 = Instance.new("StringValue")
  209. Animation190 = Instance.new("Animation")
  210. StringValue191 = Instance.new("StringValue")
  211. Animation192 = Instance.new("Animation")
  212. StringValue193 = Instance.new("StringValue")
  213. Animation194 = Instance.new("Animation")
  214. StringValue195 = Instance.new("StringValue")
  215. Animation196 = Instance.new("Animation")
  216. StringValue197 = Instance.new("StringValue")
  217. Animation198 = Instance.new("Animation")
  218. StringValue199 = Instance.new("StringValue")
  219. Animation200 = Instance.new("Animation")
  220. ParticleEmitter201 = Instance.new("ParticleEmitter")
  221. Script202 = Instance.new("Script")
  222. Script203 = Instance.new("Script")
  223. NumberValue204 = Instance.new("NumberValue")
  224. Configuration205 = Instance.new("Configuration")
  225. IntValue206 = Instance.new("IntValue")
  226. IntValue207 = Instance.new("IntValue")
  227. NumberValue208 = Instance.new("NumberValue")
  228. BrickColorValue209 = Instance.new("BrickColorValue")
  229. IntValue210 = Instance.new("IntValue")
  230. IntValue211 = Instance.new("IntValue")
  231. NumberValue212 = Instance.new("NumberValue")
  232. BoolValue213 = Instance.new("BoolValue")
  233. NumberValue214 = Instance.new("NumberValue")
  234. StringValue215 = Instance.new("StringValue")
  235. ParticleEmitter216 = Instance.new("ParticleEmitter")
  236. Humanoid217 = Instance.new("Humanoid")
  237. BoolValue218 = Instance.new("BoolValue")
  238. ObjectValue219 = Instance.new("ObjectValue")
  239. Script220 = Instance.new("Script")
  240. Script221 = Instance.new("Script")
  241. ForceField222 = Instance.new("ForceField")
  242. Script223 = Instance.new("Script")
  243. BoolValue224 = Instance.new("BoolValue")
  244. Script225 = Instance.new("Script")
  245. Tool226 = Instance.new("Tool")
  246. Part227 = Instance.new("Part")
  247. Sound228 = Instance.new("Sound")
  248. Script229 = Instance.new("Script")
  249. Script230 = Instance.new("Script")
  250. Sound231 = Instance.new("Sound")
  251. Sound232 = Instance.new("Sound")
  252. SpecialMesh233 = Instance.new("SpecialMesh")
  253. Script234 = Instance.new("Script")
  254. SpecialMesh235 = Instance.new("SpecialMesh")
  255. Script236 = Instance.new("Script")
  256. Script237 = Instance.new("Script")
  257. Script238 = Instance.new("Script")
  258. LocalScript239 = Instance.new("LocalScript")
  259. Script240 = Instance.new("Script")
  260. Sound241 = Instance.new("Sound")
  261. Script242 = Instance.new("Script")
  262. Part243 = Instance.new("Part")
  263. Attachment244 = Instance.new("Attachment")
  264. ManualWeld245 = Instance.new("ManualWeld")
  265. ManualWeld246 = Instance.new("ManualWeld")
  266. ManualWeld247 = Instance.new("ManualWeld")
  267. Sound0.Parent = mas
  268. Sound0.SoundId = "rbxassetid://470060466"
  269. Sound0.Volume = 10
  270. Backpack1.Name = "_CPData"
  271. Backpack1.Parent = mas
  272. Model2.Name = "Glass Table"
  273. Model2.Parent = mas
  274. Part3.Parent = Model2
  275. Part3.Material = Enum.Material.Glass
  276. Part3.BrickColor = BrickColor.new("Institutional white")
  277. Part3.Transparency = 0.5
  278. Part3.Size = Vector3.new(8.00000858, 0.200000018, 5.27000046)
  279. Part3.CFrame = CFrame.new(-203.079834, 5.06008434, -264.353973, 1.00000846, 0, 0, 0, 1, 0, 0, 0, 1.00000846)
  280. Part3.BottomSurface = Enum.SurfaceType.Smooth
  281. Part3.TopSurface = Enum.SurfaceType.Smooth
  282. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  283. Part3.Position = Vector3.new(-203.079834, 5.06008434, -264.353973)
  284. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  285. Model4.Parent = mas
  286. Seat5.Parent = Model4
  287. Seat5.Material = Enum.Material.Fabric
  288. Seat5.BrickColor = BrickColor.new("Black")
  289. Seat5.Transparency = 1
  290. Seat5.Rotation = Vector3.new(-180, 0, -180)
  291. Seat5.Anchored = true
  292. Seat5.CanCollide = false
  293. Seat5.Size = Vector3.new(0.960000992, 0.0500000007, 1.69000018)
  294. Seat5.CFrame = CFrame.new(-202.407227, 3.79302144, -267.525452, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  295. Seat5.BottomSurface = Enum.SurfaceType.Smooth
  296. Seat5.TopSurface = Enum.SurfaceType.Smooth
  297. Seat5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  298. Seat5.Position = Vector3.new(-202.407227, 3.79302144, -267.525452)
  299. Seat5.Orientation = Vector3.new(0, 180, 0)
  300. Seat5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  301. Model6.Name = "Water"
  302. Model6.Parent = mas
  303. Part7.Name = "Head"
  304. Part7.Parent = Model6
  305. Part7.BrickColor = BrickColor.new("Medium green")
  306. Part7.Transparency = 0.99000000953674
  307. Part7.Rotation = Vector3.new(180, -0.0299999993, 180)
  308. Part7.FormFactor = Enum.FormFactor.Custom
  309. Part7.Size = Vector3.new(1.48765063, 1.48765063, 1.48765063)
  310. Part7.CFrame = CFrame.new(5.54536676, 6.79134989, -30.2487926, -0.999999881, -1.59059965e-08, -0.000481999945, 0, 1, -3.29999966e-05, 0.000481999945, -3.2999993e-05, -0.999999881)
  311. Part7.BottomSurface = Enum.SurfaceType.Smooth
  312. Part7.TopSurface = Enum.SurfaceType.Smooth
  313. Part7.Color = Color3.new(0.631373, 0.768628, 0.54902)
  314. Part7.Position = Vector3.new(5.54536676, 6.79134989, -30.2487926)
  315. Part7.Orientation = Vector3.new(0, -179.970001, 0)
  316. Part7.Color = Color3.new(0.631373, 0.768628, 0.54902)
  317. SpecialMesh8.Parent = Part7
  318. SpecialMesh8.MeshId = "http://www.roblox.com/asset?id=419776358"
  319. SpecialMesh8.Scale = Vector3.new(1.48765087, 1.48765087, 1.48765087)
  320. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  321. SpecialMesh8.Scale = Vector3.new(1.48765087, 1.48765087, 1.48765087)
  322. Attachment9.Name = "FaceCenterAttachment"
  323. Attachment9.Parent = Part7
  324. Attachment9.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  325. Attachment9.CFrame = CFrame.new(4.43354509e-08, 0.000572104589, 0.0057525211, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
  326. Attachment9.Position = Vector3.new(4.43354509e-08, 0.000572104589, 0.0057525211)
  327. Attachment9.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
  328. Attachment9.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  329. Attachment10.Name = "NeckRigAttachment"
  330. Attachment10.Parent = Part7
  331. Attachment10.CFrame = CFrame.new(-4.04782622e-05, -0.841438174, 0.00575252436, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  332. Attachment10.Position = Vector3.new(-4.04782622e-05, -0.841438174, 0.00575252436)
  333. Attachment11.Name = "FaceFrontAttachment"
  334. Attachment11.Parent = Part7
  335. Attachment11.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  336. Attachment11.CFrame = CFrame.new(2.54907229e-09, 7.51929038e-05, -0.882740915, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
  337. Attachment11.Position = Vector3.new(2.54907229e-09, 7.51929038e-05, -0.882740915)
  338. Attachment11.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
  339. Attachment11.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  340. Attachment12.Name = "HairAttachment"
  341. Attachment12.Parent = Part7
  342. Attachment12.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  343. Attachment12.CFrame = CFrame.new(2.54907229e-09, 0.891290128, 0.00575252576, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
  344. Attachment12.Position = Vector3.new(2.54907229e-09, 0.891290128, 0.00575252576)
  345. Attachment12.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
  346. Attachment12.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  347. Attachment13.Name = "HatAttachment"
  348. Attachment13.Parent = Part7
  349. Attachment13.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  350. Attachment13.CFrame = CFrame.new(2.54907229e-09, 0.891290128, 0.00575252576, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
  351. Attachment13.Position = Vector3.new(2.54907229e-09, 0.891290128, 0.00575252576)
  352. Attachment13.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
  353. Attachment13.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  354. Attachment14.Name = "NeckAttachment"
  355. Attachment14.Parent = Part7
  356. Attachment14.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  357. Attachment14.CFrame = CFrame.new(-4.04782622e-05, -0.859161079, 0.00575252436, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
  358. Attachment14.Position = Vector3.new(-4.04782622e-05, -0.859161079, 0.00575252436)
  359. Attachment14.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
  360. Attachment14.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
  361. Vector3Value15.Name = "OriginalSize"
  362. Vector3Value15.Parent = Part7
  363. Vector3Value15.Value = Vector3.new(1, 1, 1)
  364. Motor6D16.Name = "Neck"
  365. Motor6D16.Parent = Part7
  366. Motor6D16.C0 = CFrame.new(0.000502985611, 1.19909418, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  367. Motor6D16.C1 = CFrame.new(-4.04782586e-05, -0.841438293, 0.0057525239, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  368. Motor6D16.Part0 = nil
  369. Motor6D16.Part1 = Part7
  370. ParticleEmitter17.Parent = Part7
  371. ParticleEmitter17.Transparency = NumberSequence.new(0.5,0.5)
  372. ParticleEmitter17.Size = NumberSequence.new(0.25,0.25)
  373. ParticleEmitter17.Texture = "rbxassetid://501546182"
  374. ParticleEmitter17.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  375. ParticleEmitter17.Rate = 250
  376. ParticleEmitter17.Speed = NumberRange.new(2.5, 2.5)
  377. ParticleEmitter18.Name = "Fire"
  378. ParticleEmitter18.Parent = Part7
  379. ParticleEmitter18.Transparency = NumberSequence.new(1,0,0.94375002384186,0.099999964237213,0.73124998807907,0.27499997615814,0.71249997615814,0.22499996423721,1)
  380. ParticleEmitter18.Size = NumberSequence.new(0.25,0)
  381. ParticleEmitter18.Color = ColorSequence.new(Color3.new(0, 0.666667, 1),Color3.new(0, 0.666667, 1))
  382. ParticleEmitter18.Texture = "rbxassetid://603193846"
  383. ParticleEmitter18.ZOffset = 1
  384. ParticleEmitter18.Acceleration = Vector3.new(0, 10, 0)
  385. ParticleEmitter18.Lifetime = NumberRange.new(0.5, 1)
  386. ParticleEmitter18.Rate = 300
  387. ParticleEmitter18.Speed = NumberRange.new(0, 0)
  388. ParticleEmitter18.VelocitySpread = 15
  389. ParticleEmitter18.Color = ColorSequence.new(Color3.new(0, 0.666667, 1),Color3.new(0, 0.666667, 1))
  390. Script19.Parent = Part7
  391. table.insert(cors,sandbox(Script19,function()
  392. function TOUCH ()
  393. wait(1)
  394. workspace.Sound:Play()
  395. script.Parent.Parent.Zombie.Health = script.Parent.Parent.Zombie.Health  - 3
  396. script.Disabled = true
  397. script.Parent.timer.Disabled = false
  398. end
  399.  
  400. script.Parent.Touched:Connect(TOUCH)
  401.  
  402.  
  403. end))
  404. Script20.Name = "timer"
  405. Script20.Parent = Part7
  406. Script20.Disabled = true
  407. table.insert(cors,sandbox(Script20,function()
  408. wait(6)
  409. script.Parent.Script.Disabled = false
  410. script.Disabled = true
  411.  
  412. end))
  413. BillboardGui21.Parent = Part7
  414. BillboardGui21.Size = UDim2.new(0, 200, 0, 50)
  415. Script22.Parent = BillboardGui21
  416. table.insert(cors,sandbox(Script22,function()
  417. sp = script.Parent
  418. Frame = sp:WaitForChild("Frame")
  419. Boss = Frame:WaitForChild("Boss")
  420. Health = Frame:WaitForChild("Health")
  421. Red = Frame:WaitForChild("Red")
  422. HealthCount = Frame:WaitForChild("HealthCount")
  423. BossName = Frame:WaitForChild("BossName")
  424. Humanoid = nil
  425.  
  426. while true do
  427.     if Boss.Value ~= nil then
  428.         if Boss.Value:FindFirstChild("UpperTorso") then
  429.             sp.BossGui.Adornee = Boss.Value.UpperTorso
  430.             sp.BossGui.Enabled = true
  431.         end
  432.         Frame.Visible = true
  433.         BossName.Text = Boss.Value.Name
  434.         Humanoid = Boss.Value:FindFirstChild("Zombie")
  435.         if Humanoid then
  436.             Health.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  437.             if Red.Size.X.Scale > Health.Size.X.Scale then
  438.                 Red:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0), 1, 1, (Red.Size.X.Scale-Health.Size.X.Scale)*10, true)
  439.             else
  440.                 Red.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  441.             end
  442.             HealthCount.Text = math.floor(Humanoid.Health).." | "..Humanoid.MaxHealth
  443.             --Health.BackgroundColor3 = Color3.new(1-(Humanoid.Health/Humanoid.MaxHealth),Humanoid.Health/Humanoid.MaxHealth,0)
  444.         else
  445.             sp.BossGui.Adornee = nil
  446.             sp.BossGui.Enabled = false
  447.             Frame.Visible = false
  448.         end
  449.         if Boss.Value.Parent == nil then
  450.             Boss.Value = nil
  451.             sp.BossGui.Adornee = nil
  452.             sp.BossGui.Enabled = false
  453.             Frame.Visible = false
  454.         end
  455.     else
  456.         sp.BossGui.Adornee = nil
  457.         sp.BossGui.Enabled = false
  458.         Frame.Visible = false
  459.     end
  460.     wait()
  461. end
  462. end))
  463. BillboardGui23.Name = "BossGui"
  464. BillboardGui23.Parent = BillboardGui21
  465. BillboardGui23.Size = UDim2.new(5, 0, 5, 0)
  466. BillboardGui23.AlwaysOnTop = true
  467. BillboardGui23.StudsOffset = Vector3.new(0, 10, 0)
  468. TextLabel24.Parent = BillboardGui23
  469. TextLabel24.Transparency = 1
  470. TextLabel24.Size = UDim2.new(1, 0, 1, 0)
  471. TextLabel24.Text = "BOSS"
  472. TextLabel24.BackgroundColor3 = Color3.new(1, 1, 1)
  473. TextLabel24.BackgroundTransparency = 1
  474. TextLabel24.Font = Enum.Font.ArialBold
  475. TextLabel24.FontSize = Enum.FontSize.Size12
  476. TextLabel24.TextColor3 = Color3.new(1, 0, 0)
  477. TextLabel24.TextStrokeColor3 = Color3.new(0.784314, 0, 0)
  478. TextLabel24.TextStrokeTransparency = 0
  479. Frame25.Parent = BillboardGui21
  480. Frame25.Size = UDim2.new(0, 500, 0, 30)
  481. Frame25.Style = Enum.FrameStyle.DropShadow
  482. Frame25.Position = UDim2.new(0.5, -250, 0.75, -10)
  483. Frame25.BackgroundColor3 = Color3.new(1, 1, 1)
  484. Frame26.Name = "Health"
  485. Frame26.Parent = Frame25
  486. Frame26.Size = UDim2.new(1, 0, 1, 0)
  487. Frame26.BackgroundColor3 = Color3.new(0, 1, 0)
  488. Frame26.BorderColor3 = Color3.new(0, 0, 0)
  489. Frame26.BorderSizePixel = 0
  490. Frame26.ZIndex = 2
  491. TextLabel27.Name = "HealthCount"
  492. TextLabel27.Parent = Frame25
  493. TextLabel27.Text = "0 | 0"
  494. TextLabel27.Position = UDim2.new(0.5, 0, 0.5, 0)
  495. TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  496. TextLabel27.ZIndex = 2
  497. TextLabel27.Font = Enum.Font.ArialBold
  498. TextLabel27.FontSize = Enum.FontSize.Size18
  499. TextLabel27.TextColor3 = Color3.new(1, 1, 1)
  500. TextLabel27.TextStrokeTransparency = 0
  501. TextLabel28.Name = "BossName"
  502. TextLabel28.Parent = Frame25
  503. TextLabel28.Text = "BossName"
  504. TextLabel28.Position = UDim2.new(0, 0, 0, -10)
  505. TextLabel28.BackgroundColor3 = Color3.new(1, 1, 1)
  506. TextLabel28.Font = Enum.Font.ArialBold
  507. TextLabel28.FontSize = Enum.FontSize.Size18
  508. TextLabel28.TextColor3 = Color3.new(1, 1, 1)
  509. TextLabel28.TextStrokeTransparency = 0
  510. TextLabel28.TextXAlignment = Enum.TextXAlignment.Left
  511. ObjectValue29.Name = "Boss"
  512. ObjectValue29.Parent = Frame25
  513. Frame30.Name = "Red"
  514. Frame30.Parent = Frame25
  515. Frame30.Size = UDim2.new(1, 0, 1, 0)
  516. Frame30.BackgroundColor3 = Color3.new(1, 0, 0)
  517. Frame30.BorderColor3 = Color3.new(0, 0, 0)
  518. Frame30.BorderSizePixel = 0
  519. TextLabel31.Name = "Credit"
  520. TextLabel31.Parent = Frame25
  521. TextLabel31.Text = "Credit to SuperEvilAzmil for Boss Health Meter GUI"
  522. TextLabel31.Position = UDim2.new(1, -5, 1, 10)
  523. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  524. TextLabel31.Font = Enum.Font.ArialBold
  525. TextLabel31.FontSize = Enum.FontSize.Size11
  526. TextLabel31.TextColor3 = Color3.new(1, 1, 1)
  527. TextLabel31.TextStrokeTransparency = 0
  528. TextLabel31.TextXAlignment = Enum.TextXAlignment.Right
  529. Animation32.Name = "Dance3"
  530. Animation32.Parent = Part7
  531. Animation32.AnimationId = "rbxassetid://1490854290"
  532. Script33.Name = "RocketScript"
  533. Script33.Parent = Part7
  534. Script33.Disabled = true
  535. table.insert(cors,sandbox(Script33,function()
  536. r = game:service("RunService")
  537.  
  538. shaft = script.Parent
  539. position = shaft.Position
  540.  
  541. function fly()
  542.     direction = shaft.CFrame.lookVector
  543.     position = position + direction * 3
  544.     error = position - shaft.Position
  545.     shaft.Velocity = 7*error
  546. end
  547.  
  548. function blow()
  549.     explosion = Instance.new("Explosion")
  550.     explosion.Position = shaft.Position
  551.  
  552.  
  553.     -- find instigator tag
  554.     local creator = script.Parent:findFirstChild("creator")
  555.     if creator ~= nil then
  556.         explosion.Hit:connect(function(part, distance)  onPlayerBlownUp(part, distance, creator) end)
  557.     end
  558.  
  559.     explosion.Parent = game.Workspace
  560.     connection:disconnect()
  561.     wait(.1)
  562.     shaft:remove()
  563. end
  564.  
  565. function onPlayerBlownUp(part, distance, creator)
  566.    
  567.     if part.Name == "Head" then
  568.    
  569.         local humanoid = part.Parent.Humanoid
  570.         tagHumanoid(humanoid, creator)
  571.     end
  572. end
  573.  
  574. function tagHumanoid(humanoid, creator)
  575.     -- tag does not need to expire iff all explosions lethal
  576.    
  577.     if creator ~= nil then
  578.         local new_tag = creator:clone()
  579.         new_tag.Parent = humanoid
  580.        
  581.     end
  582. end
  583.  
  584. function untagHumanoid(humanoid)
  585.     if humanoid ~= nil then
  586.         local tag = humanoid:findFirstChild("creator")
  587.         if tag ~= nil then
  588.        
  589.             tag.Parent = nil
  590.         end
  591.     end
  592. end
  593.  
  594. t, s = r.Stepped:wait()
  595.  
  596. d = t + 10.0 - s
  597. connection = shaft.Touched:connect(blow)
  598.  
  599. while t < d do
  600.     fly()
  601.     t = r.Stepped:wait()
  602. end
  603.  
  604. -- at max range
  605. shaft:remove()
  606.  
  607. end))
  608. Script34.Name = "Server Launcher"
  609. Script34.Parent = Part7
  610. table.insert(cors,sandbox(Script34,function()
  611. local Rocket = Instance.new("Part")
  612. local Tool = script.Parent
  613.  
  614. Rocket.Locked = true
  615. Rocket.BackSurface = 3
  616. Rocket.BottomSurface = 3
  617. Rocket.FrontSurface = 3
  618. Rocket.LeftSurface = 3
  619. Rocket.RightSurface = 3
  620. Rocket.TopSurface = 3
  621. Rocket.Size = Vector3.new(1,1,4)
  622. Rocket.BrickColor = BrickColor.new(23)
  623.  
  624. Tool.RocketScript:clone().Parent = Rocket
  625.  
  626. function fire(vTarget)
  627.  
  628.     vHandle=script.Parent
  629.  
  630.     local dir = vTarget - vHandle.Position
  631.  
  632.     dir = computeDirection(dir)
  633.  
  634.     local missile = Rocket:clone()
  635.  
  636.     local pos = vHandle.Position + (dir * 6)
  637.    
  638.     missile.CFrame = CFrame.new(pos,  pos + dir)
  639.  
  640.     local creator_tag = Instance.new("ObjectValue")
  641.  
  642.     local vPlayer = game.Players:playerFromCharacter(vCharacter)
  643.  
  644.     if vPlayer ~= nil then
  645.         if (vPlayer.Neutral == false) then -- nice touch
  646.             missile.BrickColor = vPlayer.TeamColor
  647.         end
  648.     end
  649.  
  650.     creator_tag.Value =vPlayer
  651.     creator_tag.Name = "creator"
  652.     creator_tag.Parent = missile
  653.    
  654.     missile.RocketScript.Disabled = false
  655.  
  656.     missile.Parent = game.Workspace
  657. end
  658.  
  659. function computeDirection(vec)
  660.     local lenSquared = vec.magnitude * vec.magnitude
  661.     local invSqrt = 1 / math.sqrt(lenSquared)
  662.     return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  663. end
  664.  
  665. while true do
  666. fire(script.Parent.CFrame.lookVector*1000)
  667. wait(4)
  668. end
  669.  
  670. end))
  671. Part35.Name = "HumanoidRootPart"
  672. Part35.Parent = Model6
  673. Part35.BrickColor = BrickColor.new("Khaki")
  674. Part35.Transparency = 1
  675. Part35.Rotation = Vector3.new(180, -0.0299999993, 180)
  676. Part35.CanCollide = false
  677. Part35.Size = Vector3.new(2.97530127, 2.97530127, 1.48765063)
  678. Part35.CFrame = CFrame.new(5.54540443, 3.46017599, -30.2544365, -0.999999881, -1.59059965e-08, -0.000481999945, 0, 1, -3.29999966e-05, 0.000481999945, -3.2999993e-05, -0.999999881)
  679. Part35.Color = Color3.new(0.886275, 0.862745, 0.737255)
  680. Part35.Position = Vector3.new(5.54540443, 3.46017599, -30.2544365)
  681. Part35.Orientation = Vector3.new(0, -179.970001, 0)
  682. Part35.Color = Color3.new(0.886275, 0.862745, 0.737255)
  683. Attachment36.Name = "RootRigAttachment"
  684. Attachment36.Parent = Part35
  685. Vector3Value37.Name = "OriginalSize"
  686. Vector3Value37.Parent = Part35
  687. Vector3Value37.Value = Vector3.new(2, 2, 1)
  688. ParticleEmitter38.Parent = Part35
  689. ParticleEmitter38.Transparency = NumberSequence.new(0.5,0.5)
  690. ParticleEmitter38.Size = NumberSequence.new(0.25,0.25)
  691. ParticleEmitter38.Texture = "rbxassetid://501546182"
  692. ParticleEmitter38.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  693. ParticleEmitter38.Rate = 250
  694. ParticleEmitter38.Speed = NumberRange.new(2.5, 2.5)
  695. BodyColors39.Parent = Model6
  696. BodyColors39.HeadColor = BrickColor.new("Medium green")
  697. BodyColors39.LeftArmColor = BrickColor.new("Medium green")
  698. BodyColors39.LeftLegColor = BrickColor.new("Black")
  699. BodyColors39.RightArmColor = BrickColor.new("Medium green")
  700. BodyColors39.RightLegColor = BrickColor.new("Black")
  701. BodyColors39.TorsoColor = BrickColor.new("Reddish brown")
  702. Attachment40.Name = "WaistRigAttachment"
  703. Attachment40.Parent = mas
  704. Attachment40.CFrame = CFrame.new(0.000502985669, -0.689472198, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  705. Attachment40.Position = Vector3.new(0.000502985669, -0.689472198, -0.0231492221)
  706. Attachment41.Name = "NeckRigAttachment"
  707. Attachment41.Parent = mas
  708. Attachment41.CFrame = CFrame.new(0.000502985669, 1.1990943, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  709. Attachment41.Position = Vector3.new(0.000502985669, 1.1990943, -0.0231492221)
  710. Attachment42.Name = "LeftShoulderRigAttachment"
  711. Attachment42.Parent = mas
  712. Attachment42.CFrame = CFrame.new(-1.85889852, 0.827741623, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  713. Attachment42.Position = Vector3.new(-1.85889852, 0.827741623, -0.0231492221)
  714. Attachment43.Name = "RightShoulderRigAttachment"
  715. Attachment43.Parent = mas
  716. Attachment43.CFrame = CFrame.new(1.86003709, 0.827957928, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  717. Attachment43.Position = Vector3.new(1.86003709, 0.827957928, -0.0231492221)
  718. Attachment44.Name = "LeftCollarAttachment"
  719. Attachment44.Parent = mas
  720. Attachment44.CFrame = CFrame.new(-1.48714733, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  721. Attachment44.Position = Vector3.new(-1.48714733, 1.19651484, -0.0231492221)
  722. Attachment45.Name = "RightCollarAttachment"
  723. Attachment45.Parent = mas
  724. Attachment45.CFrame = CFrame.new(1.48815346, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  725. Attachment45.Position = Vector3.new(1.48815346, 1.19651484, -0.0231492221)
  726. Attachment46.Name = "BodyBackAttachment"
  727. Attachment46.Parent = mas
  728. Attachment46.CFrame = CFrame.new(0.000502985669, -0.333346367, 0.778308928, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  729. Attachment46.Position = Vector3.new(0.000502985669, -0.333346367, 0.778308928)
  730. Attachment47.Name = "BodyFrontAttachment"
  731. Attachment47.Parent = mas
  732. Attachment47.CFrame = CFrame.new(0.000502985669, -0.333346367, -0.741851985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  733. Attachment47.Position = Vector3.new(0.000502985669, -0.333346367, -0.741851985)
  734. Vector3Value48.Name = "OriginalSize"
  735. Vector3Value48.Parent = mas
  736. Vector3Value48.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  737. Motor6D49.Name = "Waist"
  738. Motor6D49.Parent = mas
  739. Motor6D49.C0 = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  740. Motor6D49.C1 = CFrame.new(0.000502985611, -0.689472437, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  741. Motor6D49.Part0 = nil
  742. Motor6D49.Part1 = nil
  743. ParticleEmitter50.Parent = mas
  744. ParticleEmitter50.Transparency = NumberSequence.new(0.5,0.5)
  745. ParticleEmitter50.Size = NumberSequence.new(0.25,0.25)
  746. ParticleEmitter50.Texture = "rbxassetid://501546182"
  747. ParticleEmitter50.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  748. ParticleEmitter50.Rate = 250
  749. ParticleEmitter50.Speed = NumberRange.new(2.5, 2.5)
  750. Sound51.Name = "FireSound"
  751. Sound51.Parent = mas
  752. Sound51.SoundId = "http://www.roblox.com/Asset?ID=132456187"
  753. Sound51.Volume = 1
  754. Sound52.Name = "ReloadSound"
  755. Sound52.Parent = mas
  756. Sound52.Pitch = 1.1000000238419
  757. Sound52.SoundId = "http://www.roblox.com/Asset?ID=132456167"
  758. Sound52.Volume = 1
  759. Attachment53.Name = "WaistRigAttachment"
  760. Attachment53.Parent = mas
  761. Attachment53.CFrame = CFrame.new(0.000502985669, -0.689472198, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  762. Attachment53.Position = Vector3.new(0.000502985669, -0.689472198, -0.0231492221)
  763. Attachment54.Name = "NeckRigAttachment"
  764. Attachment54.Parent = mas
  765. Attachment54.CFrame = CFrame.new(0.000502985669, 1.1990943, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  766. Attachment54.Position = Vector3.new(0.000502985669, 1.1990943, -0.0231492221)
  767. Attachment55.Name = "LeftShoulderRigAttachment"
  768. Attachment55.Parent = mas
  769. Attachment55.CFrame = CFrame.new(-1.85889852, 0.827741623, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  770. Attachment55.Position = Vector3.new(-1.85889852, 0.827741623, -0.0231492221)
  771. Attachment56.Name = "RightShoulderRigAttachment"
  772. Attachment56.Parent = mas
  773. Attachment56.CFrame = CFrame.new(1.86003709, 0.827957928, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  774. Attachment56.Position = Vector3.new(1.86003709, 0.827957928, -0.0231492221)
  775. Attachment57.Name = "LeftCollarAttachment"
  776. Attachment57.Parent = mas
  777. Attachment57.CFrame = CFrame.new(-1.48714733, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  778. Attachment57.Position = Vector3.new(-1.48714733, 1.19651484, -0.0231492221)
  779. Attachment58.Name = "RightCollarAttachment"
  780. Attachment58.Parent = mas
  781. Attachment58.CFrame = CFrame.new(1.48815346, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  782. Attachment58.Position = Vector3.new(1.48815346, 1.19651484, -0.0231492221)
  783. Attachment59.Name = "BodyBackAttachment"
  784. Attachment59.Parent = mas
  785. Attachment59.CFrame = CFrame.new(0.000502985669, -0.333346367, 0.778308928, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  786. Attachment59.Position = Vector3.new(0.000502985669, -0.333346367, 0.778308928)
  787. Attachment60.Name = "BodyFrontAttachment"
  788. Attachment60.Parent = mas
  789. Attachment60.CFrame = CFrame.new(0.000502985669, -0.333346367, -0.741851985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  790. Attachment60.Position = Vector3.new(0.000502985669, -0.333346367, -0.741851985)
  791. Vector3Value61.Name = "OriginalSize"
  792. Vector3Value61.Parent = mas
  793. Vector3Value61.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  794. Motor6D62.Name = "Waist"
  795. Motor6D62.Parent = mas
  796. Motor6D62.C0 = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  797. Motor6D62.C1 = CFrame.new(0.000502985611, -0.689472437, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  798. Motor6D62.Part0 = nil
  799. Motor6D62.Part1 = nil
  800. ParticleEmitter63.Parent = mas
  801. ParticleEmitter63.Transparency = NumberSequence.new(0.5,0.5)
  802. ParticleEmitter63.Size = NumberSequence.new(0.25,0.25)
  803. ParticleEmitter63.Texture = "rbxassetid://501546182"
  804. ParticleEmitter63.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  805. ParticleEmitter63.Rate = 250
  806. ParticleEmitter63.Speed = NumberRange.new(2.5, 2.5)
  807. Attachment64.Name = "LeftAnkleRigAttachment"
  808. Attachment64.Parent = mas
  809. Attachment64.CFrame = CFrame.new(-0.0134138651, 0.0482642688, 0.000264161616, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  810. Attachment64.Position = Vector3.new(-0.0134138651, 0.0482642688, 0.000264161616)
  811. Vector3Value65.Name = "OriginalSize"
  812. Vector3Value65.Parent = mas
  813. Vector3Value65.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  814. Motor6D66.Name = "LeftAnkle"
  815. Motor6D66.Parent = mas
  816. Motor6D66.C0 = CFrame.new(-0.00569205033, -1.05642748, 0.000454538065, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  817. Motor6D66.C1 = CFrame.new(-0.0134138661, 0.0482642725, 0.000264161645, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  818. Motor6D66.Part0 = nil
  819. Motor6D66.Part1 = nil
  820. ParticleEmitter67.Parent = mas
  821. ParticleEmitter67.Transparency = NumberSequence.new(0.5,0.5)
  822. ParticleEmitter67.Size = NumberSequence.new(0.25,0.25)
  823. ParticleEmitter67.Texture = "rbxassetid://501546182"
  824. ParticleEmitter67.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  825. ParticleEmitter67.Rate = 250
  826. ParticleEmitter67.Speed = NumberRange.new(2.5, 2.5)
  827. Script68.Name = "Respawn"
  828. Script68.Parent = mas
  829. table.insert(cors,sandbox(Script68,function()
  830.  
  831.  
  832. while true do
  833.     wait(1)
  834.     if script.Parent.ElectricAmmo.Value<1 then
  835. wait(2)        
  836. script.Parent.TeslaScript:Destroy()
  837.    
  838. script.Parent:remove()
  839.     end
  840. end
  841.        
  842.  
  843.  
  844.  
  845. end))
  846. Script69.Name = "TeslaScript"
  847. Script69.Parent = mas
  848. table.insert(cors,sandbox(Script69,function()
  849. -- Made by Stickmasterluke
  850. -- Modified by ScripterTutorials
  851. wait(100)
  852. sp=script.Parent
  853.  
  854. segmentlength = 5
  855. segmentwidth = 0.35
  856. varience = 1.5
  857. timetofade=sp.Configuration.FadeTime.Value
  858.  
  859. function raycast(spos,vec,currentdist)
  860.     local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
  861.     if hit2~=nil and pos2 then
  862.         if hit2.Transparency>=.5 or hit2.Name=="Handle" then
  863.             local currentdist=currentdist-(pos2-spos).magnitude
  864.             return raycast(pos2,vec,currentdist)
  865.         end
  866.     end
  867.     return hit2,pos2
  868. end
  869.  
  870. function zap(targetpos)
  871.     if targetpos then
  872.         local m=Instance.new("Model")
  873.         m.Name="Lightning"
  874.         local lastpos=sp.Position
  875.         local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
  876.         local direction=(targetpos-sp.Position).unit
  877.         local struck = false
  878.         for i=1,totalsegments do
  879.             if not struck then
  880.                 local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
  881.                 local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
  882.                 local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
  883.                 local l=Instance.new("Part")
  884.                
  885.                 l.Material = sp.Configuration.Material.Value
  886.                 l.CanCollide=false
  887.                 l.Anchored=true
  888.                 l.BrickColor=sp.Configuration.Color.Value
  889.                 l.formFactor="Custom"
  890.                 l.Size=Vector3.new(2,2,2)
  891.                 l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
  892.                 local mesh=Instance.new("CylinderMesh")
  893.                 mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
  894.                 mesh.Parent=l
  895.                 delay(0,function()
  896.                     for i=1,timetofade/(.1) do
  897.                         wait(.1)
  898.                         l.Transparency=i/(timetofade/(.1))
  899.                     end
  900.                 end)
  901.                 if hit and hit.Parent~=nil then
  902.                     struck=true
  903.                     local h=hit.Parent:FindFirstChild("Humanoid")
  904.                     if h then
  905.                         script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
  906.                         h:TakeDamage(sp.Configuration.Damage.Value)
  907.                     end
  908.                 end
  909.                 l.Parent=m
  910.                 lastpos=endpos
  911.             end
  912.         end
  913.         m.Parent=game.Workspace
  914.         game:GetService("Debris"):AddItem(m,1.5)
  915.     end
  916. end
  917.  
  918. local humanoids
  919.  
  920. function populatehumanoids(mdl)
  921.     for _, v in pairs(mdl:GetChildren()) do
  922.         if v:FindFirstChild("Humanoid") then
  923.             if not sp.Configuration.DamagePlayers.Value then
  924.                 if not game.Players:GetPlayerFromCharacter(v) then
  925.                     table.insert(humanoids, v.Humanoid)
  926.                 end
  927.             else
  928.                 table.insert(humanoids, v.Humanoid)
  929.             end
  930.         end
  931.     end
  932. end
  933.  
  934. wait(3)
  935.  
  936. while script.Parent.Parent do
  937.     for i = 1, sp.Configuration.BurstAmount.Value do
  938.         oldclosedist = {}
  939.         closedist = {}
  940.         oldclosepos = {}
  941.         closepos = {}
  942.         humanoids = {}
  943.         populatehumanoids(workspace)
  944.         for _, v in pairs(humanoids) do
  945.             if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
  946.                 local t = v.Parent.Head
  947.                 local dist=(t.Position-sp.Position).magnitude
  948.                 if dist<=sp.Configuration.Range.Value then
  949.                     table.insert(oldclosedist, dist)
  950.                     table.insert(closedist, dist)
  951.                     table.insert(oldclosepos, t.Position)
  952.                 end
  953.             end
  954.         end
  955.         table.sort(closedist)
  956.         for _, v in pairs(oldclosedist) do
  957.             for i = 1, #closedist do
  958.                 if closedist[i] == v then
  959.                     table.insert(closepos, oldclosepos[i])
  960.                 end
  961.             end
  962.         end
  963.         if #closepos > 0 then
  964.             local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
  965.             for i = 1, max do
  966.                 spawn(function()
  967.                     zap(closepos[i])
  968.                 end)
  969.             end
  970.         end
  971.         wait(sp.Configuration.BurstWait.Value)
  972.     end
  973.     wait(sp.Configuration.Frequency.Value)
  974. end
  975. end))
  976. NumberValue70.Name = "ElectricAmmo"
  977. NumberValue70.Parent = mas
  978. NumberValue70.Value = 10
  979. Configuration71.Parent = mas
  980. IntValue72.Name = "Damage"
  981. IntValue72.Parent = Configuration71
  982. IntValue72.Value = 20
  983. IntValue73.Name = "Range"
  984. IntValue73.Parent = Configuration71
  985. IntValue73.Value = 100
  986. NumberValue74.Name = "Frequency"
  987. NumberValue74.Parent = Configuration71
  988. NumberValue74.Value = 1
  989. BrickColorValue75.Name = "Color"
  990. BrickColorValue75.Parent = Configuration71
  991. BrickColorValue75.Value = BrickColor.new("Toothpaste")
  992. IntValue76.Name = "MaxTargets"
  993. IntValue76.Parent = Configuration71
  994. IntValue76.Value = 1
  995. IntValue77.Name = "BurstAmount"
  996. IntValue77.Parent = Configuration71
  997. IntValue77.Value = 23
  998. NumberValue78.Name = "BurstWait"
  999. NumberValue78.Parent = Configuration71
  1000. NumberValue78.Value = 2
  1001. BoolValue79.Name = "DamagePlayers"
  1002. BoolValue79.Parent = Configuration71
  1003. BoolValue79.Value = true
  1004. NumberValue80.Name = "FadeTime"
  1005. NumberValue80.Parent = Configuration71
  1006. NumberValue80.Value = 0.5
  1007. StringValue81.Name = "Material"
  1008. StringValue81.Parent = Configuration71
  1009. StringValue81.Value = "Neon"
  1010. Attachment82.Name = "RightHipRigAttachment"
  1011. Attachment82.Parent = mas
  1012. Attachment82.CFrame = CFrame.new(0.00569204986, 0.72138238, 0.000724211161, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1013. Attachment82.Position = Vector3.new(0.00569204986, 0.72138238, 0.000724211161)
  1014. Attachment83.Name = "RightKneeRigAttachment"
  1015. Attachment83.Parent = mas
  1016. Attachment83.CFrame = CFrame.new(0.00569204986, -0.394355595, 0.000635214732, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1017. Attachment83.Position = Vector3.new(0.00569204986, -0.394355595, 0.000635214732)
  1018. Vector3Value84.Name = "OriginalSize"
  1019. Vector3Value84.Parent = mas
  1020. Vector3Value84.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  1021. Motor6D85.Name = "RightHip"
  1022. Motor6D85.Parent = mas
  1023. Motor6D85.C0 = CFrame.new(0.751382887, -0.361889243, 0.00152914331, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1024. Motor6D85.C1 = CFrame.new(0.00569205033, 0.72138232, 0.000724211161, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1025. Motor6D85.Part0 = nil
  1026. Motor6D85.Part1 = nil
  1027. ParticleEmitter86.Parent = mas
  1028. ParticleEmitter86.Transparency = NumberSequence.new(0.5,0.5)
  1029. ParticleEmitter86.Size = NumberSequence.new(0.25,0.25)
  1030. ParticleEmitter86.Texture = "rbxassetid://501546182"
  1031. ParticleEmitter86.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1032. ParticleEmitter86.Rate = 250
  1033. ParticleEmitter86.Speed = NumberRange.new(2.5, 2.5)
  1034. Attachment87.Name = "RightShoulderRigAttachment"
  1035. Attachment87.Parent = mas
  1036. Attachment87.CFrame = CFrame.new(-0.36875245, 0.679675281, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1037. Attachment87.Position = Vector3.new(-0.36875245, 0.679675281, -0.0140436068)
  1038. Attachment88.Name = "RightElbowRigAttachment"
  1039. Attachment88.Parent = mas
  1040. Attachment88.CFrame = CFrame.new(0.00318949297, -0.391459733, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1041. Attachment88.Position = Vector3.new(0.00318949297, -0.391459733, -0.0140436068)
  1042. Attachment89.Name = "RightShoulderAttachment"
  1043. Attachment89.Parent = mas
  1044. Attachment89.CFrame = CFrame.new(0.0180658046, 1.05591035, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1045. Attachment89.Position = Vector3.new(0.0180658046, 1.05591035, -0.0140436068)
  1046. Vector3Value90.Name = "OriginalSize"
  1047. Vector3Value90.Parent = mas
  1048. Vector3Value90.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  1049. Motor6D91.Name = "RightShoulder"
  1050. Motor6D91.Parent = mas
  1051. Motor6D91.C0 = CFrame.new(1.86003721, 0.827957749, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1052. Motor6D91.C1 = CFrame.new(-0.36875242, 0.679675281, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1053. Motor6D91.Part0 = nil
  1054. Motor6D91.Part1 = nil
  1055. ParticleEmitter92.Parent = mas
  1056. ParticleEmitter92.Transparency = NumberSequence.new(0.5,0.5)
  1057. ParticleEmitter92.Size = NumberSequence.new(0.25,0.25)
  1058. ParticleEmitter92.Texture = "rbxassetid://501546182"
  1059. ParticleEmitter92.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1060. ParticleEmitter92.Rate = 250
  1061. ParticleEmitter92.Speed = NumberRange.new(2.5, 2.5)
  1062. Attachment93.Name = "RightKneeRigAttachment"
  1063. Attachment93.Parent = mas
  1064. Attachment93.CFrame = CFrame.new(0.00569204986, 0.430330634, 0.000216976288, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1065. Attachment93.Position = Vector3.new(0.00569204986, 0.430330634, 0.000216976288)
  1066. Attachment94.Name = "RightAnkleRigAttachment"
  1067. Attachment94.Parent = mas
  1068. Attachment94.CFrame = CFrame.new(0.00569204986, -1.05732036, 0.00042162725, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1069. Attachment94.Position = Vector3.new(0.00569204986, -1.05732036, 0.00042162725)
  1070. Vector3Value95.Name = "OriginalSize"
  1071. Vector3Value95.Parent = mas
  1072. Vector3Value95.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  1073. Motor6D96.Name = "RightKnee"
  1074. Motor6D96.Parent = mas
  1075. Motor6D96.C0 = CFrame.new(0.00569205033, -0.394355625, 0.000635214674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1076. Motor6D96.C1 = CFrame.new(0.00569205033, 0.430330634, 0.000216976274, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1077. Motor6D96.Part0 = nil
  1078. Motor6D96.Part1 = nil
  1079. ParticleEmitter97.Parent = mas
  1080. ParticleEmitter97.Transparency = NumberSequence.new(0.5,0.5)
  1081. ParticleEmitter97.Size = NumberSequence.new(0.25,0.25)
  1082. ParticleEmitter97.Texture = "rbxassetid://501546182"
  1083. ParticleEmitter97.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1084. ParticleEmitter97.Rate = 250
  1085. ParticleEmitter97.Speed = NumberRange.new(2.5, 2.5)
  1086. Attachment98.Name = "RightWristRigAttachment"
  1087. Attachment98.Parent = mas
  1088. Attachment98.CFrame = CFrame.new(0.00319037843, -1.01465142, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1089. Attachment98.Position = Vector3.new(0.00319037843, -1.01465142, -0.0147217168)
  1090. Attachment99.Name = "RightElbowRigAttachment"
  1091. Attachment99.Parent = mas
  1092. Attachment99.CFrame = CFrame.new(0.00319037843, 0.182907447, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1093. Attachment99.Position = Vector3.new(0.00319037843, 0.182907447, -0.0147217168)
  1094. Vector3Value100.Name = "OriginalSize"
  1095. Vector3Value100.Parent = mas
  1096. Vector3Value100.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  1097. Motor6D101.Name = "RightElbow"
  1098. Motor6D101.Parent = mas
  1099. Motor6D101.C0 = CFrame.new(0.00318949181, -0.391459703, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1100. Motor6D101.C1 = CFrame.new(0.00319037843, 0.182907462, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1101. Motor6D101.Part0 = nil
  1102. Motor6D101.Part1 = nil
  1103. ParticleEmitter102.Parent = mas
  1104. ParticleEmitter102.Transparency = NumberSequence.new(0.5,0.5)
  1105. ParticleEmitter102.Size = NumberSequence.new(0.25,0.25)
  1106. ParticleEmitter102.Texture = "rbxassetid://501546182"
  1107. ParticleEmitter102.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1108. ParticleEmitter102.Rate = 250
  1109. ParticleEmitter102.Speed = NumberRange.new(2.5, 2.5)
  1110. Attachment103.Name = "RightWristRigAttachment"
  1111. Attachment103.Parent = mas
  1112. Attachment103.CFrame = CFrame.new(0.0012869694, 0.0864428356, -0.0229678899, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1113. Attachment103.Position = Vector3.new(0.0012869694, 0.0864428356, -0.0229678899)
  1114. Attachment104.Name = "RightGripAttachment"
  1115. Attachment104.Parent = mas
  1116. Attachment104.Rotation = Vector3.new(-90, -0, -0)
  1117. Attachment104.CFrame = CFrame.new(0.0161634628, -0.250913799, -0.0229677539, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
  1118. Attachment104.Position = Vector3.new(0.0161634628, -0.250913799, -0.0229677539)
  1119. Attachment104.Orientation = Vector3.new(-90, -0, 0)
  1120. Vector3Value105.Name = "OriginalSize"
  1121. Vector3Value105.Parent = mas
  1122. Vector3Value105.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  1123. Motor6D106.Name = "RightWrist"
  1124. Motor6D106.Parent = mas
  1125. Motor6D106.C0 = CFrame.new(0.00319037843, -1.01465142, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1126. Motor6D106.C1 = CFrame.new(0.00128696929, 0.0864428356, -0.022967888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1127. Motor6D106.Part0 = nil
  1128. Motor6D106.Part1 = nil
  1129. ParticleEmitter107.Parent = mas
  1130. ParticleEmitter107.Transparency = NumberSequence.new(0.5,0.5)
  1131. ParticleEmitter107.Size = NumberSequence.new(0.25,0.25)
  1132. ParticleEmitter107.Texture = "rbxassetid://501546182"
  1133. ParticleEmitter107.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1134. ParticleEmitter107.Rate = 250
  1135. ParticleEmitter107.Speed = NumberRange.new(2.5, 2.5)
  1136. Attachment108.Name = "RightAnkleRigAttachment"
  1137. Attachment108.Parent = mas
  1138. Attachment108.CFrame = CFrame.new(0.0134138651, 0.0473715439, 0.000231406069, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1139. Attachment108.Position = Vector3.new(0.0134138651, 0.0473715439, 0.000231406069)
  1140. Vector3Value109.Name = "OriginalSize"
  1141. Vector3Value109.Parent = mas
  1142. Vector3Value109.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  1143. Motor6D110.Name = "RightAnkle"
  1144. Motor6D110.Parent = mas
  1145. Motor6D110.C0 = CFrame.new(0.00569205033, -1.05732012, 0.000421627308, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1146. Motor6D110.C1 = CFrame.new(0.0134138661, 0.0473715365, 0.000231406084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1147. Motor6D110.Part0 = nil
  1148. Motor6D110.Part1 = nil
  1149. ParticleEmitter111.Parent = mas
  1150. ParticleEmitter111.Transparency = NumberSequence.new(0.5,0.5)
  1151. ParticleEmitter111.Size = NumberSequence.new(0.25,0.25)
  1152. ParticleEmitter111.Texture = "rbxassetid://501546182"
  1153. ParticleEmitter111.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1154. ParticleEmitter111.Rate = 250
  1155. ParticleEmitter111.Speed = NumberRange.new(2.5, 2.5)
  1156. Attachment112.Name = "RootRigAttachment"
  1157. Attachment112.Parent = mas
  1158. Attachment112.CFrame = CFrame.new(0.000416797498, 0.197913736, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1159. Attachment112.Position = Vector3.new(0.000416797498, 0.197913736, -0.0212319121)
  1160. Attachment113.Name = "WaistRigAttachment"
  1161. Attachment113.Parent = mas
  1162. Attachment113.CFrame = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1163. Attachment113.Position = Vector3.new(0.000416797498, 0.799082518, -0.0212319121)
  1164. Attachment114.Name = "LeftHipRigAttachment"
  1165. Attachment114.Parent = mas
  1166. Attachment114.CFrame = CFrame.new(-0.750549316, -0.361591637, 0.00182667281, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1167. Attachment114.Position = Vector3.new(-0.750549316, -0.361591637, 0.00182667281)
  1168. Attachment115.Name = "RightHipRigAttachment"
  1169. Attachment115.Parent = mas
  1170. Attachment115.CFrame = CFrame.new(0.751382887, -0.361889243, 0.00152914331, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1171. Attachment115.Position = Vector3.new(0.751382887, -0.361889243, 0.00152914331)
  1172. Attachment116.Name = "WaistFrontAttachment"
  1173. Attachment116.Parent = mas
  1174. Attachment116.CFrame = CFrame.new(0.000416797498, -0.099423185, -0.745699525, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1175. Attachment116.Position = Vector3.new(0.000416797498, -0.099423185, -0.745699525)
  1176. Attachment117.Name = "WaistCenterAttachment"
  1177. Attachment117.Parent = mas
  1178. Attachment117.CFrame = CFrame.new(0.000416797498, -0.099423185, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1179. Attachment117.Position = Vector3.new(0.000416797498, -0.099423185, -0.0212319121)
  1180. Attachment118.Name = "WaistBackAttachment"
  1181. Attachment118.Parent = mas
  1182. Attachment118.CFrame = CFrame.new(0.000416797498, -0.099423185, 0.730230987, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1183. Attachment118.Position = Vector3.new(0.000416797498, -0.099423185, 0.730230987)
  1184. Vector3Value119.Name = "OriginalSize"
  1185. Vector3Value119.Parent = mas
  1186. Vector3Value119.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  1187. Motor6D120.Name = "Root"
  1188. Motor6D120.Parent = mas
  1189. Motor6D120.C1 = CFrame.new(0.000416797498, 0.197913706, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1190. Motor6D120.Part0 = Part35
  1191. Motor6D120.Part1 = nil
  1192. ParticleEmitter121.Parent = mas
  1193. ParticleEmitter121.Transparency = NumberSequence.new(0.5,0.5)
  1194. ParticleEmitter121.Size = NumberSequence.new(0.25,0.25)
  1195. ParticleEmitter121.Texture = "rbxassetid://501546182"
  1196. ParticleEmitter121.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1197. ParticleEmitter121.Rate = 250
  1198. ParticleEmitter121.Speed = NumberRange.new(2.5, 2.5)
  1199. Attachment122.Name = "LeftHipRigAttachment"
  1200. Attachment122.Parent = mas
  1201. Attachment122.CFrame = CFrame.new(-0.00569204986, 0.721679807, 0.00102163001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1202. Attachment122.Position = Vector3.new(-0.00569204986, 0.721679807, 0.00102163001)
  1203. Attachment123.Name = "LeftKneeRigAttachment"
  1204. Attachment123.Parent = mas
  1205. Attachment123.CFrame = CFrame.new(-0.00569204986, -0.393463045, 0.000872865261, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1206. Attachment123.Position = Vector3.new(-0.00569204986, -0.393463045, 0.000872865261)
  1207. Vector3Value124.Name = "OriginalSize"
  1208. Vector3Value124.Parent = mas
  1209. Vector3Value124.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  1210. Motor6D125.Name = "LeftHip"
  1211. Motor6D125.Parent = mas
  1212. Motor6D125.C0 = CFrame.new(-0.750549257, -0.361591697, 0.00182667293, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1213. Motor6D125.C1 = CFrame.new(-0.00569205033, 0.721679866, 0.0010216299, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1214. Motor6D125.Part0 = nil
  1215. Motor6D125.Part1 = nil
  1216. ParticleEmitter126.Parent = mas
  1217. ParticleEmitter126.Transparency = NumberSequence.new(0.5,0.5)
  1218. ParticleEmitter126.Size = NumberSequence.new(0.25,0.25)
  1219. ParticleEmitter126.Texture = "rbxassetid://501546182"
  1220. ParticleEmitter126.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1221. ParticleEmitter126.Rate = 250
  1222. ParticleEmitter126.Speed = NumberRange.new(2.5, 2.5)
  1223. Attachment127.Name = "LeftShoulderRigAttachment"
  1224. Attachment127.Parent = mas
  1225. Attachment127.CFrame = CFrame.new(0.368885309, 0.679459095, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1226. Attachment127.Position = Vector3.new(0.368885309, 0.679459095, -0.0140432967)
  1227. Attachment128.Name = "LeftElbowRigAttachment"
  1228. Attachment128.Parent = mas
  1229. Attachment128.CFrame = CFrame.new(-0.0024771092, -0.391459733, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1230. Attachment128.Position = Vector3.new(-0.0024771092, -0.391459733, -0.0140432967)
  1231. Attachment129.Name = "LeftShoulderAttachment"
  1232. Attachment129.Parent = mas
  1233. Attachment129.CFrame = CFrame.new(-0.0179773103, 1.05591047, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1234. Attachment129.Position = Vector3.new(-0.0179773103, 1.05591047, -0.0140432967)
  1235. Vector3Value130.Name = "OriginalSize"
  1236. Vector3Value130.Parent = mas
  1237. Vector3Value130.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  1238. Motor6D131.Name = "LeftShoulder"
  1239. Motor6D131.Parent = mas
  1240. Motor6D131.C0 = CFrame.new(-1.8588984, 0.827741563, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1241. Motor6D131.C1 = CFrame.new(0.368885249, 0.679459095, -0.0140432958, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1242. Motor6D131.Part0 = nil
  1243. Motor6D131.Part1 = nil
  1244. ParticleEmitter132.Parent = mas
  1245. ParticleEmitter132.Transparency = NumberSequence.new(0.5,0.5)
  1246. ParticleEmitter132.Size = NumberSequence.new(0.25,0.25)
  1247. ParticleEmitter132.Texture = "rbxassetid://501546182"
  1248. ParticleEmitter132.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1249. ParticleEmitter132.Rate = 250
  1250. ParticleEmitter132.Speed = NumberRange.new(2.5, 2.5)
  1251. Attachment133.Name = "LeftKneeRigAttachment"
  1252. Attachment133.Parent = mas
  1253. Attachment133.CFrame = CFrame.new(-0.00569204986, 0.431223273, 0.000454538123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1254. Attachment133.Position = Vector3.new(-0.00569204986, 0.431223273, 0.000454538123)
  1255. Attachment134.Name = "LeftAnkleRigAttachment"
  1256. Attachment134.Parent = mas
  1257. Attachment134.CFrame = CFrame.new(-0.00569204986, -1.05642736, 0.000454538123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1258. Attachment134.Position = Vector3.new(-0.00569204986, -1.05642736, 0.000454538123)
  1259. Vector3Value135.Name = "OriginalSize"
  1260. Vector3Value135.Parent = mas
  1261. Vector3Value135.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  1262. Motor6D136.Name = "LeftKnee"
  1263. Motor6D136.Parent = mas
  1264. Motor6D136.C0 = CFrame.new(-0.00569205033, -0.393463045, 0.000872865145, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1265. Motor6D136.C1 = CFrame.new(-0.00569205033, 0.431223184, 0.000454538065, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1266. Motor6D136.Part0 = nil
  1267. Motor6D136.Part1 = nil
  1268. ParticleEmitter137.Parent = mas
  1269. ParticleEmitter137.Transparency = NumberSequence.new(0.5,0.5)
  1270. ParticleEmitter137.Size = NumberSequence.new(0.25,0.25)
  1271. ParticleEmitter137.Texture = "rbxassetid://501546182"
  1272. ParticleEmitter137.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1273. ParticleEmitter137.Rate = 250
  1274. ParticleEmitter137.Speed = NumberRange.new(2.5, 2.5)
  1275. Attachment138.Name = "LeftElbowRigAttachment"
  1276. Attachment138.Parent = mas
  1277. Attachment138.CFrame = CFrame.new(-0.00247799675, 0.182907447, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1278. Attachment138.Position = Vector3.new(-0.00247799675, 0.182907447, -0.014721673)
  1279. Attachment139.Name = "LeftWristRigAttachment"
  1280. Attachment139.Parent = mas
  1281. Attachment139.CFrame = CFrame.new(-0.00247799675, -1.01495802, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1282. Attachment139.Position = Vector3.new(-0.00247799675, -1.01495802, -0.014721673)
  1283. Vector3Value140.Name = "OriginalSize"
  1284. Vector3Value140.Parent = mas
  1285. Vector3Value140.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  1286. Motor6D141.Name = "LeftElbow"
  1287. Motor6D141.Parent = mas
  1288. Motor6D141.C0 = CFrame.new(-0.0024771099, -0.391459703, -0.0140432958, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1289. Motor6D141.C1 = CFrame.new(-0.00247799652, 0.182907462, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1290. Motor6D141.Part0 = nil
  1291. Motor6D141.Part1 = nil
  1292. ParticleEmitter142.Parent = mas
  1293. ParticleEmitter142.Transparency = NumberSequence.new(0.5,0.5)
  1294. ParticleEmitter142.Size = NumberSequence.new(0.25,0.25)
  1295. ParticleEmitter142.Texture = "rbxassetid://501546182"
  1296. ParticleEmitter142.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1297. ParticleEmitter142.Rate = 250
  1298. ParticleEmitter142.Speed = NumberRange.new(2.5, 2.5)
  1299. Script143.Name = "TeslaScript"
  1300. Script143.Parent = mas
  1301. table.insert(cors,sandbox(Script143,function()
  1302. -- Made by Stickmasterluke
  1303. -- Modified by ScripterTutorials
  1304. wait(100)
  1305. sp=script.Parent
  1306.  
  1307. segmentlength = 5
  1308. segmentwidth = 0.35
  1309. varience = 1.5
  1310. timetofade=sp.Configuration.FadeTime.Value
  1311.  
  1312. function raycast(spos,vec,currentdist)
  1313.     local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
  1314.     if hit2~=nil and pos2 then
  1315.         if hit2.Transparency>=.5 or hit2.Name=="Handle" then
  1316.             local currentdist=currentdist-(pos2-spos).magnitude
  1317.             return raycast(pos2,vec,currentdist)
  1318.         end
  1319.     end
  1320.     return hit2,pos2
  1321. end
  1322.  
  1323. function zap(targetpos)
  1324.     if targetpos then
  1325.         local m=Instance.new("Model")
  1326.         m.Name="Lightning"
  1327.         local lastpos=sp.Position
  1328.         local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
  1329.         local direction=(targetpos-sp.Position).unit
  1330.         local struck = false
  1331.         for i=1,totalsegments do
  1332.             if not struck then
  1333.                 local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
  1334.                 local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
  1335.                 local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
  1336.                 local l=Instance.new("Part")
  1337.                
  1338.                 l.Material = sp.Configuration.Material.Value
  1339.                 l.CanCollide=false
  1340.                 l.Anchored=true
  1341.                 l.BrickColor=sp.Configuration.Color.Value
  1342.                 l.formFactor="Custom"
  1343.                 l.Size=Vector3.new(2,2,2)
  1344.                 l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
  1345.                 local mesh=Instance.new("CylinderMesh")
  1346.                 mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
  1347.                 mesh.Parent=l
  1348.                 delay(0,function()
  1349.                     for i=1,timetofade/(.1) do
  1350.                         wait(.1)
  1351.                         l.Transparency=i/(timetofade/(.1))
  1352.                     end
  1353.                 end)
  1354.                 if hit and hit.Parent~=nil then
  1355.                     struck=true
  1356.                     local h=hit.Parent:FindFirstChild("Humanoid")
  1357.                     if h then
  1358.                         script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
  1359.                         h:TakeDamage(sp.Configuration.Damage.Value)
  1360.                     end
  1361.                 end
  1362.                 l.Parent=m
  1363.                 lastpos=endpos
  1364.             end
  1365.         end
  1366.         m.Parent=game.Workspace
  1367.         game:GetService("Debris"):AddItem(m,1.5)
  1368.     end
  1369. end
  1370.  
  1371. local humanoids
  1372.  
  1373. function populatehumanoids(mdl)
  1374.     for _, v in pairs(mdl:GetChildren()) do
  1375.         if v:FindFirstChild("Humanoid") then
  1376.             if not sp.Configuration.DamagePlayers.Value then
  1377.                 if not game.Players:GetPlayerFromCharacter(v) then
  1378.                     table.insert(humanoids, v.Humanoid)
  1379.                 end
  1380.             else
  1381.                 table.insert(humanoids, v.Humanoid)
  1382.             end
  1383.         end
  1384.     end
  1385. end
  1386.  
  1387. wait(3)
  1388.  
  1389. while script.Parent.Parent do
  1390.     for i = 1, sp.Configuration.BurstAmount.Value do
  1391.         oldclosedist = {}
  1392.         closedist = {}
  1393.         oldclosepos = {}
  1394.         closepos = {}
  1395.         humanoids = {}
  1396.         populatehumanoids(workspace)
  1397.         for _, v in pairs(humanoids) do
  1398.             if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
  1399.                 local t = v.Parent.Head
  1400.                 local dist=(t.Position-sp.Position).magnitude
  1401.                 if dist<=sp.Configuration.Range.Value then
  1402.                     table.insert(oldclosedist, dist)
  1403.                     table.insert(closedist, dist)
  1404.                     table.insert(oldclosepos, t.Position)
  1405.                 end
  1406.             end
  1407.         end
  1408.         table.sort(closedist)
  1409.         for _, v in pairs(oldclosedist) do
  1410.             for i = 1, #closedist do
  1411.                 if closedist[i] == v then
  1412.                     table.insert(closepos, oldclosepos[i])
  1413.                 end
  1414.             end
  1415.         end
  1416.         if #closepos > 0 then
  1417.             local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
  1418.             for i = 1, max do
  1419.                 spawn(function()
  1420.                     zap(closepos[i])
  1421.                 end)
  1422.             end
  1423.         end
  1424.         wait(sp.Configuration.BurstWait.Value)
  1425.     end
  1426.     wait(sp.Configuration.Frequency.Value)
  1427. end
  1428. end))
  1429. Configuration144.Parent = mas
  1430. IntValue145.Name = "Damage"
  1431. IntValue145.Parent = Configuration144
  1432. IntValue145.Value = 20
  1433. IntValue146.Name = "Range"
  1434. IntValue146.Parent = Configuration144
  1435. IntValue146.Value = 100
  1436. NumberValue147.Name = "Frequency"
  1437. NumberValue147.Parent = Configuration144
  1438. NumberValue147.Value = 1
  1439. BrickColorValue148.Name = "Color"
  1440. BrickColorValue148.Parent = Configuration144
  1441. BrickColorValue148.Value = BrickColor.new("Toothpaste")
  1442. IntValue149.Name = "MaxTargets"
  1443. IntValue149.Parent = Configuration144
  1444. IntValue149.Value = 1
  1445. IntValue150.Name = "BurstAmount"
  1446. IntValue150.Parent = Configuration144
  1447. IntValue150.Value = 23
  1448. NumberValue151.Name = "BurstWait"
  1449. NumberValue151.Parent = Configuration144
  1450. NumberValue151.Value = 2
  1451. BoolValue152.Name = "DamagePlayers"
  1452. BoolValue152.Parent = Configuration144
  1453. BoolValue152.Value = true
  1454. NumberValue153.Name = "FadeTime"
  1455. NumberValue153.Parent = Configuration144
  1456. NumberValue153.Value = 0.5
  1457. StringValue154.Name = "Material"
  1458. StringValue154.Parent = Configuration144
  1459. StringValue154.Value = "Neon"
  1460. NumberValue155.Name = "ElectricAmmo"
  1461. NumberValue155.Parent = mas
  1462. NumberValue155.Value = 10
  1463. Script156.Name = "Respawn"
  1464. Script156.Parent = mas
  1465. table.insert(cors,sandbox(Script156,function()
  1466.  
  1467.  
  1468. while true do
  1469.     wait(1)
  1470.     if script.Parent.ElectricAmmo.Value<1 then
  1471. wait(2)        
  1472. script.Parent.TeslaScript:Destroy()
  1473.    
  1474. script.Parent:remove()
  1475.     end
  1476. end
  1477.        
  1478.  
  1479.  
  1480.  
  1481. end))
  1482. Attachment157.Name = "LeftWristRigAttachment"
  1483. Attachment157.Parent = mas
  1484. Attachment157.CFrame = CFrame.new(-0.000574587379, 0.0861361995, -0.0229678899, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1485. Attachment157.Position = Vector3.new(-0.000574587379, 0.0861361995, -0.0229678899)
  1486. Attachment158.Name = "LeftGripAttachment"
  1487. Attachment158.Parent = mas
  1488. Attachment158.Rotation = Vector3.new(-90, -0, -0)
  1489. Attachment158.CFrame = CFrame.new(-0.0160747897, -0.25091368, -0.0229677539, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
  1490. Attachment158.Position = Vector3.new(-0.0160747897, -0.25091368, -0.0229677539)
  1491. Attachment158.Orientation = Vector3.new(-90, -0, 0)
  1492. Vector3Value159.Name = "OriginalSize"
  1493. Vector3Value159.Parent = mas
  1494. Vector3Value159.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  1495. Motor6D160.Name = "LeftWrist"
  1496. Motor6D160.Parent = mas
  1497. Motor6D160.C0 = CFrame.new(-0.00247799652, -1.01495802, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1498. Motor6D160.C1 = CFrame.new(-0.000574587379, 0.086136207, -0.022967888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1499. Motor6D160.Part0 = nil
  1500. Motor6D160.Part1 = nil
  1501. ParticleEmitter161.Parent = mas
  1502. ParticleEmitter161.Transparency = NumberSequence.new(0.5,0.5)
  1503. ParticleEmitter161.Size = NumberSequence.new(0.25,0.25)
  1504. ParticleEmitter161.Texture = "rbxassetid://501546182"
  1505. ParticleEmitter161.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  1506. ParticleEmitter161.Rate = 250
  1507. ParticleEmitter161.Speed = NumberRange.new(2.5, 2.5)
  1508. Script162.Name = "Respawn"
  1509. Script162.Parent = mas
  1510. table.insert(cors,sandbox(Script162,function()
  1511.  
  1512.  
  1513. while true do
  1514.     wait(1)
  1515.     if script.Parent.ElectricAmmo.Value<1 then
  1516. wait(2)        
  1517. script.Parent.TeslaScript:Destroy()
  1518.    
  1519. script.Parent:remove()
  1520.     end
  1521. end
  1522.        
  1523.  
  1524.  
  1525.  
  1526. end))
  1527. Script163.Name = "TeslaScript"
  1528. Script163.Parent = mas
  1529. table.insert(cors,sandbox(Script163,function()
  1530. -- Made by Stickmasterluke
  1531. -- Modified by ScripterTutorials
  1532. wait(100)
  1533. sp=script.Parent
  1534.  
  1535. segmentlength = 5
  1536. segmentwidth = 0.35
  1537. varience = 1.5
  1538. timetofade=sp.Configuration.FadeTime.Value
  1539.  
  1540. function raycast(spos,vec,currentdist)
  1541.     local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
  1542.     if hit2~=nil and pos2 then
  1543.         if hit2.Transparency>=.5 or hit2.Name=="Handle" then
  1544.             local currentdist=currentdist-(pos2-spos).magnitude
  1545.             return raycast(pos2,vec,currentdist)
  1546.         end
  1547.     end
  1548.     return hit2,pos2
  1549. end
  1550.  
  1551. function zap(targetpos)
  1552.     if targetpos then
  1553.         local m=Instance.new("Model")
  1554.         m.Name="Lightning"
  1555.         local lastpos=sp.Position
  1556.         local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
  1557.         local direction=(targetpos-sp.Position).unit
  1558.         local struck = false
  1559.         for i=1,totalsegments do
  1560.             if not struck then
  1561.                 local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
  1562.                 local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
  1563.                 local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
  1564.                 local l=Instance.new("Part")
  1565.                
  1566.                 l.Material = sp.Configuration.Material.Value
  1567.                 l.CanCollide=false
  1568.                 l.Anchored=true
  1569.                 l.BrickColor=sp.Configuration.Color.Value
  1570.                 l.formFactor="Custom"
  1571.                 l.Size=Vector3.new(2,2,2)
  1572.                 l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
  1573.                 local mesh=Instance.new("CylinderMesh")
  1574.                 mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
  1575.                 mesh.Parent=l
  1576.                 delay(0,function()
  1577.                     for i=1,timetofade/(.1) do
  1578.                         wait(.1)
  1579.                         l.Transparency=i/(timetofade/(.1))
  1580.                     end
  1581.                 end)
  1582.                 if hit and hit.Parent~=nil then
  1583.                     struck=true
  1584.                     local h=hit.Parent:FindFirstChild("Humanoid")
  1585.                     if h then
  1586.                         script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
  1587.                         h:TakeDamage(sp.Configuration.Damage.Value)
  1588.                     end
  1589.                 end
  1590.                 l.Parent=m
  1591.                 lastpos=endpos
  1592.             end
  1593.         end
  1594.         m.Parent=game.Workspace
  1595.         game:GetService("Debris"):AddItem(m,1.5)
  1596.     end
  1597. end
  1598.  
  1599. local humanoids
  1600.  
  1601. function populatehumanoids(mdl)
  1602.     for _, v in pairs(mdl:GetChildren()) do
  1603.         if v:FindFirstChild("Humanoid") then
  1604.             if not sp.Configuration.DamagePlayers.Value then
  1605.                 if not game.Players:GetPlayerFromCharacter(v) then
  1606.                     table.insert(humanoids, v.Humanoid)
  1607.                 end
  1608.             else
  1609.                 table.insert(humanoids, v.Humanoid)
  1610.             end
  1611.         end
  1612.     end
  1613. end
  1614.  
  1615. wait(3)
  1616.  
  1617. while script.Parent.Parent do
  1618.     for i = 1, sp.Configuration.BurstAmount.Value do
  1619.         oldclosedist = {}
  1620.         closedist = {}
  1621.         oldclosepos = {}
  1622.         closepos = {}
  1623.         humanoids = {}
  1624.         populatehumanoids(workspace)
  1625.         for _, v in pairs(humanoids) do
  1626.             if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
  1627.                 local t = v.Parent.Head
  1628.                 local dist=(t.Position-sp.Position).magnitude
  1629.                 if dist<=sp.Configuration.Range.Value then
  1630.                     table.insert(oldclosedist, dist)
  1631.                     table.insert(closedist, dist)
  1632.                     table.insert(oldclosepos, t.Position)
  1633.                 end
  1634.             end
  1635.         end
  1636.         table.sort(closedist)
  1637.         for _, v in pairs(oldclosedist) do
  1638.             for i = 1, #closedist do
  1639.                 if closedist[i] == v then
  1640.                     table.insert(closepos, oldclosepos[i])
  1641.                 end
  1642.             end
  1643.         end
  1644.         if #closepos > 0 then
  1645.             local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
  1646.             for i = 1, max do
  1647.                 spawn(function()
  1648.                     zap(closepos[i])
  1649.                 end)
  1650.             end
  1651.         end
  1652.         wait(sp.Configuration.BurstWait.Value)
  1653.     end
  1654.     wait(sp.Configuration.Frequency.Value)
  1655. end
  1656. end))
  1657. NumberValue164.Name = "ElectricAmmo"
  1658. NumberValue164.Parent = mas
  1659. NumberValue164.Value = 10
  1660. Configuration165.Parent = mas
  1661. IntValue166.Name = "Damage"
  1662. IntValue166.Parent = Configuration165
  1663. IntValue166.Value = 20
  1664. IntValue167.Name = "Range"
  1665. IntValue167.Parent = Configuration165
  1666. IntValue167.Value = 100
  1667. NumberValue168.Name = "Frequency"
  1668. NumberValue168.Parent = Configuration165
  1669. NumberValue168.Value = 1
  1670. BrickColorValue169.Name = "Color"
  1671. BrickColorValue169.Parent = Configuration165
  1672. BrickColorValue169.Value = BrickColor.new("Toothpaste")
  1673. IntValue170.Name = "MaxTargets"
  1674. IntValue170.Parent = Configuration165
  1675. IntValue170.Value = 1
  1676. IntValue171.Name = "BurstAmount"
  1677. IntValue171.Parent = Configuration165
  1678. IntValue171.Value = 23
  1679. NumberValue172.Name = "BurstWait"
  1680. NumberValue172.Parent = Configuration165
  1681. NumberValue172.Value = 2
  1682. BoolValue173.Name = "DamagePlayers"
  1683. BoolValue173.Parent = Configuration165
  1684. BoolValue173.Value = true
  1685. NumberValue174.Name = "FadeTime"
  1686. NumberValue174.Parent = Configuration165
  1687. NumberValue174.Value = 0.5
  1688. StringValue175.Name = "Material"
  1689. StringValue175.Parent = Configuration165
  1690. StringValue175.Value = "Neon"
  1691. Script176.Name = "Animate"
  1692. Script176.Parent = Model6
  1693. table.insert(cors,sandbox(Script176,function()
  1694. function   waitForChild(parent, childName)
  1695.     local child = parent:findFirstChild(childName)
  1696.     if child then return child end
  1697.     while true do
  1698.         child = parent.ChildAdded:wait()
  1699.         if child.Name==childName then return child end
  1700.     end
  1701. end
  1702.  
  1703. local Figure = script.Parent
  1704. local Humanoid = waitForChild(Figure, "Zombie")
  1705. local pose = "Standing"
  1706.  
  1707. local currentAnim = ""
  1708. local currentAnimInstance = nil
  1709. local currentAnimTrack = nil
  1710. local currentAnimKeyframeHandler = nil
  1711. local currentAnimSpeed = 1.0
  1712. local animTable = {}
  1713. local animNames = {
  1714.     idle =  {  
  1715.                 { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  1716.                 { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  1717.                 { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  1718.             },
  1719.     walk =  {  
  1720.                 { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  1721.             },
  1722.     run =   {
  1723.                 { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  1724.             },
  1725.     swim =  {
  1726.                 { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  1727.             },
  1728.     swimidle =  {
  1729.                 { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  1730.             },
  1731.     jump =  {
  1732.                 { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  1733.             },
  1734.     fall =  {
  1735.                 { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  1736.             },
  1737.     climb = {
  1738.                 { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  1739.             },
  1740.     sit =   {
  1741.                 { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  1742.             }, 
  1743.     toolnone = {
  1744.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1745.             },
  1746.     toolslash = {
  1747.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1748. --              { id = "slash.xml", weight = 10 }
  1749.             },
  1750.     toollunge = {
  1751.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1752.             },
  1753.     wave = {
  1754.                 { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  1755.             },
  1756.     point = {
  1757.                 { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  1758.             },
  1759.     dance = {
  1760.                 { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  1761.                 { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  1762.                 { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  1763.             },
  1764.     dance2 = {
  1765.                 { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  1766.                 { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  1767.                 { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  1768.             },
  1769.     dance3 = {
  1770.                 { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  1771.                 { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  1772.                 { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  1773.             },
  1774.     laugh = {
  1775.                 { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  1776.             },
  1777.     cheer = {
  1778.                 { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  1779.             },
  1780. }
  1781.  
  1782. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1783. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1784.  
  1785. math.randomseed(tick())
  1786.  
  1787. function configureAnimationSet(name, fileList)
  1788.     if (animTable[name] ~= nil) then
  1789.         for _, connection in pairs(animTable[name].connections) do
  1790.             connection:disconnect()
  1791.         end
  1792.     end
  1793.     animTable[name] = {}
  1794.     animTable[name].count = 0
  1795.     animTable[name].totalWeight = 0
  1796.     animTable[name].connections = {}
  1797.  
  1798.     -- check for config values
  1799.     local config = script:FindFirstChild(name)
  1800.     if (config ~= nil) then
  1801. --      print("Loading anims " .. name)
  1802.         table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1803.         table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1804.         local idx = 1
  1805.         for _, childPart in pairs(config:GetChildren()) do
  1806.             if (childPart:IsA("Animation")) then
  1807.                 table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1808.                 animTable[name][idx] = {}
  1809.                 animTable[name][idx].anim = childPart
  1810.                 local weightObject = childPart:FindFirstChild("Weight")
  1811.                 if (weightObject == nil) then
  1812.                     animTable[name][idx].weight = 1
  1813.                 else
  1814.                     animTable[name][idx].weight = weightObject.Value
  1815.                 end
  1816.                 animTable[name].count = animTable[name].count + 1
  1817.                 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1818. --              print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1819.                 idx = idx + 1
  1820.             end
  1821.         end
  1822.     end
  1823.  
  1824.     -- fallback to defaults
  1825.     if (animTable[name].count <= 0) then
  1826.         for idx, anim in pairs(fileList) do
  1827.             animTable[name][idx] = {}
  1828.             animTable[name][idx].anim = Instance.new("Animation")
  1829.             animTable[name][idx].anim.Name = name
  1830.             animTable[name][idx].anim.AnimationId = anim.id
  1831.             animTable[name][idx].weight = anim.weight
  1832.             animTable[name].count = animTable[name].count + 1
  1833.             animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1834. --          print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1835.         end
  1836.     end
  1837. end
  1838.  
  1839. -- Setup animation objects
  1840. function scriptChildModified(child)
  1841.     local fileList = animNames[child.Name]
  1842.     if (fileList ~= nil) then
  1843.         configureAnimationSet(child.Name, fileList)
  1844.     end
  1845. end
  1846.  
  1847. script.ChildAdded:connect(scriptChildModified)
  1848. script.ChildRemoved:connect(scriptChildModified)
  1849.  
  1850.  
  1851. for name, fileList in pairs(animNames) do
  1852.     configureAnimationSet(name, fileList)
  1853. end
  1854.  
  1855. -- ANIMATION
  1856.  
  1857. -- declarations
  1858. local toolAnim = "None"
  1859. local toolAnimTime = 0
  1860.  
  1861. local jumpAnimTime = 0
  1862. local jumpAnimDuration = 0.31
  1863.  
  1864. local toolTransitionTime = 0.1
  1865. local fallTransitionTime = 0.2
  1866.  
  1867. -- functions
  1868.  
  1869. function stopAllAnimations()
  1870.     local oldAnim = currentAnim
  1871.  
  1872.     -- return to idle if finishing an emote
  1873.     if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1874.         oldAnim = "idle"
  1875.     end
  1876.  
  1877.     currentAnim = ""
  1878.     currentAnimInstance = nil
  1879.     if (currentAnimKeyframeHandler ~= nil) then
  1880.         currentAnimKeyframeHandler:disconnect()
  1881.     end
  1882.  
  1883.     if (currentAnimTrack ~= nil) then
  1884.         currentAnimTrack:Stop()
  1885.         currentAnimTrack:Destroy()
  1886.         currentAnimTrack = nil
  1887.     end
  1888.     return oldAnim
  1889. end
  1890.  
  1891. function setAnimationSpeed(speed)
  1892.     if speed ~= currentAnimSpeed then
  1893.         currentAnimSpeed = speed
  1894.         currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1895.     end
  1896. end
  1897.  
  1898. function keyFrameReachedFunc(frameName)
  1899.     if (frameName == "End") then
  1900. --      print("Keyframe : ".. frameName)
  1901.  
  1902.         local repeatAnim = currentAnim
  1903.         -- return to idle if finishing an emote
  1904.         if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1905.             repeatAnim = "idle"
  1906.         end
  1907.        
  1908.         local animSpeed = currentAnimSpeed
  1909.         playAnimation(repeatAnim, 0.15, Humanoid)
  1910.         setAnimationSpeed(animSpeed)
  1911.     end
  1912. end
  1913.  
  1914. -- Preload animations
  1915. function playAnimation(animName, transitionTime, humanoid)
  1916.        
  1917.     local roll = math.random(1, animTable[animName].totalWeight)
  1918.     local origRoll = roll
  1919.     local idx = 1
  1920.     while (roll > animTable[animName][idx].weight) do
  1921.         roll = roll - animTable[animName][idx].weight
  1922.         idx = idx + 1
  1923.     end
  1924.    
  1925. --  print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1926.    
  1927.     local anim = animTable[animName][idx].anim
  1928.  
  1929.     -- switch animation    
  1930.     if (anim ~= currentAnimInstance) then
  1931.        
  1932.         if (currentAnimTrack ~= nil) then
  1933.             currentAnimTrack:Stop(transitionTime)
  1934.             currentAnimTrack:Destroy()
  1935.         end
  1936.  
  1937.         currentAnimSpeed = 1.0
  1938.    
  1939.         -- load it to the humanoid; get AnimationTrack
  1940.         currentAnimTrack = humanoid:LoadAnimation(anim)
  1941.          
  1942.         -- play the animation
  1943.         currentAnimTrack:Play(transitionTime)
  1944.         currentAnim = animName
  1945.         currentAnimInstance = anim
  1946.  
  1947.         -- set up keyframe name triggers
  1948.         if (currentAnimKeyframeHandler ~= nil) then
  1949.             currentAnimKeyframeHandler:disconnect()
  1950.         end
  1951.         currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1952.        
  1953.     end
  1954.  
  1955. end
  1956.  
  1957. -------------------------------------------------------------------------------------------
  1958. -------------------------------------------------------------------------------------------
  1959.  
  1960. local toolAnimName = ""
  1961. local toolAnimTrack = nil
  1962. local toolAnimInstance = nil
  1963. local currentToolAnimKeyframeHandler = nil
  1964.  
  1965. function toolKeyFrameReachedFunc(frameName)
  1966.     if (frameName == "End") then
  1967. --      print("Keyframe : ".. frameName)   
  1968.         playToolAnimation(toolAnimName, 0.0, Humanoid)
  1969.     end
  1970. end
  1971.  
  1972.  
  1973. function playToolAnimation(animName, transitionTime, humanoid)   
  1974.        
  1975.         local roll = math.random(1, animTable[animName].totalWeight)
  1976.         local origRoll = roll
  1977.         local idx = 1
  1978.         while (roll > animTable[animName][idx].weight) do
  1979.             roll = roll - animTable[animName][idx].weight
  1980.             idx = idx + 1
  1981.         end
  1982. --      print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1983.         local anim = animTable[animName][idx].anim
  1984.  
  1985.         if (toolAnimInstance ~= anim) then
  1986.            
  1987.             if (toolAnimTrack ~= nil) then
  1988.                 toolAnimTrack:Stop()
  1989.                 toolAnimTrack:Destroy()
  1990.                 transitionTime = 0
  1991.             end
  1992.                    
  1993.             -- load it to the humanoid; get AnimationTrack
  1994.             toolAnimTrack = humanoid:LoadAnimation(anim)
  1995.              
  1996.             -- play the animation
  1997.             toolAnimTrack:Play(transitionTime)
  1998.             toolAnimName = animName
  1999.             toolAnimInstance = anim
  2000.  
  2001.             currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  2002.         end
  2003. end
  2004.  
  2005. function stopToolAnimations()
  2006.     local oldAnim = toolAnimName
  2007.  
  2008.     if (currentToolAnimKeyframeHandler ~= nil) then
  2009.         currentToolAnimKeyframeHandler:disconnect()
  2010.     end
  2011.  
  2012.     toolAnimName = ""
  2013.     toolAnimInstance = nil
  2014.     if (toolAnimTrack ~= nil) then
  2015.         toolAnimTrack:Stop()
  2016.         toolAnimTrack:Destroy()
  2017.         toolAnimTrack = nil
  2018.     end
  2019.  
  2020.  
  2021.     return oldAnim
  2022. end
  2023.  
  2024. -------------------------------------------------------------------------------------------
  2025. -------------------------------------------------------------------------------------------
  2026.  
  2027.  
  2028. function onRunning(speed)
  2029.     if speed > 0.01 then
  2030.         local scale = 15.0
  2031.         playAnimation("walk", 0.1, Humanoid)
  2032.         setAnimationSpeed(speed / scale)
  2033.         pose = "Running"
  2034.     else
  2035.         playAnimation("idle", 0.1, Humanoid)
  2036.         pose = "Standing"
  2037.     end
  2038. end
  2039.  
  2040. function onDied()
  2041.     pose = "Dead"
  2042. end
  2043.  
  2044. function onJumping()
  2045.     playAnimation("jump", 0.1, Humanoid)
  2046.     jumpAnimTime = jumpAnimDuration
  2047.     pose = "Jumping"
  2048. end
  2049.  
  2050. function onClimbing(speed)
  2051.     local scale = 5.0
  2052.     playAnimation("climb", 0.1, Humanoid)
  2053.     setAnimationSpeed(speed / scale)
  2054.     pose = "Climbing"
  2055. end
  2056.  
  2057. function onGettingUp()
  2058.     pose = "GettingUp"
  2059. end
  2060.  
  2061. function onFreeFall()
  2062.     if (jumpAnimTime <= 0) then
  2063.         playAnimation("fall", fallTransitionTime, Humanoid)
  2064.     end
  2065.     pose = "FreeFall"
  2066. end
  2067.  
  2068. function onFallingDown()
  2069.     pose = "FallingDown"
  2070. end
  2071.  
  2072. function onSeated()
  2073.     pose = "Seated"
  2074. end
  2075.  
  2076. function onPlatformStanding()
  2077.     pose = "PlatformStanding"
  2078. end
  2079.  
  2080. function onSwimming(speed)
  2081.     if speed > 1.00 then
  2082.         local scale = 10.0
  2083.         playAnimation("swim", 0.4, Humanoid)
  2084.         setAnimationSpeed(speed / scale)
  2085.         pose = "Swimming"
  2086.     else
  2087.         playAnimation("swimidle", 0.4, Humanoid)
  2088.         pose = "Standing"
  2089.     end
  2090. end
  2091.  
  2092. function getTool() 
  2093.     for _, kid in ipairs(Figure:GetChildren()) do
  2094.         if kid.className == "Tool" then return kid end
  2095.     end
  2096.     return nil
  2097. end
  2098.  
  2099. function getToolAnim(tool)
  2100.     for _, c in ipairs(tool:GetChildren()) do
  2101.         if c.Name == "toolanim" and c.className == "StringValue" then
  2102.             return c
  2103.         end
  2104.     end
  2105.     return nil
  2106. end
  2107.  
  2108. function animateTool()
  2109.    
  2110.     if (toolAnim == "None") then
  2111.         playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  2112.         return
  2113.     end
  2114.  
  2115.     if (toolAnim == "Slash") then
  2116.         playToolAnimation("toolslash", 0, Humanoid)
  2117.         return
  2118.     end
  2119.  
  2120.     if (toolAnim == "Lunge") then
  2121.         playToolAnimation("toollunge", 0, Humanoid)
  2122.         return
  2123.     end
  2124. end
  2125.  
  2126. function moveSit()
  2127.     RightShoulder.MaxVelocity = 0.15
  2128.     LeftShoulder.MaxVelocity = 0.15
  2129.     RightShoulder:SetDesiredAngle(3.14 /2)
  2130.     LeftShoulder:SetDesiredAngle(-3.14 /2)
  2131.     RightHip:SetDesiredAngle(3.14 /2)
  2132.     LeftHip:SetDesiredAngle(-3.14 /2)
  2133. end
  2134.  
  2135. local lastTick = 0
  2136.  
  2137. function move(time)
  2138.     local amplitude = 1
  2139.     local frequency = 1
  2140.     local deltaTime = time - lastTick
  2141.     lastTick = time
  2142.  
  2143.     local climbFudge = 0
  2144.     local setAngles = false
  2145.  
  2146.     if (jumpAnimTime > 0) then
  2147.         jumpAnimTime = jumpAnimTime - deltaTime
  2148.     end
  2149.  
  2150.     if (pose == "FreeFall" and jumpAnimTime <= 0) then
  2151.         playAnimation("fall", fallTransitionTime, Humanoid)
  2152.     elseif (pose == "Seated") then
  2153.         playAnimation("sit", 0.5, Humanoid)
  2154.         return
  2155.     elseif (pose == "Running") then
  2156.         playAnimation("walk", 0.1, Humanoid)
  2157.     elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  2158.         stopAllAnimations()
  2159.         amplitude = 0.1
  2160.         frequency = 1
  2161.         setAngles = true
  2162.     end
  2163.  
  2164.     -- Tool Animation handling
  2165.     local tool = getTool()
  2166.     if tool then
  2167.    
  2168.         animStringValueObject = getToolAnim(tool)
  2169.  
  2170.         if animStringValueObject then
  2171.             toolAnim = animStringValueObject.Value
  2172.             -- message recieved, delete StringValue
  2173.             animStringValueObject.Parent = nil
  2174.             toolAnimTime = time + .3
  2175.         end
  2176.  
  2177.         if time > toolAnimTime then
  2178.             toolAnimTime = 0
  2179.             toolAnim = "None"
  2180.         end
  2181.  
  2182.         animateTool()      
  2183.     else
  2184.         stopToolAnimations()
  2185.         toolAnim = "None"
  2186.         toolAnimInstance = nil
  2187.         toolAnimTime = 0
  2188.     end
  2189. end
  2190.  
  2191. -- connect events
  2192. Humanoid.Died:connect(onDied)
  2193. Humanoid.Running:connect(onRunning)
  2194. Humanoid.Jumping:connect(onJumping)
  2195. Humanoid.Climbing:connect(onClimbing)
  2196. Humanoid.GettingUp:connect(onGettingUp)
  2197. Humanoid.FreeFalling:connect(onFreeFall)
  2198. Humanoid.FallingDown:connect(onFallingDown)
  2199. Humanoid.Seated:connect(onSeated)
  2200. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2201. Humanoid.Swimming:connect(onSwimming)
  2202.  
  2203. -- setup emote chat hook
  2204. script.msg.Changed:connect(function(msg)
  2205.     script.msg.Value = ""
  2206.     local emote = ""
  2207.     if (string.sub(msg, 1, 3) == "/e ") then
  2208.         emote = string.sub(msg, 4)
  2209.     elseif (string.sub(msg, 1, 7) == "/emote ") then
  2210.         emote = string.sub(msg, 8)
  2211.     end
  2212.    
  2213.     if (pose == "Standing" and emoteNames[emote] ~= nil) then
  2214.         playAnimation(emote, 0.1, Humanoid)
  2215.     end
  2216. --  print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  2217. end)
  2218.  
  2219.  
  2220. -- main program
  2221.  
  2222. local runService = game:service("RunService");
  2223.  
  2224. -- print("bottom")
  2225.  
  2226. -- initialize to idle
  2227. playAnimation("idle", 0.1, Humanoid)
  2228. pose = "Standing"
  2229.  
  2230. while Figure.Parent~=nil do
  2231.     local _, time = wait(0.1)
  2232.     move(time)
  2233. end
  2234.  
  2235.  
  2236.  
  2237. end))
  2238. StringValue177.Name = "msg"
  2239. StringValue177.Parent = Script176
  2240. StringValue178.Name = "climb"
  2241. StringValue178.Parent = Script176
  2242. Animation179.Name = "ClimbAnim"
  2243. Animation179.Parent = StringValue178
  2244. Animation179.AnimationId = "http://www.roblox.com/asset/?id=507765644"
  2245. StringValue180.Name = "fall"
  2246. StringValue180.Parent = Script176
  2247. Animation181.Name = "FallAnim"
  2248. Animation181.Parent = StringValue180
  2249. Animation181.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  2250. StringValue182.Name = "idle"
  2251. StringValue182.Parent = Script176
  2252. Animation183.Name = "Animation1"
  2253. Animation183.Parent = StringValue182
  2254. Animation183.AnimationId = "http://www.roblox.com/asset/?id=507766388"
  2255. NumberValue184.Name = "Weight"
  2256. NumberValue184.Parent = Animation183
  2257. NumberValue184.Value = 9
  2258. Animation185.Name = "Animation2"
  2259. Animation185.Parent = StringValue182
  2260. Animation185.AnimationId = "http://www.roblox.com/asset/?id=507766666"
  2261. NumberValue186.Name = "Weight"
  2262. NumberValue186.Parent = Animation185
  2263. NumberValue186.Value = 1
  2264. StringValue187.Name = "jump"
  2265. StringValue187.Parent = Script176
  2266. Animation188.Name = "JumpAnim"
  2267. Animation188.Parent = StringValue187
  2268. Animation188.AnimationId = "http://www.roblox.com/asset/?id=507765000"
  2269. StringValue189.Name = "run"
  2270. StringValue189.Parent = Script176
  2271. Animation190.Name = "RunAnim"
  2272. Animation190.Parent = StringValue189
  2273. Animation190.AnimationId = "http://www.roblox.com/asset/?id=5077677142"
  2274. StringValue191.Name = "sit"
  2275. StringValue191.Parent = Script176
  2276. Animation192.Name = "SitAnim"
  2277. Animation192.Parent = StringValue191
  2278. Animation192.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  2279. StringValue193.Name = "swim"
  2280. StringValue193.Parent = Script176
  2281. Animation194.Name = "Swim"
  2282. Animation194.Parent = StringValue193
  2283. Animation194.AnimationId = "http://www.roblox.com/asset/?id=507784897"
  2284. StringValue195.Name = "swimidle"
  2285. StringValue195.Parent = Script176
  2286. Animation196.Name = "SwimIdle"
  2287. Animation196.Parent = StringValue195
  2288. Animation196.AnimationId = "http://www.roblox.com/asset/?id=481825862"
  2289. StringValue197.Name = "toolnone"
  2290. StringValue197.Parent = Script176
  2291. Animation198.Name = "ToolNoneAnim"
  2292. Animation198.Parent = StringValue197
  2293. Animation198.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  2294. StringValue199.Name = "walk"
  2295. StringValue199.Parent = Script176
  2296. Animation200.Name = "RunAnim"
  2297. Animation200.Parent = StringValue199
  2298. Animation200.AnimationId = "http://www.roblox.com/asset/?id=507777826"
  2299. ParticleEmitter201.Parent = mas
  2300. ParticleEmitter201.Transparency = NumberSequence.new(0.5,0.5)
  2301. ParticleEmitter201.Size = NumberSequence.new(0.25,0.25)
  2302. ParticleEmitter201.Texture = "rbxassetid://501546182"
  2303. ParticleEmitter201.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  2304. ParticleEmitter201.Rate = 250
  2305. ParticleEmitter201.Speed = NumberRange.new(2.5, 2.5)
  2306. Script202.Name = "Respawn"
  2307. Script202.Parent = mas
  2308. table.insert(cors,sandbox(Script202,function()
  2309.  
  2310.  
  2311. while true do
  2312.     wait(1)
  2313.     if script.Parent.ElectricAmmo.Value<1 then
  2314. wait(2)        
  2315. script.Parent.TeslaScript:Destroy()
  2316.    
  2317. script.Parent:remove()
  2318.     end
  2319. end
  2320.        
  2321.  
  2322.  
  2323.  
  2324. end))
  2325. Script203.Name = "TeslaScript"
  2326. Script203.Parent = mas
  2327. table.insert(cors,sandbox(Script203,function()
  2328. -- Made by Stickmasterluke
  2329. -- Modified by ScripterTutorials
  2330. wait(100)
  2331. sp=script.Parent
  2332.  
  2333. segmentlength = 5
  2334. segmentwidth = 0.35
  2335. varience = 1.5
  2336. timetofade=sp.Configuration.FadeTime.Value
  2337.  
  2338. function raycast(spos,vec,currentdist)
  2339.     local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
  2340.     if hit2~=nil and pos2 then
  2341.         if hit2.Transparency>=.5 or hit2.Name=="Handle" then
  2342.             local currentdist=currentdist-(pos2-spos).magnitude
  2343.             return raycast(pos2,vec,currentdist)
  2344.         end
  2345.     end
  2346.     return hit2,pos2
  2347. end
  2348.  
  2349. function zap(targetpos)
  2350.     if targetpos then
  2351.         local m=Instance.new("Model")
  2352.         m.Name="Lightning"
  2353.         local lastpos=sp.Position
  2354.         local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
  2355.         local direction=(targetpos-sp.Position).unit
  2356.         local struck = false
  2357.         for i=1,totalsegments do
  2358.             if not struck then
  2359.                 local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
  2360.                 local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
  2361.                 local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
  2362.                 local l=Instance.new("Part")
  2363.                
  2364.                 l.Material = sp.Configuration.Material.Value
  2365.                 l.CanCollide=false
  2366.                 l.Anchored=true
  2367.                 l.BrickColor=sp.Configuration.Color.Value
  2368.                 l.formFactor="Custom"
  2369.                 l.Size=Vector3.new(2,2,2)
  2370.                 l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
  2371.                 local mesh=Instance.new("CylinderMesh")
  2372.                 mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
  2373.                 mesh.Parent=l
  2374.                 delay(0,function()
  2375.                     for i=1,timetofade/(.1) do
  2376.                         wait(.1)
  2377.                         l.Transparency=i/(timetofade/(.1))
  2378.                     end
  2379.                 end)
  2380.                 if hit and hit.Parent~=nil then
  2381.                     struck=true
  2382.                     local h=hit.Parent:FindFirstChild("Humanoid")
  2383.                     if h then
  2384.                         script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
  2385.                         h:TakeDamage(sp.Configuration.Damage.Value)
  2386.                     end
  2387.                 end
  2388.                 l.Parent=m
  2389.                 lastpos=endpos
  2390.             end
  2391.         end
  2392.         m.Parent=game.Workspace
  2393.         game:GetService("Debris"):AddItem(m,1.5)
  2394.     end
  2395. end
  2396.  
  2397. local humanoids
  2398.  
  2399. function populatehumanoids(mdl)
  2400.     for _, v in pairs(mdl:GetChildren()) do
  2401.         if v:FindFirstChild("Humanoid") then
  2402.             if not sp.Configuration.DamagePlayers.Value then
  2403.                 if not game.Players:GetPlayerFromCharacter(v) then
  2404.                     table.insert(humanoids, v.Humanoid)
  2405.                 end
  2406.             else
  2407.                 table.insert(humanoids, v.Humanoid)
  2408.             end
  2409.         end
  2410.     end
  2411. end
  2412.  
  2413. wait(3)
  2414.  
  2415. while script.Parent.Parent do
  2416.     for i = 1, sp.Configuration.BurstAmount.Value do
  2417.         oldclosedist = {}
  2418.         closedist = {}
  2419.         oldclosepos = {}
  2420.         closepos = {}
  2421.         humanoids = {}
  2422.         populatehumanoids(workspace)
  2423.         for _, v in pairs(humanoids) do
  2424.             if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
  2425.                 local t = v.Parent.Head
  2426.                 local dist=(t.Position-sp.Position).magnitude
  2427.                 if dist<=sp.Configuration.Range.Value then
  2428.                     table.insert(oldclosedist, dist)
  2429.                     table.insert(closedist, dist)
  2430.                     table.insert(oldclosepos, t.Position)
  2431.                 end
  2432.             end
  2433.         end
  2434.         table.sort(closedist)
  2435.         for _, v in pairs(oldclosedist) do
  2436.             for i = 1, #closedist do
  2437.                 if closedist[i] == v then
  2438.                     table.insert(closepos, oldclosepos[i])
  2439.                 end
  2440.             end
  2441.         end
  2442.         if #closepos > 0 then
  2443.             local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
  2444.             for i = 1, max do
  2445.                 spawn(function()
  2446.                     zap(closepos[i])
  2447.                 end)
  2448.             end
  2449.         end
  2450.         wait(sp.Configuration.BurstWait.Value)
  2451.     end
  2452.     wait(sp.Configuration.Frequency.Value)
  2453. end
  2454. end))
  2455. NumberValue204.Name = "ElectricAmmo"
  2456. NumberValue204.Parent = mas
  2457. NumberValue204.Value = 10
  2458. Configuration205.Parent = mas
  2459. IntValue206.Name = "Damage"
  2460. IntValue206.Parent = Configuration205
  2461. IntValue206.Value = 20
  2462. IntValue207.Name = "Range"
  2463. IntValue207.Parent = Configuration205
  2464. IntValue207.Value = 100
  2465. NumberValue208.Name = "Frequency"
  2466. NumberValue208.Parent = Configuration205
  2467. NumberValue208.Value = 1
  2468. BrickColorValue209.Name = "Color"
  2469. BrickColorValue209.Parent = Configuration205
  2470. BrickColorValue209.Value = BrickColor.new("Toothpaste")
  2471. IntValue210.Name = "MaxTargets"
  2472. IntValue210.Parent = Configuration205
  2473. IntValue210.Value = 1
  2474. IntValue211.Name = "BurstAmount"
  2475. IntValue211.Parent = Configuration205
  2476. IntValue211.Value = 23
  2477. NumberValue212.Name = "BurstWait"
  2478. NumberValue212.Parent = Configuration205
  2479. NumberValue212.Value = 2
  2480. BoolValue213.Name = "DamagePlayers"
  2481. BoolValue213.Parent = Configuration205
  2482. BoolValue213.Value = true
  2483. NumberValue214.Name = "FadeTime"
  2484. NumberValue214.Parent = Configuration205
  2485. NumberValue214.Value = 0.5
  2486. StringValue215.Name = "Material"
  2487. StringValue215.Parent = Configuration205
  2488. StringValue215.Value = "Neon"
  2489. ParticleEmitter216.Parent = mas
  2490. ParticleEmitter216.Transparency = NumberSequence.new(0.5,0.5)
  2491. ParticleEmitter216.Size = NumberSequence.new(0.25,0.25)
  2492. ParticleEmitter216.Texture = "rbxassetid://501546182"
  2493. ParticleEmitter216.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
  2494. ParticleEmitter216.Rate = 250
  2495. ParticleEmitter216.Speed = NumberRange.new(2.5, 2.5)
  2496. Humanoid217.Name = "Zombie"
  2497. Humanoid217.Parent = Model6
  2498. Humanoid217.Torso = Part35
  2499. Humanoid217.Health = 75
  2500. Humanoid217.MaxHealth = 75
  2501. BoolValue218.Name = "Attack"
  2502. BoolValue218.Parent = Model6
  2503. ObjectValue219.Name = "Target"
  2504. ObjectValue219.Parent = Model6
  2505. Script220.Name = "ChaseScript"
  2506. Script220.Parent = Model6
  2507. table.insert(cors,sandbox(Script220,function()
  2508. wait(1)
  2509. zombieParent = false
  2510.  
  2511. while zombieParent == false do
  2512.  
  2513.     wait()
  2514.     if script.Parent.Name == "Water" then
  2515.         zombieParent = true
  2516.     end
  2517.  
  2518. end
  2519.  
  2520. local larm = script.Parent:FindFirstChild("Left Arm")
  2521. local rarm = script.Parent:FindFirstChild("Right Arm")
  2522. local waitTimer = 0
  2523.  
  2524. function findNearestTorso(pos)
  2525.     local list = game.Workspace:children()
  2526.     local torso = nil
  2527.     local dist = 110
  2528.     local temp = nil
  2529.     local human = nil
  2530.     local temp2 = nil
  2531.     for x = 1, #list do
  2532.         temp2 = list[x]
  2533.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  2534.             temp = temp2:findFirstChild("HumanoidRootPart")
  2535.             human = temp2:findFirstChild("Humanoid")
  2536.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2537.                 if (temp.Position - pos).magnitude < dist then
  2538.                     torso = temp
  2539.                     script.Parent.Target.Value = temp
  2540.                     dist = (temp.Position - pos).magnitude
  2541.  
  2542.                     if human.Health >= 1 then
  2543.                     script.Parent.Range.Value = true
  2544.                     else
  2545.                     script.Parent.Range.Value = false
  2546.                     end
  2547.                 end
  2548.             end
  2549.             if dist < 75 then
  2550.                 script.Parent.Attack.Value = true
  2551.                 script.Parent.Zombie.WalkSpeed = 0.05
  2552.             else
  2553.                 script.Parent.Attack.Value = false
  2554.                 script.Parent.Zombie.WalkSpeed = 16
  2555.             end
  2556.         end
  2557.     end
  2558.     return torso
  2559. end
  2560.  
  2561. function Sit()
  2562.     if script.Parent.Zombie.Sit == false then
  2563.         script.Parent.Zombie.Jump = false
  2564.         print("Anti Seat Putter!!!")
  2565.     end
  2566. end
  2567.  
  2568. script.Parent.Zombie.Changed:connect(Sit)
  2569.  
  2570. while true do
  2571.     wait()
  2572.     local target = findNearestTorso(script.Parent.Torso.Position)
  2573.     if target ~= nil then
  2574.         rx = 0
  2575.         ry = 0
  2576.         rz = 0
  2577.         script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
  2578.     else
  2579.         script.Parent.Range.Value = false
  2580.         script.Parent.Attack.Value = false
  2581.     end
  2582. end
  2583.  
  2584. end))
  2585. Script221.Name = "Die"
  2586. Script221.Parent = Model6
  2587. table.insert(cors,sandbox(Script221,function()
  2588. human = script.Parent.Zombie
  2589. tool = script.Parent.Blunderbuss
  2590.  
  2591. function Die()
  2592.     if tool ~= nil then tool:remove() end
  2593.     wait(4.5)
  2594.     parts = script.Parent:children()
  2595.     for i = 1,5 do
  2596.         for i = 1,#parts do
  2597.             if parts[i].className == "Part" and parts[i].Name ~= "Part" then
  2598.                 parts[i].Transparency = 1
  2599.             end
  2600.         end
  2601.         wait(0.05)
  2602.         for i = 1,#parts do
  2603.             if parts[i].className == "Part" and parts[i].Name ~= "Part" then
  2604.                 parts[i].Transparency = 0
  2605.             end
  2606.         end
  2607.         wait(0.05)
  2608.     warn("Water Had Been Defeated")
  2609.      end
  2610.     script.Parent:remove()
  2611. end
  2612.  
  2613. human.Died:connect(Die)
  2614. end))
  2615. ForceField222.Parent = Model6
  2616. ForceField222.Visible = false
  2617. Script223.Name = "Ragdoll"
  2618. Script223.Parent = Model6
  2619. table.insert(cors,sandbox(Script223,function()
  2620. print("Hello world!")
  2621.  
  2622. Character = script.Parent
  2623. Humanoid = Character.Zombie
  2624. Torso = Character.Torso
  2625.  
  2626. function OnDeath()
  2627.     print("Death")
  2628.     Humanoid.Parent = nil
  2629.     if Torso then
  2630.         local Head = Character:FindFirstChild("Head")
  2631.         if Head then
  2632.             local Neck = Instance.new("Weld")
  2633.             Neck.Name = "Neck"
  2634.             Neck.Part0 = Torso
  2635.             Neck.Part1 = Head
  2636.             Neck.C0 = CFrame.new(0, 1.5, 0)
  2637.             Neck.C1 = CFrame.new()
  2638.             Neck.Parent = Torso
  2639.         end
  2640.         local Limb = Character:FindFirstChild("Right Arm")
  2641.         if Limb then
  2642.  
  2643.             Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  2644.             local Joint = Instance.new("Glue")
  2645.             Joint.Name = "RightShoulder"
  2646.             Joint.Part0 = Torso
  2647.             Joint.Part1 = Limb
  2648.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2649.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2650.             Joint.Parent = Torso
  2651.  
  2652.             local B = Instance.new("Part")
  2653.             B.TopSurface = 0
  2654.             B.BottomSurface = 0
  2655.             B.formFactor = "Symmetric"
  2656.             B.Size = Vector3.new(1, 1, 1)
  2657.             B.Transparency = 1
  2658.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2659.             B.Parent = Character
  2660.             local W = Instance.new("Weld")
  2661.             W.Part0 = Limb
  2662.             W.Part1 = B
  2663.             W.C0 = CFrame.new(0, -0.5, 0)
  2664.             W.Parent = Limb
  2665.  
  2666.         end
  2667.         local Limb = Character:FindFirstChild("Left Arm")
  2668.         if Limb then
  2669.  
  2670.             Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  2671.             local Joint = Instance.new("Glue")
  2672.             Joint.Name = "LeftShoulder"
  2673.             Joint.Part0 = Torso
  2674.             Joint.Part1 = Limb
  2675.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2676.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2677.             Joint.Parent = Torso
  2678.  
  2679.             local B = Instance.new("Part")
  2680.             B.TopSurface = 0
  2681.             B.BottomSurface = 0
  2682.             B.formFactor = "Symmetric"
  2683.             B.Size = Vector3.new(1, 1, 1)
  2684.             B.Transparency = 1
  2685.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2686.             B.Parent = Character
  2687.             local W = Instance.new("Weld")
  2688.             W.Part0 = Limb
  2689.             W.Part1 = B
  2690.             W.C0 = CFrame.new(0, -0.5, 0)
  2691.             W.Parent = Limb
  2692.  
  2693.         end
  2694.         local Limb = Character:FindFirstChild("Right Leg")
  2695.         if Limb then
  2696.  
  2697.             Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  2698.             local Joint = Instance.new("Glue")
  2699.             Joint.Name = "RightHip"
  2700.             Joint.Part0 = Torso
  2701.             Joint.Part1 = Limb
  2702.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2703.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2704.             Joint.Parent = Torso
  2705.  
  2706.             local B = Instance.new("Part")
  2707.             B.TopSurface = 0
  2708.             B.BottomSurface = 0
  2709.             B.formFactor = "Symmetric"
  2710.             B.Size = Vector3.new(1, 1, 1)
  2711.             B.Transparency = 1
  2712.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2713.             B.Parent = Character
  2714.             local W = Instance.new("Weld")
  2715.             W.Part0 = Limb
  2716.             W.Part1 = B
  2717.             W.C0 = CFrame.new(0, -0.5, 0)
  2718.             W.Parent = Limb
  2719.  
  2720.         end
  2721.         local Limb = Character:FindFirstChild("Left Leg")
  2722.         if Limb then
  2723.  
  2724.             Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  2725.             local Joint = Instance.new("Glue")
  2726.             Joint.Name = "LeftHip"
  2727.             Joint.Part0 = Torso
  2728.             Joint.Part1 = Limb
  2729.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2730.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2731.             Joint.Parent = Torso
  2732.  
  2733.             local B = Instance.new("Part")
  2734.             B.TopSurface = 0
  2735.             B.BottomSurface = 0
  2736.             B.formFactor = "Symmetric"
  2737.             B.Size = Vector3.new(1, 1, 1)
  2738.             B.Transparency = 1
  2739.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2740.             B.Parent = Character
  2741.             local W = Instance.new("Weld")
  2742.             W.Part0 = Limb
  2743.             W.Part1 = B
  2744.             W.C0 = CFrame.new(0, -0.5, 0)
  2745.             W.Parent = Limb
  2746.  
  2747.         end
  2748.         --[
  2749.         local Bar = Instance.new("Part")
  2750.         Bar.TopSurface = 0
  2751.         Bar.BottomSurface = 0
  2752.         Bar.formFactor = "Symmetric"
  2753.         Bar.Size = Vector3.new(1, 1, 1)
  2754.         Bar.Transparency = 1
  2755.         Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  2756.         Bar.Parent = Character
  2757.         local Weld = Instance.new("Weld")
  2758.         Weld.Part0 = Torso
  2759.         Weld.Part1 = Bar
  2760.         Weld.C0 = CFrame.new(0, 0.5, 0)
  2761.         Weld.Parent = Torso
  2762.         --]]
  2763.     end
  2764. end
  2765.  
  2766. Humanoid.Died:connect(OnDeath)
  2767.  
  2768. end))
  2769. BoolValue224.Name = "Range"
  2770. BoolValue224.Parent = Model6
  2771. Script225.Name = "Sound"
  2772. Script225.Parent = Model6
  2773. table.insert(cors,sandbox(Script225,function()
  2774. -- util
  2775.  
  2776. function waitForChild(parent, childName)
  2777.     local child = parent:findFirstChild(childName)
  2778.     if child then return child end
  2779.     while true do
  2780.         child = parent.ChildAdded:wait()
  2781.         if child.Name==childName then return child end
  2782.     end
  2783. end
  2784.  
  2785. function newSound(id)
  2786.     local sound = Instance.new("Sound")
  2787.     sound.SoundId = id
  2788.     sound.archivable = false
  2789.     sound.Parent = script.Parent.Head
  2790.     return sound
  2791. end
  2792.  
  2793. -- declarations
  2794.  
  2795. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  2796. sDied.Pitch = 0.75
  2797. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  2798. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  2799. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  2800. local sJumping = newSound("rbxasset://sounds/button.wav")
  2801. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  2802. sRunning.Looped = true
  2803.  
  2804. local Figure = script.Parent
  2805. local Head = waitForChild(Figure, "Head")
  2806. local Humanoid = waitForChild(Figure, "Zombie")
  2807.  
  2808. -- functions
  2809.  
  2810. function onDied()
  2811.     sDied:Play()
  2812. end
  2813.  
  2814. function onState(state, sound)
  2815.     if state then
  2816.         sound:Play()
  2817.     else
  2818.         sound:Pause()
  2819.     end
  2820. end
  2821.  
  2822. function onRunning(speed)
  2823.     if speed>0 then
  2824.         sRunning:Play()
  2825.     else
  2826.         sRunning:Pause()
  2827.     end
  2828. end
  2829.  
  2830. -- connect up
  2831.  
  2832. Humanoid.Died:connect(onDied)
  2833. Humanoid.Running:connect(onRunning)
  2834. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  2835. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  2836. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  2837. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  2838.  
  2839. end))
  2840. Tool226.Name = "Blunderbuss"
  2841. Tool226.Parent = Model6
  2842. Tool226.TextureId = "http://www.roblox.com/asset/?id=29328651"
  2843. Tool226.GripForward = Vector3.new(-0, 1, -0)
  2844. Tool226.GripPos = Vector3.new(-0.00999999978, -0.5, -0.5)
  2845. Tool226.GripUp = Vector3.new(0, 0, 1)
  2846. Part227.Name = "Handle"
  2847. Part227.Parent = Tool226
  2848. Part227.Transparency = 0.80000001192093
  2849. Part227.Rotation = Vector3.new(0, 0, -180)
  2850. Part227.FormFactor = Enum.FormFactor.Plate
  2851. Part227.Size = Vector3.new(1.48765063, 1.48765063, 1.48765063)
  2852. Part227.CFrame = CFrame.new(3.28380466, 2.23160315, -30.1726036, -1, 0, 1.76275789e-05, 1.77635684e-15, -1, 0, 1.76275789e-05, 0, 1)
  2853. Part227.BottomSurface = Enum.SurfaceType.Weld
  2854. Part227.TopSurface = Enum.SurfaceType.Smooth
  2855. Part227.Position = Vector3.new(3.28380466, 2.23160315, -30.1726036)
  2856. Part227.Orientation = Vector3.new(0, 0, 180)
  2857. Sound228.Name = "SlingshotSound"
  2858. Sound228.Parent = Part227
  2859. Sound228.SoundId = "rbxassetid://135249156"
  2860. Sound228.Volume = 2
  2861. Script229.Name = "PelletScript"
  2862. Script229.Parent = Part227
  2863. Script229.Disabled = true
  2864. table.insert(cors,sandbox(Script229,function()
  2865. local debris = game:service("Debris")
  2866. pellet = script.Parent
  2867. damage = 10
  2868.  
  2869. function onTouched(hit)
  2870.     humanoid = hit.Parent:findFirstChild("Humanoid")
  2871.     if humanoid~=nil then
  2872.         tagHumanoid(humanoid)
  2873.         humanoid:TakeDamage(damage)
  2874.     else
  2875.         damage = damage / 10
  2876.         if damage < 1 then
  2877.             connection:disconnect()
  2878.             pellet.Parent = nil
  2879.         end
  2880.     end
  2881. end
  2882.  
  2883. function tagHumanoid(humanoid)
  2884.     -- todo: make tag expire
  2885.     local tag = pellet:findFirstChild("creator")
  2886.     if tag ~= nil then
  2887.         -- kill all other tags
  2888.         while(humanoid:findFirstChild("creator") ~= nil) do
  2889.             humanoid:findFirstChild("creator").Parent = nil
  2890.         end
  2891.  
  2892.         local new_tag = tag:clone()
  2893.         new_tag.Parent = humanoid
  2894.         debris:AddItem(new_tag, 1)
  2895.     end
  2896. end
  2897.  
  2898. connection = pellet.Touched:connect(onTouched)
  2899.  
  2900. r = game:service("RunService")
  2901. t, s = r.Stepped:wait()
  2902. d = t + 2.0 - s
  2903. while t < d do
  2904.     t = r.Stepped:wait()
  2905. end
  2906.  
  2907. pellet.Parent = nil
  2908. end))
  2909. Script230.Name = "Slingshot"
  2910. Script230.Parent = Part227
  2911. table.insert(cors,sandbox(Script230,function()
  2912. VELOCITY = 200 -- constant
  2913.  
  2914. function findTorso(pos)
  2915.     local list = game.Workspace:children()
  2916.     local torso = nil
  2917.     local dist = 2000
  2918.     local temp = nil
  2919.     local human = nil
  2920.     local temp2 = nil
  2921.     for x = 1, #list do
  2922.         temp2 = list[x]
  2923.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  2924.             temp = temp2:findFirstChild("Torso")
  2925.             human = temp2:findFirstChild("Humanoid")
  2926.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2927.                 if (temp.Position - pos).magnitude < dist then
  2928.                     torso = temp
  2929.                     dist = (temp.Position - pos).magnitude
  2930.                 end
  2931.             end
  2932.         end
  2933.     end
  2934.     return torso
  2935. end
  2936.  
  2937. local Pellet = Instance.new("Part")
  2938. Pellet.Locked = true
  2939. Pellet.BackSurface = 0
  2940. Pellet.BottomSurface = 0
  2941. Pellet.FrontSurface = 0
  2942. Pellet.LeftSurface = 0
  2943. Pellet.RightSurface = 0
  2944. Pellet.TopSurface = 0
  2945. Pellet.Shape = 0
  2946. Pellet.CanCollide = false
  2947. Pellet.Size = Vector3.new(2,2,2)
  2948. Pellet.BrickColor = BrickColor.new(9,137,207)
  2949. Pellet.Material = ("Neon")
  2950. script.Parent.PelletScript:clone().Parent = Pellet
  2951.  
  2952. function fire(target)
  2953.  
  2954.  
  2955.     script.Parent.SlingshotSound:play()
  2956.  
  2957.     local dir = target.Position - script.Parent.Position
  2958.     dir = computeDirection(dir)
  2959.  
  2960.     local launch = script.Parent.Position + 5 * dir
  2961.  
  2962.     local delta = target.Position - launch
  2963.    
  2964.     local dy = delta.y
  2965.    
  2966.     local new_delta = Vector3.new(delta.x, 0, delta.z)
  2967.     delta = new_delta
  2968.  
  2969.     local dx = delta.magnitude
  2970.     local unit_delta = delta.unit
  2971.    
  2972.     -- acceleration due to gravity in RBX units
  2973.     local g = (-9.81 * 20)
  2974.  
  2975.     local theta = computeLaunchAngle( dx, dy, g)
  2976.  
  2977.     local vy = math.sin(theta)
  2978.     local xz = math.cos(theta)
  2979.     local vx = unit_delta.x * xz
  2980.     local vz = unit_delta.z * xz
  2981.    
  2982.  
  2983.     local missile = Pellet:clone()
  2984.        
  2985.  
  2986.        
  2987.  
  2988.     missile.Position = launch
  2989.     missile.Velocity = Vector3.new(vx,vy,vz) * VELOCITY
  2990.  
  2991.     missile.PelletScript.Disabled = false
  2992.    
  2993.     missile.Parent = game.Workspace
  2994.  
  2995. end
  2996.  
  2997.  
  2998. function computeLaunchAngle(dx,dy,grav)
  2999.     -- arcane
  3000.     -- http://en.wikipedia.org/wiki/Trajectory_of_a_projectile
  3001.    
  3002.     local g = math.abs(grav)
  3003.     local inRoot = (VELOCITY*VELOCITY*VELOCITY*VELOCITY) - (g * ((g*dx*dx) + (2*dy*VELOCITY*VELOCITY)))
  3004.     if inRoot <= 0 then
  3005.         return .25 * math.pi
  3006.     end
  3007.     local root = math.sqrt(inRoot)
  3008.     local inATan1 = ((VELOCITY*VELOCITY) + root) / (g*dx)
  3009.  
  3010.     local inATan2 = ((VELOCITY*VELOCITY) - root) / (g*dx)
  3011.     local answer1 = math.atan(inATan1)
  3012.     local answer2 = math.atan(inATan2)
  3013.     if answer1 < answer2 then return answer1 end
  3014.     return answer2
  3015. end
  3016.  
  3017. function computeDirection(vec)
  3018.     local lenSquared = vec.magnitude * vec.magnitude
  3019.     local invSqrt = 1 / math.sqrt(lenSquared)
  3020.     return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  3021. end
  3022.  
  3023. while true do
  3024.     local torso = findTorso(script.Parent.Position)
  3025.     if torso ~= nil then
  3026.         fire(torso)
  3027.     end
  3028.     wait(1.1)
  3029. end
  3030.  
  3031.  
  3032.  
  3033. end))
  3034. Sound231.Name = "ReloadSound"
  3035. Sound231.Parent = Part227
  3036. Sound231.Pitch = 1.1000000238419
  3037. Sound231.SoundId = "http://www.roblox.com/Asset?ID=132456167"
  3038. Sound231.Volume = 1
  3039. Sound232.Name = "FireSound"
  3040. Sound232.Parent = Part227
  3041. Sound232.SoundId = "http://www.roblox.com/Asset?ID=132456187"
  3042. Sound232.Volume = 1
  3043. SpecialMesh233.Parent = Part227
  3044. SpecialMesh233.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  3045. SpecialMesh233.Scale = Vector3.new(1.25, 3, 1.25)
  3046. SpecialMesh233.MeshType = Enum.MeshType.FileMesh
  3047. SpecialMesh233.Scale = Vector3.new(1.25, 3, 1.25)
  3048. Script234.Name = "LaserBlast"
  3049. Script234.Parent = Tool226
  3050. Script234.Disabled = true
  3051. table.insert(cors,sandbox(Script234,function()
  3052. -- 42672473 is sorry sound
  3053. -- 42672581 is wind-knocked-out sound
  3054.  
  3055. ball = script.Parent
  3056. damage = 5
  3057.  
  3058. HitSound = Instance.new("Sound")
  3059. HitSound.Name = "HitSound"
  3060. HitSound.SoundId = "http://www.roblox.com/asset/?id=11945266"
  3061. HitSound.Parent = ball
  3062. HitSound.Volume = 1
  3063.  
  3064. PersonHitSound = Instance.new("Sound")
  3065. PersonHitSound.Name = "PersonHitSound"
  3066. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672473"
  3067. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672581" -- grunt sound
  3068. PersonHitSound.Volume = .5
  3069. PersonHitSound.Pitch = 1
  3070. PersonHitSound.Parent = ball
  3071.  
  3072. db = false
  3073.  
  3074. target = ball:findFirstChild("Target")
  3075. if target ~= nil then
  3076.     if db == false then
  3077.         local humanoid = target.Value:findFirstChild("Humanoid")
  3078.  
  3079.         if humanoid ~= nil then
  3080.             humanoid:TakeDamage(damage)
  3081.  
  3082.             PersonHitSound:Play()
  3083.         end
  3084.  
  3085.     ball.Anchored = true
  3086.     end
  3087. end
  3088.  
  3089. function tagHumanoid(humanoid)
  3090.     -- todo: make tag expire
  3091.     local tag = ball:findFirstChild("creator")
  3092.     if tag ~= nil then
  3093.         local new_tag = tag:clone()
  3094.         new_tag.Parent = humanoid
  3095.     end
  3096. end
  3097.  
  3098.  
  3099. function untagHumanoid(humanoid)
  3100.     if humanoid ~= nil then
  3101.         local tag = humanoid:findFirstChild("creator")
  3102.         if tag ~= nil then
  3103.             tag.Parent = nil
  3104.         end
  3105.     end
  3106. end
  3107.  
  3108. connection = ball.Touched:connect(onTouched)
  3109.  
  3110. for i = 1,5 do
  3111.     ball.Transparency = ball.Transparency + 0.2
  3112.     ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(4,4,4)
  3113.    
  3114.     wait(0.1)
  3115. end
  3116.  
  3117. --ball.SparkSound.Looped = false
  3118. --ball.SparkSound:Stop()
  3119. ball.Parent = nil
  3120. end))
  3121. SpecialMesh235.Parent = Tool226
  3122. SpecialMesh235.Scale = Vector3.new(0.25, 0.25, 0.25)
  3123. SpecialMesh235.MeshType = Enum.MeshType.Sphere
  3124. SpecialMesh235.Scale = Vector3.new(0.25, 0.25, 0.25)
  3125. Script236.Name = "ProjectileTimeLife"
  3126. Script236.Parent = Tool226
  3127. Script236.Disabled = true
  3128. table.insert(cors,sandbox(Script236,function()
  3129. script.Parent.Transparency = 0.2
  3130. wait(0.025)
  3131. script.Parent.Transparency = 0.4
  3132. wait(0.025)
  3133. script.Parent.Transparency = 0.6
  3134. wait(0.025)
  3135. script.Parent.Transparency = 0.8
  3136. wait(0.025)
  3137. script.Parent:remove()
  3138. end))
  3139. Script237.Name = "RayGun"
  3140. Script237.Parent = Tool226
  3141. table.insert(cors,sandbox(Script237,function()
  3142. local Tool = script.Parent;
  3143.  
  3144. enabled = true
  3145.  
  3146. --local spark = Instance.new("Sparkles")
  3147. --spark.Color = Color3.new(0,1,0)
  3148.  
  3149. function fire(v)
  3150.  
  3151.     local vCharacter = Tool.Parent
  3152.     local vPlayer = game.Players:playerFromCharacter(vCharacter)
  3153.  
  3154.     local missile = Instance.new("Part")
  3155.  
  3156.    
  3157.     --spark:Clone().Parent = missile
  3158.  
  3159.     local spawnPos = Tool.Parent.Target.Value.Position
  3160.    
  3161.  
  3162.     --spawnPos  = spawnPos + (v * 10)
  3163.  
  3164.    
  3165.     missile.Position = spawnPos
  3166.     missile.Size = Vector3.new(.2,.2,.2)
  3167.     --missile.Velocity = v * 100
  3168.     missile.Color = Color3.fromRGB(0, 170, 255)
  3169.     missile.Shape = 0
  3170.     missile.Material = "Neon"
  3171.     missile.BottomSurface = 0
  3172.     missile.TopSurface = 0
  3173.     missile.Name = "Spark"
  3174.     missile.Reflectance = 0
  3175.     missile.Elasticity = 1
  3176.     missile.Anchored = true
  3177.     missile.CanCollide = false
  3178.    
  3179.     Tool.Mesh:clone().Parent = missile
  3180.    
  3181.    local missile2 = Instance.new("Part")
  3182. missile2.Position = spawnPos
  3183.     missile2.Size = Vector3.new(.2,.2,.2)
  3184.     --missile.Velocity = v * 100
  3185.     missile2.Color = Color3.fromRGB(255, 0, 0)
  3186.     missile2.Shape = 0
  3187.     missile2.Material = "Neon"
  3188.     missile2.BottomSurface = 0
  3189.     missile2.TopSurface = 0
  3190.     missile2.Name = "Spark"
  3191.     missile2.Reflectance = 0
  3192.     missile2.Elasticity = 1
  3193.     missile2.Anchored = true
  3194.     missile2.CanCollide = false
  3195.     Tool.Mesh:clone().Parent = missile2
  3196.     local force = Instance.new("BodyForce")
  3197.     force.force = Vector3.new(0,99,0)
  3198.     force.Parent = missile
  3199.  
  3200. local force2 = Instance.new("BodyForce")
  3201.     force2.force = Vector3.new(0,99,0)
  3202.     force2.Parent = missile2
  3203.  
  3204.     local creator_tag = Instance.new("ObjectValue")
  3205.     creator_tag.Value = vPlayer
  3206.     creator_tag.Name = "creator"
  3207.     creator_tag.Parent = missile
  3208.  
  3209. local creator_tag2 = Instance.new("ObjectValue")
  3210.     creator_tag2.Value = vPlayer
  3211.     creator_tag2.Name = "creator"
  3212.     creator_tag2.Parent = missile2
  3213.    
  3214.     local new_script = script.Parent.LaserBlast:clone()
  3215.     new_script.Disabled = false
  3216.     new_script.Parent = missile
  3217.  
  3218.  
  3219.    
  3220.     local target = Instance.new("ObjectValue")
  3221.     target.Name = "Target"
  3222.     target.Value = Tool.Parent.Target.Value.Parent
  3223.     target.Parent = missile
  3224.  
  3225. local target2 = Instance.new("ObjectValue")
  3226.     target2.Name = "Target"
  3227.     target2.Value = Tool.Parent.Target.Value.Parent
  3228.     target2.Parent = missile2
  3229.  
  3230.  
  3231.     Hit = missile.CFrame
  3232.     Hit = missile2.CFrame
  3233.     local Projectile = Instance.new("Part")
  3234.     local Projectile2 = Instance.new("Part")  
  3235.     Projectile.Name = "Trail"
  3236.     local Place0 = Tool["Handle"].CFrame
  3237.     Projectile.formFactor = 0
  3238.     Projectile.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  3239.     Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  3240.     Projectile.Material = missile.Material
  3241.     Projectile.Parent = Workspace
  3242.     Projectile.BrickColor = missile.BrickColor
  3243.     Projectile.Anchored = true
  3244.     Projectile.CanCollide = false
  3245.    
  3246.     Projectile2.formFactor = 0
  3247.     Projectile2.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  3248.     Projectile2.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  3249.     Projectile2.Material = missile.Material
  3250.     Projectile2.Parent = Workspace
  3251.     Projectile2.Transparency = 0.7
  3252.     Projectile2.BrickColor = BrickColor.Red()
  3253.     Projectile2.Anchored = true
  3254.     Projectile2.CanCollide = false
  3255.     local new_script2 = script.Parent.ProjectileTimeLife:clone()
  3256.     new_script2.Disabled = false
  3257.     new_script2.Parent = Projectile
  3258.  
  3259.     local new_script3 = script.Parent.ProjectileTimeLife:clone()
  3260.     new_script3.Disabled = false
  3261.     new_script3.Parent = Projectile2
  3262.  
  3263.     me2 = Instance.new("BlockMesh")
  3264.     me2.Scale = Vector3.new(0.15,0.15,1)
  3265.     me2.Parent = Projectile
  3266.  
  3267.     --Tool.Handle.GruntSound:Clone().Parent = missile
  3268.  
  3269.     missile.Parent = Workspace
  3270. --  wait(.15)
  3271.     --PewPew:Stop()
  3272. end
  3273.  
  3274.  
  3275.  
  3276. function gunUp()
  3277.     Tool.GripPos = Vector3.new(0,-0.5,0.5)
  3278. end
  3279.  
  3280. function gunOut()
  3281.     Tool.GripPos = Vector3.new(0,-0.5,0.75)
  3282. end
  3283.  
  3284. function isTurbo(character)
  3285.     return character:FindFirstChild("BoltHelm") ~= nil
  3286. end
  3287.  
  3288.  
  3289. function onActivated()
  3290.     if not enabled  then
  3291.         return
  3292.     end
  3293.  
  3294.     enabled = false
  3295.  
  3296.  
  3297.     local character = Tool.Parent;
  3298.     local humanoid = character.Zombie
  3299.     if humanoid == nil then
  3300.         print("Humanoid not found")
  3301.         return
  3302.     end
  3303.  
  3304.     local targetPos = Tool.Parent.Target.Value.Position
  3305.     local lookAt = (targetPos - character.Head.Position).unit
  3306.  
  3307.     local reload = .05
  3308.     --if (isTurbo(character)) then
  3309.     --  reload = .25
  3310.     --  print("turbo")
  3311.     --end
  3312.  
  3313.    
  3314.     local PewPew = Tool.Handle:FindFirstChild("PewPew")
  3315.  
  3316.     if (PewPew == nil) then
  3317.         PewPew = Instance.new("Sound")
  3318.         PewPew.Name = "PewPew"
  3319.         PewPew.SoundId = "http://www.roblox.com/asset/?id=30324676"
  3320.         PewPew.Parent = Tool.Handle
  3321.         PewPew.Volume = 1
  3322.         --PewPew.Pitch = 1.2
  3323.     end
  3324.    
  3325.     PewPew:Play()
  3326.  
  3327.         local spark = Instance.new("Fire")
  3328.         spark.Color = Color3.new(1,1,0)
  3329.         spark.SecondaryColor = Color3.new(1,1,0)
  3330.         spark.Size = 2.5
  3331.         spark.Heat = 0
  3332.         spark.Parent = Tool.Handle
  3333.  
  3334.     --gunUp()
  3335.     fire(lookAt,humanoid)
  3336.     wait(reload)
  3337.     --gunOut()
  3338.     wait(reload)
  3339.  
  3340.         spark:remove()
  3341.  
  3342.     wait(0.9)
  3343.  
  3344.     enabled = true
  3345.  
  3346.  
  3347. end
  3348.  
  3349. function onEquipped()
  3350.     Tool.Handle.EquipSound:play()
  3351. end
  3352.  
  3353.  
  3354.  
  3355. Tool.Activated:connect(onActivated)
  3356. Tool.Equipped:connect(onEquipped)
  3357.  
  3358.  
  3359.  
  3360. while true do
  3361. if Tool.Parent.Attack.Value == true then
  3362. onActivated()
  3363. end
  3364. wait()
  3365. end
  3366.  
  3367. local char = script.Parent.Parent
  3368. local humanoid = char.Humanoid
  3369. local head = char.Head
  3370.  
  3371. local w = humanoid:LoadAnimation(head.Dance3)
  3372. w:Play()
  3373.  
  3374. end))
  3375. Script238.Name = "Welding"
  3376. Script238.Parent = Tool226
  3377. table.insert(cors,sandbox(Script238,function()
  3378. function Weld(x,y)
  3379.     local W = Instance.new("Weld")
  3380.     W.Part0 = x
  3381.     W.Part1 = y
  3382.     local CJ = CFrame.new(x.Position)
  3383.     local C0 = x.CFrame:inverse()*CJ
  3384.     local C1 = y.CFrame:inverse()*CJ
  3385.     W.C0 = C0
  3386.     W.C1 = C1
  3387.     W.Parent = x
  3388. end
  3389.  
  3390. function Get(A)
  3391.     if A.className == "Part" then
  3392.         Weld(script.Parent.Handle, A)
  3393.         A.Anchored = false
  3394.     else
  3395.         local C = A:GetChildren()
  3396.         for i=1, #C do
  3397.         Get(C[i])
  3398.         end
  3399.     end
  3400. end
  3401.  
  3402. function Finale()
  3403.     Get(script.Parent)
  3404. end
  3405.  
  3406. script.Parent.Equipped:connect(Finale)
  3407. script.Parent.Unequipped:connect(Finale)
  3408. Finale()
  3409. end))
  3410. LocalScript239.Name = "Local Gui"
  3411. LocalScript239.Parent = Tool226
  3412. table.insert(cors,sandbox(LocalScript239,function()
  3413. local Tool = script.Parent;
  3414.  
  3415. enabled = true
  3416. function onButton1Down(mouse)
  3417.     if not enabled then
  3418.         return
  3419.     end
  3420.  
  3421.     enabled = false
  3422.     mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  3423.  
  3424.     wait(0.2)
  3425.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  3426.     enabled = true
  3427.  
  3428. end
  3429.  
  3430. function onEquippedLocal(mouse)
  3431.  
  3432.     if mouse == nil then
  3433.         print("Mouse not found")
  3434.         return
  3435.     end
  3436.  
  3437.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  3438.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  3439. end
  3440.  
  3441.  
  3442. Tool.Equipped:connect(onEquippedLocal)
  3443.  
  3444. end))
  3445. Script240.Name = "LaserBlast2"
  3446. Script240.Parent = Tool226
  3447. Script240.Disabled = true
  3448. table.insert(cors,sandbox(Script240,function()
  3449. -- 42672473 is sorry sound
  3450. -- 42672581 is wind-knocked-out sound
  3451.  
  3452. ball = script.Parent
  3453. damage = 5
  3454.  
  3455. HitSound = Instance.new("Sound")
  3456. HitSound.Name = "HitSound"
  3457. HitSound.SoundId = "http://www.roblox.com/asset/?id=11945266"
  3458. HitSound.Parent = ball
  3459. HitSound.Volume = 1
  3460.  
  3461. PersonHitSound = Instance.new("Sound")
  3462. PersonHitSound.Name = "PersonHitSound"
  3463. --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672473"
  3464. PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672581" -- grunt sound
  3465. PersonHitSound.Volume = .5
  3466. PersonHitSound.Pitch = 1
  3467. PersonHitSound.Parent = ball
  3468.  
  3469. db = false
  3470.  
  3471. function onTouched(hit)
  3472.     if db == false then
  3473.     local humanoid = hit.Parent:findFirstChild("Humanoid")
  3474.  
  3475.     if humanoid ~= nil then
  3476.         --tagHumanoid(humanoid)
  3477.         humanoid:TakeDamage(damage)
  3478.         db = true
  3479.         --untagHumanoid(humanoid)
  3480.  
  3481.         --soundSelector = math.random()*100
  3482.         PersonHitSound:Play()
  3483.     end
  3484.  
  3485.     ball.Anchored = true
  3486.  
  3487.     --[[
  3488.     local spark = Instance.new("Fire")
  3489.     spark.Color = Color3.new(1,1,0)
  3490.     spark.SecondaryColor = Color3.new(1,1,0)
  3491.     spark.Size = 7.5
  3492.     spark.Heat = 0
  3493.     spark.Parent = ball
  3494.     HitSound:Play()
  3495.     wait(0.05)
  3496.     ball.Parent = nil
  3497.     ]]
  3498.     end
  3499. end
  3500.  
  3501. function tagHumanoid(humanoid)
  3502.     -- todo: make tag expire
  3503.     local tag = ball:findFirstChild("creator")
  3504.     if tag ~= nil then
  3505.         local new_tag = tag:clone()
  3506.         new_tag.Parent = humanoid
  3507.     end
  3508. end
  3509.  
  3510.  
  3511. function untagHumanoid(humanoid)
  3512.     if humanoid ~= nil then
  3513.         local tag = humanoid:findFirstChild("creator")
  3514.         if tag ~= nil then
  3515.             tag.Parent = nil
  3516.         end
  3517.     end
  3518. end
  3519.  
  3520. connection = ball.Touched:connect(onTouched)
  3521.  
  3522. for i = 1,5 do
  3523.     ball.Transparency = ball.Transparency + 0.2
  3524.     ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(5,5,5)
  3525.     wait(0.1)
  3526. end
  3527.  
  3528. --ball.SparkSound.Looped = false
  3529. --ball.SparkSound:Stop()
  3530. ball.Parent = nil
  3531. end))
  3532. Sound241.Parent = Model6
  3533. Sound241.SoundId = "rbxassetid://461968371"
  3534. Sound241.Volume = 4
  3535. Sound241.Looped = true
  3536. Script242.Name = "Put this in Boss's Humanoid"
  3537. Script242.Parent = Model6
  3538. table.insert(cors,sandbox(Script242,function()
  3539. while true do
  3540.     for _, Players in pairs(game.Players:GetChildren()) do
  3541.         local BossBattleHealthGui = workspace.Water.Head
  3542.         if BossBattleHealthGui then
  3543.             BossBattleHealthGui.Frame.Boss.Value = script.Parent.Parent
  3544.         end
  3545.     end
  3546.     wait()
  3547. end
  3548. end))
  3549. Part243.Parent = mas
  3550. Part243.Anchored = true
  3551. Part243.Size = Vector3.new(597.309937, 1, 601.960083)
  3552. Part243.CFrame = CFrame.new(26.2390747, -0.499909878, -6.97071838, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3553. Part243.BottomSurface = Enum.SurfaceType.Smooth
  3554. Part243.TopSurface = Enum.SurfaceType.Smooth
  3555. Part243.Position = Vector3.new(26.2390747, -0.499909878, -6.97071838)
  3556. Attachment244.Name = "WaistFrontAttachment"
  3557. Attachment244.Parent = Part243
  3558. Attachment244.CFrame = CFrame.new(-22.3599987, 0.5, 1.22000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3559. Attachment244.Position = Vector3.new(-22.3599987, 0.5, 1.22000003)
  3560. ManualWeld245.Name = "Part-to-Union Strong Joint"
  3561. ManualWeld245.Parent = Part243
  3562. ManualWeld245.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  3563. ManualWeld245.C1 = CFrame.new(-69.4329681, -2.59995699, 558.346924, -1.00000858, 0, 0, 0, 0, 1, 0, 1.00000858, 0)
  3564. ManualWeld245.Part0 = Part243
  3565. ManualWeld245.Part1 = nil
  3566. ManualWeld246.Name = "Part-to-Union Strong Joint"
  3567. ManualWeld246.Parent = Part243
  3568. ManualWeld246.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  3569. ManualWeld246.C1 = CFrame.new(70.038681, -3.90734076, -561.913635, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  3570. ManualWeld246.Part0 = Part243
  3571. ManualWeld246.Part1 = nil
  3572. ManualWeld247.Name = "Part-to-Part Strong Joint"
  3573. ManualWeld247.Parent = Part243
  3574. ManualWeld247.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  3575. ManualWeld247.C1 = CFrame.new(-272.415894, -2.10001183, 299.009338, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  3576. ManualWeld247.Part0 = Part243
  3577. for i,v in pairs(mas:GetChildren()) do
  3578.     v.Parent = workspace
  3579.     pcall(function() v:MakeJoints() end)
  3580. end
  3581. mas:Destroy()
  3582. for i,v in pairs(cors) do
  3583.     spawn(function()
  3584.         pcall(v)
  3585.     end)
  3586. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top