Advertisement
DaOMEGAa32

fgbhdfgh

May 7th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.25 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Camera0 = Instance.new("Camera")
  26. Part1 = Instance.new("Part")
  27. Model2 = Instance.new("Model")
  28. Model3 = Instance.new("Model")
  29. Part4 = Instance.new("Part")
  30. SpecialMesh5 = Instance.new("SpecialMesh")
  31. BillboardGui6 = Instance.new("BillboardGui")
  32. Frame7 = Instance.new("Frame")
  33. Frame8 = Instance.new("Frame")
  34. Script9 = Instance.new("Script")
  35. Frame10 = Instance.new("Frame")
  36. TextLabel11 = Instance.new("TextLabel")
  37. Script12 = Instance.new("Script")
  38. Decal13 = Instance.new("Decal")
  39. Part14 = Instance.new("Part")
  40. SpecialMesh15 = Instance.new("SpecialMesh")
  41. Script16 = Instance.new("Script")
  42. Part17 = Instance.new("Part")
  43. Decal18 = Instance.new("Decal")
  44. Motor6D19 = Instance.new("Motor6D")
  45. Motor6D20 = Instance.new("Motor6D")
  46. Motor6D21 = Instance.new("Motor6D")
  47. Motor6D22 = Instance.new("Motor6D")
  48. Motor6D23 = Instance.new("Motor6D")
  49. Part24 = Instance.new("Part")
  50. Part25 = Instance.new("Part")
  51. Part26 = Instance.new("Part")
  52. Part27 = Instance.new("Part")
  53. Humanoid28 = Instance.new("Humanoid")
  54. Model29 = Instance.new("Model")
  55. Model30 = Instance.new("Model")
  56. Part31 = Instance.new("Part")
  57. Motor6D32 = Instance.new("Motor6D")
  58. Script33 = Instance.new("Script")
  59. Script34 = Instance.new("Script")
  60. ModuleScript35 = Instance.new("ModuleScript")
  61. ModuleScript36 = Instance.new("ModuleScript")
  62. Script37 = Instance.new("Script")
  63. StringValue38 = Instance.new("StringValue")
  64. Script39 = Instance.new("Script")
  65. LocalScript40 = Instance.new("LocalScript")
  66. StringValue41 = Instance.new("StringValue")
  67. Animation42 = Instance.new("Animation")
  68. NumberValue43 = Instance.new("NumberValue")
  69. StringValue44 = Instance.new("StringValue")
  70. Animation45 = Instance.new("Animation")
  71. StringValue46 = Instance.new("StringValue")
  72. Animation47 = Instance.new("Animation")
  73. StringValue48 = Instance.new("StringValue")
  74. Animation49 = Instance.new("Animation")
  75. StringValue50 = Instance.new("StringValue")
  76. Animation51 = Instance.new("Animation")
  77. StringValue52 = Instance.new("StringValue")
  78. Animation53 = Instance.new("Animation")
  79. StringValue54 = Instance.new("StringValue")
  80. Animation55 = Instance.new("Animation")
  81. StringValue56 = Instance.new("StringValue")
  82. Animation57 = Instance.new("Animation")
  83. Camera0.Parent = mas
  84. Camera0.CFrame = CFrame.new(22.1343784, 17.2319031, -26.1501656, -0.542224884, -0.259428352, 0.799180269, -0, 0.951140821, 0.308757484, -0.840233445, 0.167415991, -0.515732169)
  85. Camera0.CoordinateFrame = CFrame.new(22.1343784, 17.2319031, -26.1501656, -0.542224884, -0.259428352, 0.799180269, -0, 0.951140821, 0.308757484, -0.840233445, 0.167415991, -0.515732169)
  86. Camera0.Focus = CFrame.new(20.2108402, 16.4887581, -24.9088554, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  87. Camera0.focus = CFrame.new(20.2108402, 16.4887581, -24.9088554, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  88. Part1.Name = "Baseplate"
  89. Part1.Parent = mas
  90. Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  91. Part1.Position = Vector3.new(0, -10, 0)
  92. Part1.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  93. Part1.Size = Vector3.new(512, 20, 512)
  94. Part1.Anchored = true
  95. Part1.BrickColor = BrickColor.new("Camo")
  96. Part1.Locked = true
  97. Part1.Material = Enum.Material.Grass
  98. Part1.brickColor = BrickColor.new("Camo")
  99. Part1.FormFactor = Enum.FormFactor.Symmetric
  100. Part1.formFactor = Enum.FormFactor.Symmetric
  101. Model2.Name = "VTabs"
  102. Model2.Parent = mas
  103. Model3.Name = "Rainbow Noob"
  104. Model3.Parent = mas
  105. Model3.PrimaryPart = Part4
  106. Part4.Name = "Head"
  107. Part4.Parent = Model3
  108. Part4.CFrame = CFrame.new(-6.15512848, 4.50046158, -11.473012, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  109. Part4.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  110. Part4.Position = Vector3.new(-6.15512848, 4.50046158, -11.473012)
  111. Part4.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  112. Part4.Color = Color3.new(0.960784, 0.803922, 0.188235)
  113. Part4.Size = Vector3.new(2, 1, 1)
  114. Part4.BackParamA = -99999
  115. Part4.BackParamB = 99999
  116. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  117. Part4.BottomParamA = -99999
  118. Part4.BottomParamB = 99999
  119. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  120. Part4.BrickColor = BrickColor.new("Bright yellow")
  121. Part4.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  122. Part4.FrontParamA = -99999
  123. Part4.FrontParamB = 99999
  124. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  125. Part4.LeftParamA = -99999
  126. Part4.LeftParamB = 99999
  127. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  128. Part4.Material = Enum.Material.SmoothPlastic
  129. Part4.RightParamA = -99999
  130. Part4.RightParamB = 99999
  131. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  132. Part4.TopParamA = -99999
  133. Part4.TopParamB = 99999
  134. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  135. Part4.brickColor = BrickColor.new("Bright yellow")
  136. Part4.FormFactor = Enum.FormFactor.Symmetric
  137. Part4.formFactor = Enum.FormFactor.Symmetric
  138. SpecialMesh5.Parent = Part4
  139. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  140. BillboardGui6.Parent = Part4
  141. BillboardGui6.Size = UDim2.new(50, 0, 5, 0)
  142. BillboardGui6.Active = true
  143. BillboardGui6.MaxDistance = 9.9999998430675e+17
  144. BillboardGui6.StudsOffset = Vector3.new(0, 6, 0)
  145. Frame7.Parent = BillboardGui6
  146. Frame7.Size = UDim2.new(1, 0, 1, 0)
  147. Frame7.BackgroundColor = BrickColor.new("Really black")
  148. Frame7.BackgroundColor3 = Color3.new(0, 0, 0)
  149. Frame7.BorderColor = BrickColor.new("Really black")
  150. Frame7.BorderColor3 = Color3.new(0.0313726, 0.0313726, 0.0313726)
  151. Frame7.BorderSizePixel = 2
  152. Frame8.Name = "HPBar"
  153. Frame8.Parent = Frame7
  154. Frame8.Size = UDim2.new(0, 0, 1, 0)
  155. Frame8.BackgroundColor = BrickColor.new("Turquoise")
  156. Frame8.BackgroundColor3 = Color3.new(0.529412, 0.776471, 0.72549)
  157. Frame8.BorderColor = BrickColor.new("Really black")
  158. Frame8.BorderColor3 = Color3.new(0, 0, 0)
  159. Frame8.BorderSizePixel = 4
  160. Script9.Parent = Frame8
  161. table.insert(cors,sandbox(Script9,function()
  162.  
  163. while wait() do
  164. script.Parent:TweenSize(UDim2.new(script.Parent.Parent.Parent.Parent.Parent.Humanoid.Health/script.Parent.Parent.Parent.Parent.Parent.Humanoid.MaxHealth,0,1,0),nil,1,0.5,true)
  165. end
  166. end))
  167. Frame10.Name = "shade"
  168. Frame10.Parent = Frame8
  169. Frame10.Position = UDim2.new(0, 0, 0.5, 0)
  170. Frame10.Size = UDim2.new(1, 0, 0.5, 0)
  171. Frame10.BackgroundColor = BrickColor.new("Really black")
  172. Frame10.BackgroundColor3 = Color3.new(0, 0, 0)
  173. Frame10.BackgroundTransparency = 0.75
  174. Frame10.BorderSizePixel = 0
  175. TextLabel11.Parent = Frame7
  176. TextLabel11.Size = UDim2.new(1, 0, 1, 0)
  177. TextLabel11.BackgroundColor = BrickColor.new("Institutional white")
  178. TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
  179. TextLabel11.BackgroundTransparency = 1
  180. TextLabel11.Font = Enum.Font.Cartoon
  181. TextLabel11.FontSize = Enum.FontSize.Size14
  182. TextLabel11.Text = "Name"
  183. TextLabel11.TextColor = BrickColor.new("Institutional white")
  184. TextLabel11.TextColor3 = Color3.new(1, 1, 1)
  185. TextLabel11.TextScaled = true
  186. TextLabel11.TextSize = 14
  187. TextLabel11.TextStrokeColor3 = Color3.new(1, 0.666667, 1)
  188. TextLabel11.TextStrokeTransparency = 0
  189. TextLabel11.TextWrap = true
  190. TextLabel11.TextWrapped = true
  191. Script12.Parent = TextLabel11
  192. table.insert(cors,sandbox(Script12,function()
  193. while wait() do
  194. script.Parent.Text = string.upper(script.Parent.Parent.Parent.Parent.Parent.Name).. " | " ..math.floor(script.Parent.Parent.Parent.Parent.Parent.Humanoid.Health)
  195. end
  196. end))
  197. Decal13.Name = "Cartoony guy"
  198. Decal13.Parent = Part4
  199. Decal13.Texture = "http://www.roblox.com/asset/?id=192467476"
  200. Part14.Name = "Handle"
  201. Part14.Parent = Part4
  202. Part14.CFrame = CFrame.new(-6.13871098, 5.11358404, -11.4352522, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  203. Part14.Orientation = Vector3.new(0, 180, 0)
  204. Part14.Position = Vector3.new(-6.13871098, 5.11358404, -11.4352522)
  205. Part14.Rotation = Vector3.new(-180, 0, -180)
  206. Part14.Size = Vector3.new(2, 0.800000012, 2)
  207. Part14.BottomSurface = Enum.SurfaceType.Smooth
  208. Part14.TopSurface = Enum.SurfaceType.Smooth
  209. Part14.FormFactor = Enum.FormFactor.Plate
  210. Part14.formFactor = Enum.FormFactor.Plate
  211. SpecialMesh15.Parent = Part14
  212. SpecialMesh15.MeshId = "http://www.roblox.com/asset/?id=1028713"
  213. SpecialMesh15.TextureId = "rbxassetid://128627289"
  214. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  215. Script16.Name = "HatScript"
  216. Script16.Parent = Part14
  217. table.insert(cors,sandbox(Script16,function()
  218. --[[Made by SuperZ590]]--
  219.  
  220. debounce = true
  221.  
  222. function onTouched(hit)
  223. if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
  224. debounce = false
  225. h = Instance.new("Hat")
  226. p = Instance.new("Part")
  227. h.Name = "GreenTopHat"
  228. p.Parent = h
  229. p.Position = hit.Parent:findFirstChild("Head").Position
  230. p.Name = "Handle"
  231. p.formFactor = script.Parent.formFactor
  232. p.Size = Vector3.new(1, 1, 1)
  233. p.BottomSurface = 0
  234. p.TopSurface = 0
  235. p.Locked = true
  236. script.Parent.Mesh:clone().Parent = p
  237. h.Parent = hit.Parent
  238. h.AttachmentForward = Vector3.new(-0, -0, -1)
  239. h.AttachmentPos = Vector3.new(0, -0.25, 0)
  240. h.AttachmentRight = Vector3.new(1, 0, 0)
  241. h.AttachmentUp = Vector3.new(0, 1, 0)
  242. wait(5)
  243. debounce = true
  244. end
  245. end
  246.  
  247. script.Parent.Touched:connect(onTouched)
  248.  
  249. --[[Made by SuperZ590]]--
  250. end))
  251. Part17.Name = "Torso"
  252. Part17.Parent = Model3
  253. Part17.CFrame = CFrame.new(-6.15570879, 3.00045991, -11.4728699, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  254. Part17.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  255. Part17.Position = Vector3.new(-6.15570879, 3.00045991, -11.4728699)
  256. Part17.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  257. Part17.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  258. Part17.Size = Vector3.new(2, 2, 1)
  259. Part17.BackParamA = -99999
  260. Part17.BackParamB = 99999
  261. Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  262. Part17.BottomParamA = -99999
  263. Part17.BottomParamB = 99999
  264. Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  265. Part17.BrickColor = BrickColor.new("Bright blue")
  266. Part17.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  267. Part17.FrontParamA = -99999
  268. Part17.FrontParamB = 99999
  269. Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  270. Part17.LeftParamA = -99999
  271. Part17.LeftParamB = 99999
  272. Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  273. Part17.Material = Enum.Material.SmoothPlastic
  274. Part17.RightParamA = -99999
  275. Part17.RightParamB = 99999
  276. Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  277. Part17.TopParamA = -99999
  278. Part17.TopParamB = 99999
  279. Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  280. Part17.brickColor = BrickColor.new("Bright blue")
  281. Part17.FormFactor = Enum.FormFactor.Symmetric
  282. Part17.formFactor = Enum.FormFactor.Symmetric
  283. Decal18.Name = "roblox"
  284. Decal18.Parent = Part17
  285. Motor6D19.Name = "Right Shoulder"
  286. Motor6D19.Parent = Part17
  287. Motor6D19.MaxVelocity = 0.10000000149012
  288. Motor6D19.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  289. Motor6D19.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  290. Motor6D19.Part0 = Part17
  291. Motor6D19.Part1 = Part25
  292. Motor6D19.part1 = Part25
  293. Motor6D20.Name = "Left Shoulder"
  294. Motor6D20.Parent = Part17
  295. Motor6D20.MaxVelocity = 0.10000000149012
  296. Motor6D20.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  297. Motor6D20.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  298. Motor6D20.Part0 = Part17
  299. Motor6D20.Part1 = Part24
  300. Motor6D20.part1 = Part24
  301. Motor6D21.Name = "Right Hip"
  302. Motor6D21.Parent = Part17
  303. Motor6D21.MaxVelocity = 0.10000000149012
  304. Motor6D21.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  305. Motor6D21.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  306. Motor6D21.Part0 = Part17
  307. Motor6D21.Part1 = Part27
  308. Motor6D21.part1 = Part27
  309. Motor6D22.Name = "Left Hip"
  310. Motor6D22.Parent = Part17
  311. Motor6D22.MaxVelocity = 0.10000000149012
  312. Motor6D22.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  313. Motor6D22.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  314. Motor6D22.Part0 = Part17
  315. Motor6D22.Part1 = Part26
  316. Motor6D22.part1 = Part26
  317. Motor6D23.Name = "Neck"
  318. Motor6D23.Parent = Part17
  319. Motor6D23.MaxVelocity = 0.10000000149012
  320. Motor6D23.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  321. Motor6D23.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  322. Motor6D23.Part0 = Part17
  323. Motor6D23.Part1 = Part4
  324. Motor6D23.part1 = Part4
  325. Part24.Name = "Left Arm"
  326. Part24.Parent = Model3
  327. Part24.CFrame = CFrame.new(-7.65570784, 3.00104022, -11.4714155, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  328. Part24.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  329. Part24.Position = Vector3.new(-7.65570784, 3.00104022, -11.4714155)
  330. Part24.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  331. Part24.Color = Color3.new(0.960784, 0.803922, 0.188235)
  332. Part24.Size = Vector3.new(1, 2, 1)
  333. Part24.BackParamA = -99999
  334. Part24.BackParamB = 99999
  335. Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  336. Part24.BottomParamA = -99999
  337. Part24.BottomParamB = 99999
  338. Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  339. Part24.BrickColor = BrickColor.new("Bright yellow")
  340. Part24.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  341. Part24.FrontParamA = -99999
  342. Part24.FrontParamB = 99999
  343. Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  344. Part24.LeftParamA = -99999
  345. Part24.LeftParamB = 99999
  346. Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  347. Part24.Material = Enum.Material.SmoothPlastic
  348. Part24.RightParamA = -99999
  349. Part24.RightParamB = 99999
  350. Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  351. Part24.TopParamA = -99999
  352. Part24.TopParamB = 99999
  353. Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  354. Part24.brickColor = BrickColor.new("Bright yellow")
  355. Part24.FormFactor = Enum.FormFactor.Symmetric
  356. Part24.formFactor = Enum.FormFactor.Symmetric
  357. Part25.Name = "Right Arm"
  358. Part25.Parent = Model3
  359. Part25.CFrame = CFrame.new(-4.65570974, 2.9998796, -11.4743242, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  360. Part25.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  361. Part25.Position = Vector3.new(-4.65570974, 2.9998796, -11.4743242)
  362. Part25.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  363. Part25.Color = Color3.new(0.960784, 0.803922, 0.188235)
  364. Part25.Size = Vector3.new(1, 2, 1)
  365. Part25.BackParamA = -99999
  366. Part25.BackParamB = 99999
  367. Part25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  368. Part25.BottomParamA = -99999
  369. Part25.BottomParamB = 99999
  370. Part25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  371. Part25.BrickColor = BrickColor.new("Bright yellow")
  372. Part25.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  373. Part25.FrontParamA = -99999
  374. Part25.FrontParamB = 99999
  375. Part25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  376. Part25.LeftParamA = -99999
  377. Part25.LeftParamB = 99999
  378. Part25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  379. Part25.Material = Enum.Material.SmoothPlastic
  380. Part25.RightParamA = -99999
  381. Part25.RightParamB = 99999
  382. Part25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  383. Part25.TopParamA = -99999
  384. Part25.TopParamB = 99999
  385. Part25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  386. Part25.brickColor = BrickColor.new("Bright yellow")
  387. Part25.FormFactor = Enum.FormFactor.Symmetric
  388. Part25.formFactor = Enum.FormFactor.Symmetric
  389. Part26.Name = "Left Leg"
  390. Part26.Parent = Model3
  391. Part26.CFrame = CFrame.new(-6.65648222, 1.000651, -11.4721947, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  392. Part26.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  393. Part26.Position = Vector3.new(-6.65648222, 1.000651, -11.4721947)
  394. Part26.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  395. Part26.Color = Color3.new(0.643137, 0.741176, 0.278431)
  396. Part26.Size = Vector3.new(1, 2, 1)
  397. Part26.BackParamA = -99999
  398. Part26.BackParamB = 99999
  399. Part26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  400. Part26.BottomParamA = -99999
  401. Part26.BottomParamB = 99999
  402. Part26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  403. Part26.BrickColor = BrickColor.new("Br. yellowish green")
  404. Part26.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  405. Part26.FrontParamA = -99999
  406. Part26.FrontParamB = 99999
  407. Part26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  408. Part26.LeftParamA = -99999
  409. Part26.LeftParamB = 99999
  410. Part26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  411. Part26.Material = Enum.Material.SmoothPlastic
  412. Part26.RightParamA = -99999
  413. Part26.RightParamB = 99999
  414. Part26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  415. Part26.TopParamA = -99999
  416. Part26.TopParamB = 99999
  417. Part26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  418. Part26.brickColor = BrickColor.new("Br. yellowish green")
  419. Part26.FormFactor = Enum.FormFactor.Symmetric
  420. Part26.formFactor = Enum.FormFactor.Symmetric
  421. Part27.Name = "Right Leg"
  422. Part27.Parent = Model3
  423. Part27.CFrame = CFrame.new(-5.6564827, 1.00026417, -11.4731646, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  424. Part27.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  425. Part27.Position = Vector3.new(-5.6564827, 1.00026417, -11.4731646)
  426. Part27.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  427. Part27.Color = Color3.new(0.643137, 0.741176, 0.278431)
  428. Part27.Size = Vector3.new(1, 2, 1)
  429. Part27.BackParamA = -99999
  430. Part27.BackParamB = 99999
  431. Part27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  432. Part27.BottomParamA = -99999
  433. Part27.BottomParamB = 99999
  434. Part27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  435. Part27.BrickColor = BrickColor.new("Br. yellowish green")
  436. Part27.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  437. Part27.FrontParamA = -99999
  438. Part27.FrontParamB = 99999
  439. Part27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  440. Part27.LeftParamA = -99999
  441. Part27.LeftParamB = 99999
  442. Part27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  443. Part27.Material = Enum.Material.SmoothPlastic
  444. Part27.RightParamA = -99999
  445. Part27.RightParamB = 99999
  446. Part27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  447. Part27.TopParamA = -99999
  448. Part27.TopParamB = 99999
  449. Part27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  450. Part27.brickColor = BrickColor.new("Br. yellowish green")
  451. Part27.FormFactor = Enum.FormFactor.Symmetric
  452. Part27.formFactor = Enum.FormFactor.Symmetric
  453. Humanoid28.Parent = Model3
  454. Humanoid28.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  455. Humanoid28.Health = 899999989760
  456. Humanoid28.HealthDisplayDistance = 0
  457. Humanoid28.JumpPower = 60
  458. Humanoid28.LeftLeg = Part26
  459. Humanoid28.MaxHealth = 899999989760
  460. Humanoid28.MaxSlopeAngle = 89.900001525879
  461. Humanoid28.NameDisplayDistance = 0
  462. Humanoid28.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  463. Humanoid28.RightLeg = Part27
  464. Humanoid28.Torso = Part31
  465. Humanoid28.WalkSpeed = 25
  466. Humanoid28.maxHealth = 899999989760
  467. Model29.Name = "Status"
  468. Model29.Parent = Humanoid28
  469. Model30.Name = "AvalibleSpawns"
  470. Model30.Parent = Model29
  471. Part31.Name = "HumanoidRootPart"
  472. Part31.Parent = Model3
  473. Part31.CFrame = CFrame.new(-6.15570879, 3.00045991, -11.4728699, 0.999999464, 0.000386848697, 0.000969587942, -0.000386940024, 1.00000119, 9.46386717e-05, -0.000969551271, -9.50139438e-05, 0.999999523)
  474. Part31.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  475. Part31.Position = Vector3.new(-6.15570879, 3.00045991, -11.4728699)
  476. Part31.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  477. Part31.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  478. Part31.Transparency = 1
  479. Part31.Size = Vector3.new(2, 2, 1)
  480. Part31.BackParamA = -99999
  481. Part31.BackParamB = 99999
  482. Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  483. Part31.BottomParamA = -99999
  484. Part31.BottomParamB = 99999
  485. Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  486. Part31.BrickColor = BrickColor.new("Bright blue")
  487. Part31.CanCollide = false
  488. Part31.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  489. Part31.FrontParamA = -99999
  490. Part31.FrontParamB = 99999
  491. Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  492. Part31.LeftParamA = -99999
  493. Part31.LeftParamB = 99999
  494. Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  495. Part31.Material = Enum.Material.SmoothPlastic
  496. Part31.RightParamA = -99999
  497. Part31.RightParamB = 99999
  498. Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  499. Part31.TopParamA = -99999
  500. Part31.TopParamB = 99999
  501. Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  502. Part31.brickColor = BrickColor.new("Bright blue")
  503. Part31.FormFactor = Enum.FormFactor.Symmetric
  504. Part31.formFactor = Enum.FormFactor.Symmetric
  505. Motor6D32.Name = "RootJoint"
  506. Motor6D32.Parent = Part31
  507. Motor6D32.MaxVelocity = 0.10000000149012
  508. Motor6D32.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  509. Motor6D32.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  510. Motor6D32.Part0 = Part31
  511. Motor6D32.Part1 = Part17
  512. Motor6D32.part1 = Part17
  513. Script33.Name = "AttackingScript"
  514. Script33.Parent = Model3
  515. table.insert(cors,sandbox(Script33,function()
  516. --//====================================================\\--
  517. --|| GUNJOURER BY SHACKLUSTER
  518. --\\====================================================//--
  519. wait(0.2)
  520.  
  521. --Player = game:GetService("Players").LocalPlayer
  522. --PlayerGui = Player.PlayerGui
  523. Cam = workspace.CurrentCamera
  524. --Backpack = Player.Backpack
  525. Character = script.Parent
  526. Humanoid = Character.Humanoid
  527. Mouse = nil -- Player:GetMouse()
  528. RootPart = Character["HumanoidRootPart"]
  529. Torso = Character["Torso"]
  530. Head = Character["Head"]
  531. RightArm = Character["Right Arm"]
  532. LeftArm = Character["Left Arm"]
  533. RightLeg = Character["Right Leg"]
  534. LeftLeg = Character["Left Leg"]
  535. RootJoint = RootPart["RootJoint"]
  536. Neck = Torso["Neck"]
  537. RightShoulder = Torso["Right Shoulder"]
  538. LeftShoulder = Torso["Left Shoulder"]
  539. RightHip = Torso["Right Hip"]
  540. LeftHip = Torso["Left Hip"]
  541.  
  542. IT = Instance.new
  543. CF = CFrame.new
  544. VT = Vector3.new
  545. RAD = math.rad
  546. C3 = Color3.new
  547. UD2 = UDim2.new
  548. BRICKC = BrickColor.new
  549. ANGLES = CFrame.Angles
  550. EULER = CFrame.fromEulerAnglesXYZ
  551. COS = math.cos
  552. ACOS = math.acos
  553. SIN = math.sin
  554. ASIN = math.asin
  555. ABS = math.abs
  556. MRANDOM = math.random
  557. FLOOR = math.floor
  558.  
  559. --//=================================\\
  560. --|| USEFUL VALUES
  561. --\\=================================//
  562.  
  563. Animation_Speed = 3
  564. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  565. local Speed = 35
  566. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  567. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  568. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  569. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  570. local DAMAGEMULTIPLIER = 1
  571. local ANIM = "Idle"
  572. local ATTACK = false
  573. local EQUIPPED = false
  574. local HOLD = false
  575. local COMBO = 1
  576. local Rooted = false
  577. local SINE = 0
  578. local KEYHOLD = false
  579. local CHANGE = 2 / Animation_Speed
  580. local WALKINGANIM = false
  581. local VALUE1 = false
  582. local VALUE2 = false
  583. local ROBLOXIDLEANIMATION = IT("Animation")
  584. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  585. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  586. --ROBLOXIDLEANIMATION.Parent = Humanoid
  587. --local WEAPONGUI = IT("ScreenGui", PlayerGui)
  588. --WEAPONGUI.Name = "GUNJOURER_GUI_SHACKLUSTER"
  589. local Effects = IT("Folder", Character)
  590. Effects.Name = "Effects"
  591. local ANIMATOR = Humanoid.Animator
  592. local ANIMATE = Character.Animate
  593. local UNANCHOR = true
  594. local TRIPWIRE = false
  595.  
  596. --//=================================\\
  597. --\\=================================//
  598.  
  599.  
  600. --//=================================\\
  601. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  602. --\\=================================//
  603.  
  604. ArtificialHB = Instance.new("BindableEvent", script)
  605. ArtificialHB.Name = "ArtificialHB"
  606.  
  607. script:WaitForChild("ArtificialHB")
  608.  
  609. frame = Frame_Speed
  610. tf = 0
  611. allowframeloss = false
  612. tossremainder = false
  613. lastframe = tick()
  614. script.ArtificialHB:Fire()
  615.  
  616. game:GetService("RunService").Heartbeat:connect(function(s, p)
  617. tf = tf + s
  618. if tf >= frame then
  619. if allowframeloss then
  620. ArtificialHB:Fire()
  621. lastframe = tick()
  622. else
  623. for i = 1, math.floor(tf / frame) do
  624. ArtificialHB:Fire()
  625. end
  626. lastframe = tick()
  627. end
  628. if tossremainder then
  629. tf = 0
  630. else
  631. tf = tf - frame * math.floor(tf / frame)
  632. end
  633. end
  634. end)
  635.  
  636. --//=================================\\
  637. --\\=================================//
  638.  
  639. --//=================================\\
  640. --|| SOME FUNCTIONS
  641. --\\=================================//
  642.  
  643. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  644. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  645. end
  646.  
  647. function PositiveAngle(NUMBER)
  648. if NUMBER >= 0 then
  649. NUMBER = 0
  650. end
  651. return NUMBER
  652. end
  653.  
  654. function NegativeAngle(NUMBER)
  655. if NUMBER <= 0 then
  656. NUMBER = 0
  657. end
  658. return NUMBER
  659. end
  660.  
  661. function Swait(NUMBER)
  662. if NUMBER == 0 or NUMBER == nil then
  663. ArtificialHB.Event:wait()
  664. else
  665. for i = 1, NUMBER do
  666. ArtificialHB.Event:wait()
  667. end
  668. end
  669. end
  670.  
  671. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  672. local NEWMESH = IT(MESH)
  673. if MESH == "SpecialMesh" then
  674. NEWMESH.MeshType = MESHTYPE
  675. if MESHID ~= "nil" and MESHID ~= "" then
  676. NEWMESH.MeshId = ""..MESHID
  677. end
  678. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  679. NEWMESH.TextureId = ""..TEXTUREID
  680. end
  681. end
  682. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  683. NEWMESH.Scale = SCALE
  684. NEWMESH.Parent = PARENT
  685. return NEWMESH
  686. end
  687.  
  688. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  689. local NEWPART = IT("Part")
  690. NEWPART.formFactor = FORMFACTOR
  691. NEWPART.Reflectance = REFLECTANCE
  692. NEWPART.Transparency = TRANSPARENCY
  693. NEWPART.CanCollide = false
  694. NEWPART.Locked = true
  695. NEWPART.Anchored = true
  696. if ANCHOR == false then
  697. NEWPART.Anchored = false
  698. end
  699. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  700. NEWPART.Name = NAME
  701. NEWPART.Size = SIZE
  702. NEWPART.Position = Torso.Position
  703. NEWPART.Material = MATERIAL
  704. NEWPART:BreakJoints()
  705. NEWPART.Parent = PARENT
  706. return NEWPART
  707. end
  708.  
  709. local function weldBetween(a, b)
  710. local weldd = Instance.new("ManualWeld")
  711. weldd.Part0 = a
  712. weldd.Part1 = b
  713. weldd.C0 = CFrame.new()
  714. weldd.C1 = b.CFrame:inverse() * a.CFrame
  715. weldd.Parent = a
  716. return weldd
  717. end
  718.  
  719.  
  720. function QuaternionFromCFrame(cf)
  721. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  722. local trace = m00 + m11 + m22
  723. if trace > 0 then
  724. local s = math.sqrt(1 + trace)
  725. local recip = 0.5 / s
  726. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  727. else
  728. local i = 0
  729. if m11 > m00 then
  730. i = 1
  731. end
  732. if m22 > (i == 0 and m00 or m11) then
  733. i = 2
  734. end
  735. if i == 0 then
  736. local s = math.sqrt(m00 - m11 - m22 + 1)
  737. local recip = 0.5 / s
  738. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  739. elseif i == 1 then
  740. local s = math.sqrt(m11 - m22 - m00 + 1)
  741. local recip = 0.5 / s
  742. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  743. elseif i == 2 then
  744. local s = math.sqrt(m22 - m00 - m11 + 1)
  745. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  746. end
  747. end
  748. end
  749.  
  750. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  751. local xs, ys, zs = x + x, y + y, z + z
  752. local wx, wy, wz = w * xs, w * ys, w * zs
  753. local xx = x * xs
  754. local xy = x * ys
  755. local xz = x * zs
  756. local yy = y * ys
  757. local yz = y * zs
  758. local zz = z * zs
  759. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  760. end
  761.  
  762. function QuaternionSlerp(a, b, t)
  763. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  764. local startInterp, finishInterp;
  765. if cosTheta >= 0.0001 then
  766. if (1 - cosTheta) > 0.0001 then
  767. local theta = ACOS(cosTheta)
  768. local invSinTheta = 1 / SIN(theta)
  769. startInterp = SIN((1 - t) * theta) * invSinTheta
  770. finishInterp = SIN(t * theta) * invSinTheta
  771. else
  772. startInterp = 1 - t
  773. finishInterp = t
  774. end
  775. else
  776. if (1 + cosTheta) > 0.0001 then
  777. local theta = ACOS(-cosTheta)
  778. local invSinTheta = 1 / SIN(theta)
  779. startInterp = SIN((t - 1) * theta) * invSinTheta
  780. finishInterp = SIN(t * theta) * invSinTheta
  781. else
  782. startInterp = t - 1
  783. finishInterp = t
  784. end
  785. end
  786. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  787. end
  788.  
  789. function Clerp(a, b, t)
  790. local qa = {QuaternionFromCFrame(a)}
  791. local qb = {QuaternionFromCFrame(b)}
  792. local ax, ay, az = a.x, a.y, a.z
  793. local bx, by, bz = b.x, b.y, b.z
  794. local _t = 1 - t
  795. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  796. end
  797.  
  798. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  799. local frame = IT("Frame")
  800. frame.BackgroundTransparency = TRANSPARENCY
  801. frame.BorderSizePixel = BORDERSIZEPIXEL
  802. frame.Position = POSITION
  803. frame.Size = SIZE
  804. frame.BackgroundColor3 = COLOR
  805. frame.BorderColor3 = BORDERCOLOR
  806. frame.Name = NAME
  807. frame.Parent = PARENT
  808. return frame
  809. end
  810.  
  811. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  812. local label = IT("TextLabel")
  813. label.BackgroundTransparency = 1
  814. label.Size = UD2(1, 0, 1, 0)
  815. label.Position = UD2(0, 0, 0, 0)
  816. label.TextColor3 = TEXTCOLOR
  817. label.TextStrokeTransparency = STROKETRANSPARENCY
  818. label.TextTransparency = TRANSPARENCY
  819. label.FontSize = TEXTFONTSIZE
  820. label.Font = TEXTFONT
  821. label.BorderSizePixel = BORDERSIZEPIXEL
  822. label.TextScaled = false
  823. label.Text = TEXT
  824. label.Name = NAME
  825. label.Parent = PARENT
  826. return label
  827. end
  828.  
  829. function NoOutlines(PART)
  830. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  831. end
  832.  
  833. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  834. local NEWWELD = IT(TYPE)
  835. NEWWELD.Part0 = PART0
  836. NEWWELD.Part1 = PART1
  837. NEWWELD.C0 = C0
  838. NEWWELD.C1 = C1
  839. NEWWELD.Parent = PARENT
  840. return NEWWELD
  841. end
  842.  
  843. local S = IT("Sound")
  844. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  845. local NEWSOUND = nil
  846. coroutine.resume(coroutine.create(function()
  847. NEWSOUND = S:Clone()
  848. NEWSOUND.Parent = PARENT
  849. NEWSOUND.Volume = VOLUME
  850. NEWSOUND.Pitch = PITCH
  851. NEWSOUND.SoundId = "rbxassetid://"..ID
  852. NEWSOUND:play()
  853. if DOESLOOP == true then
  854. NEWSOUND.Looped = true
  855. else
  856. repeat wait(1) until NEWSOUND.Playing == false
  857. NEWSOUND:remove()
  858. end
  859. end))
  860. return NEWSOUND
  861. end
  862.  
  863. function CFrameFromTopBack(at, top, back)
  864. local right = top:Cross(back)
  865. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  866. end
  867.  
  868. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  869. function WACKYEFFECT(Table)
  870. local TYPE = (Table.EffectType or "Sphere")
  871. local SIZE = (Table.Size or VT(1,1,1))
  872. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  873. local TRANSPARENCY = (Table.Transparency or 0)
  874. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  875. local CFRAME = (Table.CFrame or Torso.CFrame)
  876. local MOVEDIRECTION = (Table.MoveToPos or nil)
  877. local ROTATION1 = (Table.RotationX or 0)
  878. local ROTATION2 = (Table.RotationY or 0)
  879. local ROTATION3 = (Table.RotationZ or 0)
  880. local MATERIAL = (Table.Material or "Neon")
  881. local COLOR = (Table.Color or C3(1,1,1))
  882. local TIME = (Table.Time or 45)
  883. local SOUNDID = (Table.SoundID or nil)
  884. local SOUNDPITCH = (Table.SoundPitch or nil)
  885. local SOUNDVOLUME = (Table.SoundVolume or nil)
  886. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  887. local BOOMERANG = (Table.Boomerang or 0)
  888. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  889. coroutine.resume(coroutine.create(function()
  890. local PLAYSSOUND = false
  891. local SOUND = nil
  892. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  893. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  894. PLAYSSOUND = true
  895. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  896. end
  897. EFFECT.Color = COLOR
  898. local MSH = nil
  899. if TYPE == "Sphere" then
  900. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  901. elseif TYPE == "Block" or TYPE == "Box" then
  902. MSH = IT("BlockMesh",EFFECT)
  903. MSH.Scale = SIZE
  904. elseif TYPE == "Wave" then
  905. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  906. elseif TYPE == "Ring" then
  907. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  908. elseif TYPE == "Slash" then
  909. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  910. elseif TYPE == "Round Slash" then
  911. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  912. elseif TYPE == "Swirl" then
  913. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  914. elseif TYPE == "Skull" then
  915. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  916. elseif TYPE == "Crystal" then
  917. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  918. end
  919. if MSH ~= nil then
  920. local BOOMR1 = 1+BOOMERANG/50
  921. local BOOMR2 = 1+SIZEBOOMERANG/50
  922. local MOVESPEED = nil
  923. if MOVEDIRECTION ~= nil then
  924. if USEBOOMERANGMATH == true then
  925. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  926. else
  927. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  928. end
  929. end
  930. local GROWTH = nil
  931. if USEBOOMERANGMATH == true then
  932. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  933. else
  934. GROWTH = (SIZE - ENDSIZE)
  935. end
  936. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  937. if TYPE == "Block" then
  938. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  939. else
  940. EFFECT.CFrame = CFRAME
  941. end
  942. if USEBOOMERANGMATH == true then
  943. for LOOP = 1, TIME+1 do
  944. Swait()
  945. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  946. if TYPE == "Wave" then
  947. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  948. end
  949. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  950. if TYPE == "Block" then
  951. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  952. else
  953. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  954. end
  955. if MOVEDIRECTION ~= nil then
  956. local ORI = EFFECT.Orientation
  957. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  958. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  959. end
  960. end
  961. else
  962. for LOOP = 1, TIME+1 do
  963. Swait()
  964. MSH.Scale = MSH.Scale - GROWTH/TIME
  965. if TYPE == "Wave" then
  966. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  967. end
  968. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  969. if TYPE == "Block" then
  970. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  971. else
  972. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  973. end
  974. if MOVEDIRECTION ~= nil then
  975. local ORI = EFFECT.Orientation
  976. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  977. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  978. end
  979. end
  980. end
  981. EFFECT.Transparency = 1
  982. if PLAYSSOUND == false then
  983. EFFECT:remove()
  984. else
  985. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  986. EFFECT:remove()
  987. end
  988. else
  989. if PLAYSSOUND == false then
  990. EFFECT:remove()
  991. else
  992. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  993. EFFECT:remove()
  994. end
  995. end
  996. end))
  997. end
  998.  
  999. function MakeForm(PART,TYPE)
  1000. if TYPE == "Cyl" then
  1001. local MSH = IT("CylinderMesh",PART)
  1002. elseif TYPE == "Ball" then
  1003. local MSH = IT("SpecialMesh",PART)
  1004. MSH.MeshType = "Sphere"
  1005. elseif TYPE == "Wedge" then
  1006. local MSH = IT("SpecialMesh",PART)
  1007. MSH.MeshType = "Wedge"
  1008. end
  1009. end
  1010.  
  1011. Debris = game:GetService("Debris")
  1012.  
  1013. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1014. local DIRECTION = CF(StartPos,EndPos).lookVector
  1015. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1016. end
  1017.  
  1018. function OhnoItsAShotgun()
  1019. local SHOOTgun = CreatePart(3, Effects, "Fabric", 0, 1, BRICKC("Black"), "OhNoItsAShotgun", VT(0.25, 0.5, 5), true)
  1020. CreateMesh("SpecialMesh", SHOOTgun, "FileMesh", "3835506", "72012859", VT(0.9, 1.13, 1), VT(0,-0.3,0))
  1021. return SHOOTgun
  1022. end
  1023.  
  1024. function CamShake(SHAKE,TIMER)
  1025. coroutine.resume(coroutine.create(function()
  1026. local FADER = SHAKE/TIMER
  1027. for i = 1, TIMER do
  1028. wait()
  1029. Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  1030. end
  1031. Humanoid.CameraOffset = VT(0,0,0)
  1032. end))
  1033. end
  1034.  
  1035. --//=================================\\
  1036. --|| GUIS AND MISC
  1037. --\\=================================//
  1038. --[[
  1039. local SKILLTEXTCOLOR = C3(1,1,1)
  1040. local SKILLFONT = "SciFi"
  1041. local SKILLTEXTSIZE = 4]]--
  1042.  
  1043. --local ATTACKS = {"Conjour - C","Aerial Bombardament - V","Point Blank - B","Tripwire - F","Mend - M"}
  1044.  
  1045. --[[for i = 1, #ATTACKS do
  1046. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1047. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
  1048. SKILLTEXT.TextXAlignment = "Right"
  1049. SKILLTEXT.Rotation = i*3
  1050. end]]--
  1051.  
  1052. local BMUSIC = IT("Sound",RootPart)
  1053. local VOLUME = 99
  1054. local PITCH = 1
  1055. local SONGID = 390409627
  1056.  
  1057. --[[local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(1-0.20, 0, 0.75, 0), UD2(0.20, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar")
  1058. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
  1059. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  1060. Character.Health:remove()
  1061. HEALTHBAR.Rotation = (#ATTACKS*3)+3
  1062. local WHOAMI = CreateFrame(WEAPONGUI, 1, 1, UD2(1-0.26, 0, 0.69, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Ban")
  1063. WHOAMI.Rotation = (#ATTACKS*3)+3
  1064. CreateLabel(WHOAMI, "Gunjourer", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes")]]--
  1065.  
  1066. Humanoid.Died:Connect(function()
  1067. RootPart:remove()
  1068. --CreateSound(160718677, Head, 4, 1, false)
  1069. --BMUSIC:remove()
  1070. Effects:remove()
  1071. --WEAPONGUI:remove()
  1072. end)
  1073. local GRUNTS = {1146556975,1146556706,1278006076}
  1074.  
  1075. function showhealth()
  1076. local showhp = coroutine.wrap(function()
  1077. for i,v in pairs(game.Players:GetChildren()) do
  1078. if v.PlayerGui:FindFirstChild("hpbarboss")~= nil then
  1079. v.PlayerGui:FindFirstChild("hpbarboss"):destroy()
  1080. end
  1081. local naeeym2 = Instance.new("ScreenGui",v.PlayerGui)
  1082. naeeym2.Name = "hpbarboss"
  1083. local bar = Instance.new("Frame",naeeym2)
  1084. bar.Position = UDim2.new(0,0,0.9,0)
  1085. bar.Size = UDim2.new(1,0,0.1,0)
  1086. bar.BackgroundColor3 = Color3.new(0.01,0.01,0.01)
  1087. bar.BorderColor3 = Color3.new(0,0,0)
  1088. bar.BorderSizePixel = 3
  1089. bar.BackgroundTransparency = 0.5
  1090. local curhp = Instance.new("Frame",bar)
  1091. curhp.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  1092. curhp.BackgroundColor3 = Color3.new(0.75,0,0)
  1093. curhp.BorderSizePixel = 0
  1094. curhp.BackgroundTransparency = 0.25
  1095. local shd = Instance.new("Frame",curhp)
  1096. shd.Position = UDim2.new(0,0,0.5,0)
  1097. shd.Size = UDim2.new(1,0,0.5,0)
  1098. shd.BackgroundColor3 = Color3.new(0,0,0)
  1099. shd.BorderSizePixel = 0
  1100. shd.BackgroundTransparency = 0.75
  1101. local tecks2 = Instance.new("TextLabel",naeeym2)
  1102. tecks2.BackgroundTransparency = 1
  1103. tecks2.Font = "SciFi"
  1104. tecks2.TextScaled = true
  1105. tecks2.TextStrokeTransparency = 0
  1106. tecks2.TextColor3 = Color3.new(1,1,1)
  1107. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1108. tecks2.Position = UDim2.new(0,0,0.9,0)
  1109. tecks2.Size = UDim2.new(1,0,0.1,0)
  1110. tecks2.Text = math.floor(Humanoid.Health).. " | " ..math.floor(Humanoid.MaxHealth)
  1111. local txt = Instance.new("TextLabel",naeeym2)
  1112. txt.BackgroundTransparency = 1
  1113. txt.Font = "SciFi"
  1114. txt.TextSize = 60
  1115. txt.TextScaled = true
  1116. txt.TextStrokeTransparency = 0.75
  1117. txt.TextColor3 = Color3.new(0,0,0)
  1118. txt.TextStrokeColor3 = Color3.new(1,1,1)
  1119. txt.Position = UDim2.new(0,0,0.9,0)
  1120. txt.Size = UDim2.new(1,0,0.1,0)
  1121. txt.Text = string.upper(script.Parent.Name)
  1122. txt.TextXAlignment = "Left"
  1123. wait(2)
  1124. naeeym2:Destroy()
  1125. end
  1126. end)
  1127. showhp()
  1128. end
  1129.  
  1130.  
  1131. --//=================================\\
  1132. --|| DAMAGING
  1133. --\\=================================//
  1134.  
  1135. function ApplyDamage(Humanoid,Damage)
  1136. Damage = Damage * DAMAGEMULTIPLIER
  1137. if Humanoid.Health < 2000 then
  1138. if Humanoid.Health - Damage > 0 then
  1139. Humanoid.Health = Humanoid.Health - Damage
  1140. else
  1141. Humanoid.Parent:BreakJoints()
  1142. end
  1143. else
  1144. Humanoid.Parent:BreakJoints()
  1145. end
  1146. end
  1147.  
  1148. function PAW_HAHA(LOC,AIMTO,OUCH)
  1149. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1.4,1.4,1.4), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = 138083993, SoundPitch = MRANDOM(8,12)/13, SoundVolume = 2})
  1150. for i = 1, 4 do
  1151. local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
  1152. local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,MRANDOM(5,75)/10).p
  1153. local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
  1154. local DISTANCE = (POS - LOC).Magnitude
  1155. if HIT then
  1156. local HUM = nil
  1157. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1158. HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
  1159. elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1160. HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1161. end
  1162. if HUM then
  1163. ApplyDamage(HUM,OUCH+MRANDOM(-3,3))
  1164. end
  1165. end
  1166. WACKYEFFECT({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 4})
  1167. WACKYEFFECT({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.7,0.7,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1168. end
  1169. end
  1170.  
  1171. --//=================================\\
  1172. --|| ATTACK FUNCTIONS AND STUFF
  1173. --\\=================================//
  1174.  
  1175. function Conjour()
  1176. local SHOOT = OhnoItsAShotgun()
  1177. local CFRAME = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  1178. local ORI = 90
  1179. SHOOT.CFrame = CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(0), RAD(ORI), RAD(0))
  1180. local GOODRIDDANCE = false
  1181. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  1182. coroutine.resume(coroutine.create(function()
  1183. repeat
  1184. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(ORI), RAD(0), RAD(0)),0.25)
  1185. Swait()
  1186. until GOODRIDDANCE == true
  1187. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1188. SHOOT.CanCollide = true
  1189. SHOOT.Anchored = false
  1190. SHOOT.Parent = workspace
  1191. local bv = Instance.new("BodyVelocity",SHOOT)
  1192. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1193. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1194. Debris:AddItem(bv,0.1)
  1195. wait(5)
  1196. for i = 1, 45 do
  1197. Swait()
  1198. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1199. end
  1200. SHOOT:remove()
  1201. end))
  1202. for i = 1, 15 do
  1203. Swait()
  1204. SHOOT.Transparency = SHOOT.Transparency - 1/15
  1205. ORI = ORI - 3
  1206. end
  1207. for i = 1, 15 do
  1208. Swait()
  1209. ORI = ORI - 3
  1210. end
  1211. wait(MRANDOM(2,8)/10)
  1212. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,14)
  1213. CamShake(4,4)
  1214. GOODRIDDANCE = true
  1215. end
  1216. function Aerial_Bombardament()
  1217. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1218. if HITFLOOR then
  1219. ATTACK = true
  1220. Rooted = true
  1221. local bv = Instance.new("BodyVelocity")
  1222. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1223. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,-2).p).lookVector*175
  1224. bv.Parent = RootPart
  1225. local GYRO = IT("BodyGyro",RootPart)
  1226. GYRO.D = 2
  1227. GYRO.P = 20000
  1228. GYRO.MaxTorque = VT(0,4000000,0)
  1229. GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
  1230. CreateSound(145486992,Torso,10,0.85,false)
  1231. for i=0, 0.05, 0.1 / Animation_Speed do
  1232. Swait()
  1233. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  1234. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  1235. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1236. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1237. if ANIM == "Fall" or ANIM == "Jump" then
  1238. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1239. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1240. else
  1241. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1242. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1243. end
  1244. end
  1245. bv:Remove()
  1246. local E = 360/15
  1247. for i = 1, 15 do
  1248. Swait()
  1249. WACKYEFFECT({Time = 10, EffectType = "Wave", Size = VT(8,1,8), Size2 = VT(2,15,2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1250. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
  1251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1254. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1256. end
  1257. WACKYEFFECT({EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(17/255,17/255,17/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1258. for i = 1, 15 do
  1259. coroutine.resume(coroutine.create(function()
  1260. Conjour()
  1261. end))
  1262. end
  1263. local LANDED = nil
  1264. local POS = nil
  1265. coroutine.resume(coroutine.create(function()
  1266. repeat
  1267. Swait()
  1268. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1269. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1270. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1271. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1272. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1273. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1274. until LANDED ~= nil
  1275. end))
  1276. repeat
  1277. Swait()
  1278. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
  1279. if HITFLOOR then
  1280. LANDED = HITFLOOR
  1281. POS = HITPOS
  1282. end
  1283. until LANDED ~= nil
  1284. GYRO:remove()
  1285. CamShake(6,3)
  1286. CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
  1287. ATTACK = false
  1288. Rooted = false
  1289. end
  1290. end
  1291. function Point_Blank()
  1292. ATTACK = true
  1293. Rooted = true
  1294. local HIT = nil
  1295. local HUMAN = nil
  1296. local ROOT = nil
  1297. CreateSound(145486992,Torso,10,0.85,false)
  1298. for i=0, 0.5, 0.1 / Animation_Speed do
  1299. Swait()
  1300. if HIT ~= nil then
  1301. break
  1302. end
  1303. for index, CHILD in pairs(workspace:GetDescendants()) do
  1304. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1305. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1306. if HUM then
  1307. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1308. if TORSO and HUM.Health > 0 then
  1309. if (TORSO.Position - RootPart.CFrame*CF(0,0,-2).p).Magnitude <= 2 then
  1310. ROOT = TORSO
  1311. HUMAN = HUM
  1312. HIT = CHILD
  1313. end
  1314. end
  1315. end
  1316. end
  1317. end
  1318. RootPart.CFrame = Clerp(RootPart.CFrame, RootPart.CFrame, 0.07) * CF(0,0,-1)
  1319. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1320. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1321. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1322. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(135), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1323. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1324. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-5), RAD(-80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1325. end
  1326. if HIT then
  1327. local bv = Instance.new("BodyVelocity")
  1328. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1329. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,2).p).lookVector*75
  1330. bv.Parent = RootPart
  1331. Debris:AddItem(bv,0.1)
  1332. coroutine.resume(coroutine.create(function()
  1333. local GUNS = {}
  1334. for i = 1, 4 do
  1335. local SHOOT = OhnoItsAShotgun()
  1336. local CFRAME = CF(ROOT.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  1337. SHOOT.CFrame = CF(CFRAME.p,ROOT.Position)
  1338. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  1339. table.insert(GUNS,SHOOT)
  1340. end
  1341. for i = 1, 25 do
  1342. Swait()
  1343. for E = 1, #GUNS do
  1344. GUNS[E].Transparency = GUNS[E].Transparency - 1/25
  1345. end
  1346. end
  1347. wait(0.1)
  1348. CamShake(8,15)
  1349. for E = 1, #GUNS do
  1350. local SHOOT = GUNS[E]
  1351. coroutine.resume(coroutine.create(function()
  1352. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,SHOOT.CFrame*CF(0,0,-15).p,17)
  1353. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1354. SHOOT.CanCollide = true
  1355. SHOOT.Anchored = false
  1356. SHOOT.Parent = workspace
  1357. local bv = Instance.new("BodyVelocity",SHOOT)
  1358. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1359. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1360. Debris:AddItem(bv,0.1)
  1361. wait(5)
  1362. for i = 1, 45 do
  1363. Swait()
  1364. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1365. end
  1366. end))
  1367. wait()
  1368. end
  1369. end))
  1370. CreateSound(GRUNTS[MRANDOM(1,#GRUNTS)], Torso, 6, 1.1, false)
  1371. for i=0, 1, 0.1 / Animation_Speed do
  1372. Swait()
  1373. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1374. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1375. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1376. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1377. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1378. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1379. end
  1380. end
  1381. ATTACK = false
  1382. Rooted = false
  1383. end
  1384. function Tripwire()
  1385. ATTACK = true
  1386. Rooted = true
  1387. TRIPWIRE = true
  1388. coroutine.resume(coroutine.create(function()
  1389. repeat
  1390. Swait()
  1391. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1392. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1393. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1394. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1395. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1396. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1397. until ATTACK == false
  1398. end))
  1399. local SHOOT = OhnoItsAShotgun()
  1400. local CFRAME = CF(-1.5,0,1.5) * ANGLES(RAD(0), RAD(45), RAD(0))
  1401. SHOOT.CFrame = Torso.CFrame*CFRAME
  1402. coroutine.resume(coroutine.create(function()
  1403. repeat
  1404. SHOOT.CFrame = Clerp(SHOOT.CFrame,Torso.CFrame*CFRAME,0.1)
  1405. Swait()
  1406. until HOLD == true
  1407. TRIPWIRE = false
  1408. local LOC = SHOOT.CFrame*CF(0,3,0).p
  1409. for i = 1, 15 do
  1410. Swait()
  1411. SHOOT.Transparency = SHOOT.Transparency - 1/15
  1412. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.3)
  1413. end
  1414. SHOOT.Transparency = 0
  1415. for i = 1, 2 do
  1416. Swait()
  1417. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.5)
  1418. end
  1419. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,10)
  1420. CamShake(8,9)
  1421. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1422. SHOOT.CanCollide = true
  1423. SHOOT.Anchored = false
  1424. SHOOT.Parent = workspace
  1425. local bv = Instance.new("BodyVelocity",SHOOT)
  1426. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1427. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1428. Debris:AddItem(bv,0.1)
  1429. wait(5)
  1430. for i = 1, 45 do
  1431. Swait()
  1432. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1433. end
  1434. end))
  1435. CreateSound(233856115, SHOOT, 1.2, (MRANDOM(8,12)/10)-0.3, false)
  1436. for i = 1, 15 do
  1437. Swait()
  1438. SHOOT.Transparency = SHOOT.Transparency - 1/150
  1439. end
  1440. ATTACK = false
  1441. Rooted = false
  1442. end
  1443. function Mend()
  1444. if Humanoid.Health < Humanoid.MaxHealth - 150 then
  1445. ATTACK = true
  1446. Rooted = true
  1447. for i=0, 0.25, 0.1 / Animation_Speed do
  1448. Swait()
  1449. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1450. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1453. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1454. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1455. end
  1456. local LOOP = 0
  1457. repeat
  1458. LOOP = LOOP + 1
  1459. Swait()
  1460. Humanoid.Health = Humanoid.Health + 1
  1461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.4) * ANGLES(RAD(55), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.7 - 0.4 * SIN(LOOP / 4)) * ANGLES(RAD(50 + 25 * COS(LOOP / 4)), RAD(0), RAD(65)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1465. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1467. until KEYHOLD == false or Humanoid.Health == Humanoid.MaxHealth
  1468. for i=0, 0.15, 0.1 / Animation_Speed do
  1469. Swait()
  1470. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1471. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1472. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1473. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1474. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.2, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1475. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1476. end
  1477. ATTACK = false
  1478. Rooted = false
  1479. end
  1480. end
  1481. function Taunt()
  1482. ATTACK = true
  1483. Rooted = true
  1484. local L = CreateSound(1278007556,Head,8,1.1,false)
  1485. L.EmitterSize = 25
  1486. for i = 1, 20 do
  1487. Swait()
  1488. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1489. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1490. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1491. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1492. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1493. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1494. end
  1495. for i = 1, 40 do
  1496. Swait()
  1497. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1498. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  1499. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1500. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1501. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1502. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1503. end
  1504. ATTACK = false
  1505. Rooted = false
  1506. end
  1507. function DoubleJump()
  1508. ATTACK = true
  1509. Rooted = false
  1510. Torso.Velocity = Vector3.new(Torso.Velocity.X,125,Torso.Velocity.Z)
  1511. CreateSound(159882477, Head, 4, 1, false)
  1512. CreateSound(1112042117, Torso, 2, 1, false)
  1513. local E = 360/12
  1514. for i=1, 12 do
  1515. Swait()
  1516. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2.5 / Animation_Speed)
  1517. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1518. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1519. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1520. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1521. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1522. end
  1523. ATTACK = false
  1524. Rooted = false
  1525. end
  1526.  
  1527. --//=================================\\
  1528. --|| ASSIGN THINGS TO KEYS
  1529. --\\=================================//
  1530.  
  1531. function MouseDown(Mouse)
  1532. HOLD = true
  1533. if ATTACK == false then
  1534. end
  1535. end
  1536.  
  1537. function MouseUp(Mouse)
  1538. HOLD = false
  1539. end
  1540.  
  1541. local READYTODOUBLE = false
  1542. local DOUBLED = false
  1543.  
  1544. --[[function KeyDown(Key)
  1545. KEYHOLD = true
  1546. if Key == "c" and ATTACK == false then
  1547. Conjour()
  1548. end
  1549.  
  1550. if Key == "v" and ATTACK == false then
  1551. Aerial_Bombardament()
  1552. end
  1553.  
  1554. if Key == "b" and ATTACK == false then
  1555. Point_Blank()
  1556. end
  1557.  
  1558. if Key == "f" and ATTACK == false and TRIPWIRE == false and ANIM == "Idle" then
  1559. Tripwire()
  1560. end
  1561.  
  1562. if Key == "m" and ATTACK == false then
  1563. Mend()
  1564. end
  1565.  
  1566. if Key == "t" and ATTACK == false then
  1567. Taunt()
  1568. end
  1569.  
  1570. if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLED == false then
  1571. READYTODOUBLE = false
  1572. DOUBLED = true
  1573. DoubleJump()
  1574. end
  1575. end
  1576.  
  1577. function KeyUp(Key)
  1578. KEYHOLD = false
  1579. end
  1580.  
  1581. Mouse.Button1Down:connect(function(NEWKEY)
  1582. MouseDown(NEWKEY)
  1583. end)
  1584. Mouse.Button1Up:connect(function(NEWKEY)
  1585. MouseUp(NEWKEY)
  1586. end)
  1587. Mouse.KeyDown:connect(function(NEWKEY)
  1588. KeyDown(NEWKEY)
  1589. end)
  1590. Mouse.KeyUp:connect(function(NEWKEY)
  1591. KeyUp(NEWKEY)
  1592. end)]]--
  1593.  
  1594. --//=================================\\
  1595. --\\=================================//
  1596.  
  1597. function unanchor()
  1598. for _, c in pairs(Character:GetChildren()) do
  1599. if c:IsA("BasePart") and c ~= RootPart then
  1600. c.Anchored = false
  1601. end
  1602. end
  1603. if UNANCHOR == true then
  1604. RootPart.Anchored = false
  1605. else
  1606. RootPart.Anchored = true
  1607. end
  1608. end
  1609.  
  1610. --//=================================\\
  1611. --|| WRAP THE WHOLE SCRIPT UP
  1612. --\\=================================//
  1613.  
  1614. coroutine.resume(coroutine.create(function()
  1615. wait(1)
  1616. local randat = math.random(1,4)
  1617. while true do
  1618. Swait(math.random(20,100))
  1619. if ATTACK == false then
  1620. if randat == 1 then
  1621. Aerial_Bombardament()
  1622. elseif randat == 2 then
  1623. Point_Blank()
  1624. elseif randat == 3 then
  1625. Tripwire()
  1626. elseif randat == 4 and Humanoid.Health < Humanoid.MaxHealth then
  1627. Mend()
  1628. end
  1629. end
  1630. randat = math.random(1,4)
  1631. end
  1632. end))
  1633.  
  1634. Humanoid.Changed:connect(function(Jump)
  1635. if Jump == "Jump" and (Disable_Jump == true) then
  1636. Humanoid.Jump = false
  1637. elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
  1638. wait(0.1)
  1639. READYTODOUBLE = true
  1640. end
  1641. end)
  1642.  
  1643. while true do
  1644. Swait()
  1645. --script.Parent = WEAPONGUI
  1646. ANIMATE.Parent = nil
  1647. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1648. v:Stop();
  1649. end
  1650. SINE = SINE + CHANGE
  1651. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1652. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1653. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1654. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  1655. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1656. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1657. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1658. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1659. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1660. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1661. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1662. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1663. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1664. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1665. end
  1666. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1667. ANIM = "Jump"
  1668. if ATTACK == false then
  1669. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1670. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1671. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1672. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1673. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1674. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1675. end
  1676. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1677. ANIM = "Fall"
  1678. if ATTACK == false then
  1679. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1680. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1681. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1682. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1683. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1684. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1685. end
  1686. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1687. ANIM = "Idle"
  1688. DOUBLED = false
  1689. READYTODOUBLE = false
  1690. if ATTACK == false then
  1691. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1692. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1693. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1694. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1695. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1696. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1697. end
  1698. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1699. ANIM = "Walk"
  1700. DOUBLED = false
  1701. READYTODOUBLE = false
  1702. if ATTACK == false then
  1703. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1704. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1705. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1706. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1707. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1708. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1709. end
  1710. end
  1711. unanchor()
  1712. if Rooted == false then
  1713. Disable_Jump = false
  1714. Humanoid.WalkSpeed = Speed
  1715. elseif Rooted == true then
  1716. Disable_Jump = true
  1717. Humanoid.WalkSpeed = 0
  1718. end
  1719. BMUSIC.SoundId = "rbxassetid://"..SONGID
  1720. BMUSIC.Looped = true
  1721. BMUSIC.Pitch = PITCH
  1722. BMUSIC.Volume = VOLUME
  1723. BMUSIC.Playing = true
  1724. if BMUSIC.Parent ~= RootPart then
  1725. BMUSIC = IT("Sound",RootPart)
  1726. end
  1727. --Humanoid.Name = "NONHUM"
  1728. --HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1729. --HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1730. end
  1731.  
  1732. --//=================================\\
  1733. --\\=================================//
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739. --//====================================================\\--
  1740. --|| END OF SCRIPT
  1741. --\\====================================================//--
  1742. end))
  1743. Script34.Name = "ragdollDeath"
  1744. Script34.Parent = Model3
  1745. table.insert(cors,sandbox(Script34,function()
  1746. repeat wait() until script.Parent:IsA("Model")
  1747. local char = script.Parent
  1748. local R6 = require(script:WaitForChild("R6"))
  1749. local R15 = require(script:WaitForChild("R15"))
  1750. local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  1751. local hum = char:WaitForChild("Humanoid")
  1752. local autoLoads = game:GetService("Players").CharacterAutoLoads
  1753.  
  1754. local function setNetworkOwner()
  1755. for i, bp in pairs(char:GetChildren()) do
  1756. if bp:IsA("BasePart") and bp:CanSetNetworkOwnership() then
  1757. bp:SetNetworkOwner(plr)
  1758. end
  1759. end
  1760. end
  1761.  
  1762. hum.Died:Connect(function()
  1763. if hum.RigType == Enum.HumanoidRigType.R6 then
  1764. R6(char)
  1765. setNetworkOwner()
  1766. if autoLoads == true then
  1767. delay(3, function()
  1768. if not plr.Character then
  1769. plr:LoadCharacter()
  1770. end
  1771. end)
  1772. end
  1773. else
  1774. R15(char)
  1775. setNetworkOwner()
  1776. if autoLoads == true then
  1777. delay(3, function()
  1778. if not plr.Character then
  1779. plr:LoadCharacter()
  1780. end
  1781. end)
  1782. end
  1783. end
  1784. end)
  1785.  
  1786. end))
  1787. ModuleScript35.Name = "R6"
  1788. ModuleScript35.Parent = Script34
  1789. table.insert(cors,sandbox(ModuleScript35,function()
  1790. -- RAGDOLL A R6 CHARACTER.
  1791.  
  1792. local function getAttachment0(attachmentName, char)
  1793. for _,child in next,char:GetChildren() do
  1794. local attachment = child:FindFirstChild(attachmentName)
  1795. if attachment then
  1796. return attachment
  1797. end
  1798. end
  1799. end
  1800.  
  1801. local function ragdollPlayer(char)
  1802. local head = char["Head"]
  1803. local hum = char:WaitForChild("Humanoid")
  1804. local leftarm = char["Left Arm"]
  1805. local leftleg = char["Left Leg"]
  1806. local rightleg = char["Right Leg"]
  1807. local rightarm = char["Right Arm"]
  1808. local torso = char.Torso
  1809. hum.PlatformStand = true
  1810. local root =char:FindFirstChild("HumanoidRootPart")
  1811. if root ~= nil then
  1812. root:Destroy()
  1813. end
  1814. local rootA =Instance.new("Attachment")
  1815. local HeadA = Instance.new("Attachment")
  1816. local LeftArmA = Instance.new("Attachment")
  1817. local LeftLegA = Instance.new("Attachment")
  1818. local RightArmA = Instance.new("Attachment")
  1819. local RightLegA = Instance.new("Attachment")
  1820. local TorsoA = Instance.new("Attachment")
  1821. local TorsoA1 = Instance.new("Attachment")
  1822. local TorsoA2 = Instance.new("Attachment")
  1823. local TorsoA3 = Instance.new("Attachment")
  1824. local TorsoA4 = Instance.new("Attachment")
  1825. local TorsoA5 = Instance.new("Attachment")
  1826. local function set1()
  1827. HeadA.Name = "HeadA"
  1828. HeadA.Parent = head
  1829. HeadA.Position = Vector3.new(0, -0.5, 0)
  1830. HeadA.Rotation = Vector3.new(0, 0, 0)
  1831. HeadA.Axis = Vector3.new(1, 0, 0)
  1832. HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
  1833. LeftArmA.Name = "LeftArmA"
  1834. LeftArmA.Parent = leftarm
  1835. LeftArmA.Position = Vector3.new(0.5, 1, 0)
  1836. LeftArmA.Rotation = Vector3.new(0, 0, 0)
  1837. LeftArmA.Axis = Vector3.new(1, 0, 0)
  1838. LeftArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  1839. LeftLegA.Name = "LeftLegA"
  1840. LeftLegA.Parent = leftleg
  1841. LeftLegA.Position = Vector3.new(0, 1, 0)
  1842. LeftLegA.Rotation = Vector3.new(0, 0, 0)
  1843. LeftLegA.Axis = Vector3.new(1, 0, 0)
  1844. LeftLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  1845. RightArmA.Name = "RightArmA"
  1846. RightArmA.Parent = rightarm
  1847. RightArmA.Position = Vector3.new(-0.5, 1, 0)
  1848. RightArmA.Rotation = Vector3.new(0, 0, 0)
  1849. RightArmA.Axis = Vector3.new(1, 0, 0)
  1850. RightArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  1851. RightLegA.Name = "RightLegA"
  1852. RightLegA.Parent = rightleg
  1853. RightLegA.Position = Vector3.new(0, 1, 0)
  1854. RightLegA.Rotation = Vector3.new(0, 0, 0)
  1855. RightLegA.Axis = Vector3.new(1, 0, 0)
  1856. RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  1857. rootA.Name= "rootA"
  1858. rootA.Parent = root
  1859. rootA.Position = Vector3.new(0, 0, 0)
  1860. rootA.Rotation = Vector3.new(0, 90, 0)
  1861. rootA.Axis = Vector3.new(0, 0, -1)
  1862. rootA.SecondaryAxis = Vector3.new(0, 1, 0)
  1863. end
  1864. local function set2()
  1865. TorsoA.Name = "TorsoA"
  1866. TorsoA.Parent = torso
  1867. TorsoA.Position = Vector3.new(0.5, -1, 0)
  1868. TorsoA.Rotation = Vector3.new(0, 0, 0)
  1869. TorsoA.Axis = Vector3.new(1, 0, 0)
  1870. TorsoA.SecondaryAxis = Vector3.new(0, 1, 0)
  1871. TorsoA1.Name = "TorsoA1"
  1872. TorsoA1.Parent = torso
  1873. TorsoA1.Position = Vector3.new(-0.5, -1, 0)
  1874. TorsoA1.Rotation = Vector3.new(0, 0, 0)
  1875. TorsoA1.Axis = Vector3.new(1, 0, 0)
  1876. TorsoA1.SecondaryAxis = Vector3.new(0, 1, 0)
  1877. TorsoA2.Name = "TorsoA2"
  1878. TorsoA2.Parent = torso
  1879. TorsoA2.Position = Vector3.new(-1, 1, 0)
  1880. TorsoA2.Rotation = Vector3.new(0, 0, 0)
  1881. TorsoA2.Axis = Vector3.new(1, 0, 0)
  1882. TorsoA2.SecondaryAxis = Vector3.new(0, 1, 0)
  1883. TorsoA3.Name = "TorsoA3"
  1884. TorsoA3.Parent = torso
  1885. TorsoA3.Position = Vector3.new(1, 1, 0)
  1886. TorsoA3.Rotation = Vector3.new(0, 0, 0)
  1887. TorsoA3.Axis = Vector3.new(1, 0, 0)
  1888. TorsoA3.SecondaryAxis = Vector3.new(0, 1, 0)
  1889. TorsoA4.Name = "TorsoA4"
  1890. TorsoA4.Parent = torso
  1891. TorsoA4.Position = Vector3.new(0, 1, 0)
  1892. TorsoA4.Rotation = Vector3.new(0, 0, 0)
  1893. TorsoA4.Axis = Vector3.new(1, 0, 0)
  1894. TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
  1895. TorsoA5.Name = "TorsoA5"
  1896. TorsoA5.Parent = torso
  1897. TorsoA5.Position = Vector3.new(0, 0, 0)
  1898. TorsoA5.Rotation = Vector3.new(0, 90, 0)
  1899. TorsoA5.Axis = Vector3.new(0, 0, -1)
  1900. TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
  1901. end
  1902. spawn(set1)
  1903. spawn(set2)
  1904. --[[
  1905. local HA = Instance.new("HingeConstraint")
  1906. HA.Parent = head
  1907. HA.Attachment0 = HeadA
  1908. HA.Attachment1 = TorsoA4
  1909. HA.Enabled = true
  1910. HA.LimitsEnabled=true
  1911. HA.LowerAngle=0
  1912. HA.UpperAngle=0
  1913. --]]
  1914. local LAT = Instance.new("BallSocketConstraint")
  1915. LAT.Parent = leftarm
  1916. LAT.Attachment0 = LeftArmA
  1917. LAT.Attachment1 = TorsoA2
  1918. LAT.Enabled = true
  1919. LAT.LimitsEnabled=true
  1920. LAT.UpperAngle=90
  1921. local RAT = Instance.new("BallSocketConstraint")
  1922. RAT.Parent = rightarm
  1923. RAT.Attachment0 = RightArmA
  1924. RAT.Attachment1 = TorsoA3
  1925. RAT.Enabled = true
  1926. RAT.LimitsEnabled=false
  1927. RAT.UpperAngle=90
  1928. local HA = Instance.new("BallSocketConstraint")
  1929. HA.Parent = head
  1930. HA.Attachment0 = HeadA
  1931. HA.Attachment1 = TorsoA4
  1932. HA.Enabled = true
  1933. HA.LimitsEnabled = true
  1934. HA.TwistLimitsEnabled = true
  1935. HA.UpperAngle = 74
  1936. local TLL = Instance.new("BallSocketConstraint")
  1937. TLL.Parent = torso
  1938. TLL.Attachment0 = TorsoA1
  1939. TLL.Attachment1 = LeftLegA
  1940. TLL.Enabled = true
  1941. TLL.LimitsEnabled=true
  1942. TLL.UpperAngle=90
  1943. local TRL = Instance.new("BallSocketConstraint")
  1944. TRL.Parent = torso
  1945. TRL.Attachment0 = TorsoA
  1946. TRL.Attachment1 = RightLegA
  1947. TRL.Enabled = true
  1948. TRL.LimitsEnabled=true
  1949. TRL.UpperAngle=90
  1950. local RTA = Instance.new("BallSocketConstraint")
  1951. RTA.Parent = root
  1952. RTA.Attachment0 = rootA
  1953. RTA.Attachment1 = TorsoA5
  1954. RTA.Enabled = true
  1955. RTA.LimitsEnabled=true
  1956. RTA.UpperAngle=0
  1957. head.Velocity = head.CFrame.p * CFrame.new(0, -41, 0).p
  1958. for _,child in next,char:GetChildren() do
  1959. if child:IsA("Accoutrement") then
  1960. for _,part in next,child:GetChildren() do
  1961. if part:IsA("BasePart") then
  1962. part.Parent = char
  1963. child:remove()
  1964. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1965. local attachment0 = getAttachment0(attachment1.Name, char)
  1966. if attachment0 and attachment1 then
  1967. local constraint = Instance.new("HingeConstraint")
  1968. constraint.Attachment0 = attachment0
  1969. constraint.Attachment1 = attachment1
  1970. constraint.LimitsEnabled = true
  1971. constraint.UpperAngle = 0
  1972. constraint.LowerAngle = 0
  1973. constraint.Parent = char
  1974. end
  1975. end
  1976. end
  1977. end
  1978. end
  1979. end
  1980.  
  1981. return ragdollPlayer
  1982. end))
  1983. ModuleScript36.Name = "R15"
  1984. ModuleScript36.Parent = Script34
  1985. table.insert(cors,sandbox(ModuleScript36,function()
  1986. local function recurse(root,callback,i)
  1987. i= i or 0
  1988. for _,v in pairs(root:GetChildren()) do
  1989. i = i + 1
  1990. callback(i,v)
  1991.  
  1992. if #v:GetChildren() > 0 then
  1993. i = recurse(v,callback,i)
  1994. end
  1995. end
  1996.  
  1997. return i
  1998. end
  1999.  
  2000. local function ragdollPlayer(character)
  2001.  
  2002. local function ragdollJoint(part0, part1, attachmentName, className, properties)
  2003. attachmentName = attachmentName.."RigAttachment"
  2004. local constraint = Instance.new(className.."Constraint")
  2005. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  2006. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  2007. constraint.Name = "RagdollConstraint"..part1.Name
  2008. for _,propertyData in next,properties or {} do
  2009. constraint[propertyData[1]] = propertyData[2]
  2010. end
  2011. constraint.Parent = character
  2012. end
  2013.  
  2014. local function getAttachment0(attachmentName)
  2015. local attachment = character:FindFirstChild(attachmentName, true)
  2016. if attachment then
  2017. return attachment
  2018. end
  2019. end
  2020.  
  2021. local camera = workspace.CurrentCamera
  2022. if camera.CameraSubject == character.Humanoid then--If developer isn't controlling camera
  2023. camera.CameraSubject = character.UpperTorso
  2024. end
  2025. --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process
  2026. character.HumanoidRootPart.Anchored = true
  2027. character.HumanoidRootPart.CanCollide = false
  2028.  
  2029. --Helps to fix constraint spasms
  2030. recurse(character, function(_,v)
  2031. if v:IsA("Attachment") then
  2032. v.Axis = Vector3.new(0, 1, 0)
  2033. v.SecondaryAxis = Vector3.new(0, 0, 1)
  2034. v.Rotation = Vector3.new(0, 0, 0)
  2035. end
  2036. end)
  2037.  
  2038. ragdollJoint(character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  2039. {"LimitsEnabled",true};
  2040. {"UpperAngle",5};
  2041. })
  2042. ragdollJoint(character.UpperTorso, character.Head, "Neck", "BallSocket", {
  2043. {"LimitsEnabled",true};
  2044. {"UpperAngle",15};
  2045. })
  2046.  
  2047. local handProperties = {
  2048. {"LimitsEnabled", true};
  2049. {"UpperAngle",0};
  2050. {"LowerAngle",0};
  2051. }
  2052. ragdollJoint(character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  2053. ragdollJoint(character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  2054.  
  2055. local shinProperties = {
  2056. {"LimitsEnabled", true};
  2057. {"UpperAngle", 0};
  2058. {"LowerAngle", -75};
  2059. }
  2060. ragdollJoint(character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  2061. ragdollJoint(character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  2062.  
  2063. local footProperties = {
  2064. {"LimitsEnabled", true};
  2065. {"UpperAngle", 15};
  2066. {"LowerAngle", -45};
  2067. }
  2068. ragdollJoint(character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  2069. ragdollJoint(character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  2070.  
  2071. --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped
  2072. ragdollJoint(character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  2073. ragdollJoint(character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  2074. ragdollJoint(character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  2075. ragdollJoint(character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  2076. ragdollJoint(character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  2077. ragdollJoint(character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  2078. for _,child in next,character:GetChildren() do
  2079. if child:IsA("Accoutrement") then
  2080. for _,part in next,child:GetChildren() do
  2081. if part:IsA("BasePart") then
  2082. part.Parent = character
  2083. child:remove()
  2084. local attachment1 = part:FindFirstChildOfClass("Attachment")
  2085. local attachment0 = getAttachment0(attachment1.Name, character)
  2086. if attachment0 and attachment1 then
  2087. local constraint = Instance.new("HingeConstraint")
  2088. constraint.Attachment0 = attachment0
  2089. constraint.Attachment1 = attachment1
  2090. constraint.LimitsEnabled = true
  2091. constraint.UpperAngle = 0
  2092. constraint.LowerAngle = 0
  2093. constraint.Parent = part
  2094. end
  2095. end
  2096. end
  2097. end
  2098. end
  2099. end
  2100.  
  2101. return ragdollPlayer
  2102. end))
  2103. Script37.Name = "Follow"
  2104. Script37.Parent = Model3
  2105. table.insert(cors,sandbox(Script37,function()
  2106. function findNearestTorso(pos)
  2107. local list = game.Workspace:children()
  2108. local torso = nil
  2109. local dist = 1000
  2110. local temp = nil
  2111. local detecttea = nil
  2112. local human = nil
  2113. local temp2 = nil
  2114. for x = 1, #list do
  2115. temp2 = list[x]
  2116. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  2117. detecttea = temp2:findFirstChild("enemyteam")
  2118. temp = temp2:findFirstChild("Torso")
  2119. human = temp2:findFirstChildOfClass("Humanoid")
  2120. if (temp ~= nil) and (human ~= nil) and (detecttea == nil) and (human.Health > 0) then
  2121. if (temp.Position - pos).magnitude < dist then
  2122. torso = temp
  2123. dist = (temp.Position - pos).magnitude
  2124. end
  2125. end
  2126. end
  2127. end
  2128. return torso
  2129. end
  2130. --wait(math.random(0,5)/10)
  2131. while true do
  2132. wait(0.5)
  2133. local target = findNearestTorso(script.Parent.Torso.Position)
  2134. if target ~= nil then
  2135. script.Parent.Humanoid:MoveTo(target.Position, target)
  2136. end
  2137. end
  2138. end))
  2139. StringValue38.Name = "enemyteam"
  2140. StringValue38.Parent = Model3
  2141. Script39.Name = "Health"
  2142. Script39.Parent = Model3
  2143. table.insert(cors,sandbox(Script39,function()
  2144. -- Gradually regenerates the Humanoid's Health over time.
  2145.  
  2146. local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
  2147. local REGEN_STEP = 1 -- Wait this long between each regeneration step.
  2148.  
  2149. --------------------------------------------------------------------------------
  2150.  
  2151. local Character = script.Parent
  2152. local Humanoid = Character:WaitForChild'Humanoid'
  2153.  
  2154. --------------------------------------------------------------------------------
  2155.  
  2156. while true do
  2157. while Humanoid.Health < Humanoid.MaxHealth do
  2158. local dt = wait(REGEN_STEP)
  2159. local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  2160. Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  2161. end
  2162. Humanoid.HealthChanged:Wait()
  2163. end
  2164. end))
  2165. LocalScript40.Name = "Animate"
  2166. LocalScript40.Parent = Model3
  2167. table.insert(cors,sandbox(LocalScript40,function()
  2168. local Figure = script.Parent
  2169. local Torso = Figure:WaitForChild("Torso")
  2170. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  2171. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  2172. local RightHip = Torso:WaitForChild("Right Hip")
  2173. local LeftHip = Torso:WaitForChild("Left Hip")
  2174. local Neck = Torso:WaitForChild("Neck")
  2175. local Humanoid = Figure:WaitForChild("Humanoid")
  2176. local pose = "Standing"
  2177.  
  2178. local currentAnim = ""
  2179. local currentAnimInstance = nil
  2180. local currentAnimTrack = nil
  2181. local currentAnimKeyframeHandler = nil
  2182. local currentAnimSpeed = 1.0
  2183. local animTable = {}
  2184. local animNames = {
  2185. idle = {
  2186. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  2187. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  2188. },
  2189. walk = {
  2190. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  2191. },
  2192. run = {
  2193. { id = "run.xml", weight = 10 }
  2194. },
  2195. jump = {
  2196. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  2197. },
  2198. fall = {
  2199. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  2200. },
  2201. climb = {
  2202. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  2203. },
  2204. sit = {
  2205. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  2206. },
  2207. toolnone = {
  2208. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  2209. },
  2210. toolslash = {
  2211. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  2212. -- { id = "slash.xml", weight = 10 }
  2213. },
  2214. toollunge = {
  2215. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  2216. },
  2217. wave = {
  2218. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  2219. },
  2220. point = {
  2221. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  2222. },
  2223. dance1 = {
  2224. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  2225. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  2226. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  2227. },
  2228. dance2 = {
  2229. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  2230. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  2231. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  2232. },
  2233. dance3 = {
  2234. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  2235. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  2236. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  2237. },
  2238. laugh = {
  2239. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  2240. },
  2241. cheer = {
  2242. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  2243. },
  2244. }
  2245. local dances = {"dance1", "dance2", "dance3"}
  2246.  
  2247. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  2248. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  2249.  
  2250. function configureAnimationSet(name, fileList)
  2251. if (animTable[name] ~= nil) then
  2252. for _, connection in pairs(animTable[name].connections) do
  2253. connection:disconnect()
  2254. end
  2255. end
  2256. animTable[name] = {}
  2257. animTable[name].count = 0
  2258. animTable[name].totalWeight = 0
  2259. animTable[name].connections = {}
  2260.  
  2261. -- check for config values
  2262. local config = script:FindFirstChild(name)
  2263. if (config ~= nil) then
  2264. -- print("Loading anims " .. name)
  2265. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  2266. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  2267. local idx = 1
  2268. for _, childPart in pairs(config:GetChildren()) do
  2269. if (childPart:IsA("Animation")) then
  2270. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  2271. animTable[name][idx] = {}
  2272. animTable[name][idx].anim = childPart
  2273. local weightObject = childPart:FindFirstChild("Weight")
  2274. if (weightObject == nil) then
  2275. animTable[name][idx].weight = 1
  2276. else
  2277. animTable[name][idx].weight = weightObject.Value
  2278. end
  2279. animTable[name].count = animTable[name].count + 1
  2280. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  2281. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  2282. idx = idx + 1
  2283. end
  2284. end
  2285. end
  2286.  
  2287. -- fallback to defaults
  2288. if (animTable[name].count <= 0) then
  2289. for idx, anim in pairs(fileList) do
  2290. animTable[name][idx] = {}
  2291. animTable[name][idx].anim = Instance.new("Animation")
  2292. animTable[name][idx].anim.Name = name
  2293. animTable[name][idx].anim.AnimationId = anim.id
  2294. animTable[name][idx].weight = anim.weight
  2295. animTable[name].count = animTable[name].count + 1
  2296. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  2297. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  2298. end
  2299. end
  2300. end
  2301.  
  2302. -- Setup animation objects
  2303. function scriptChildModified(child)
  2304. local fileList = animNames[child.Name]
  2305. if (fileList ~= nil) then
  2306. configureAnimationSet(child.Name, fileList)
  2307. end
  2308. end
  2309.  
  2310. script.ChildAdded:connect(scriptChildModified)
  2311. script.ChildRemoved:connect(scriptChildModified)
  2312.  
  2313.  
  2314. for name, fileList in pairs(animNames) do
  2315. configureAnimationSet(name, fileList)
  2316. end
  2317.  
  2318. -- ANIMATION
  2319.  
  2320. -- declarations
  2321. local toolAnim = "None"
  2322. local toolAnimTime = 0
  2323.  
  2324. local jumpAnimTime = 0
  2325. local jumpAnimDuration = 0.3
  2326.  
  2327. local toolTransitionTime = 0.1
  2328. local fallTransitionTime = 0.3
  2329. local jumpMaxLimbVelocity = 0.75
  2330.  
  2331. -- functions
  2332.  
  2333. function stopAllAnimations()
  2334. local oldAnim = currentAnim
  2335.  
  2336. -- return to idle if finishing an emote
  2337. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  2338. oldAnim = "idle"
  2339. end
  2340.  
  2341. currentAnim = ""
  2342. currentAnimInstance = nil
  2343. if (currentAnimKeyframeHandler ~= nil) then
  2344. currentAnimKeyframeHandler:disconnect()
  2345. end
  2346.  
  2347. if (currentAnimTrack ~= nil) then
  2348. currentAnimTrack:Stop()
  2349. currentAnimTrack:Destroy()
  2350. currentAnimTrack = nil
  2351. end
  2352. return oldAnim
  2353. end
  2354.  
  2355. function setAnimationSpeed(speed)
  2356. if speed ~= currentAnimSpeed then
  2357. currentAnimSpeed = speed
  2358. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  2359. end
  2360. end
  2361.  
  2362. function keyFrameReachedFunc(frameName)
  2363. if (frameName == "End") then
  2364.  
  2365. local repeatAnim = currentAnim
  2366. -- return to idle if finishing an emote
  2367. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  2368. repeatAnim = "idle"
  2369. end
  2370.  
  2371. local animSpeed = currentAnimSpeed
  2372. playAnimation(repeatAnim, 0.0, Humanoid)
  2373. setAnimationSpeed(animSpeed)
  2374. end
  2375. end
  2376.  
  2377. -- Preload animations
  2378. function playAnimation(animName, transitionTime, humanoid)
  2379.  
  2380. local roll = math.random(1, animTable[animName].totalWeight)
  2381. local origRoll = roll
  2382. local idx = 1
  2383. while (roll > animTable[animName][idx].weight) do
  2384. roll = roll - animTable[animName][idx].weight
  2385. idx = idx + 1
  2386. end
  2387. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  2388. local anim = animTable[animName][idx].anim
  2389.  
  2390. -- switch animation
  2391. if (anim ~= currentAnimInstance) then
  2392.  
  2393. if (currentAnimTrack ~= nil) then
  2394. currentAnimTrack:Stop(transitionTime)
  2395. currentAnimTrack:Destroy()
  2396. end
  2397.  
  2398. currentAnimSpeed = 1.0
  2399.  
  2400. -- load it to the humanoid; get AnimationTrack
  2401. currentAnimTrack = humanoid:LoadAnimation(anim)
  2402. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  2403.  
  2404. -- play the animation
  2405. currentAnimTrack:Play(transitionTime)
  2406. currentAnim = animName
  2407. currentAnimInstance = anim
  2408.  
  2409. -- set up keyframe name triggers
  2410. if (currentAnimKeyframeHandler ~= nil) then
  2411. currentAnimKeyframeHandler:disconnect()
  2412. end
  2413. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  2414.  
  2415. end
  2416.  
  2417. end
  2418.  
  2419. -------------------------------------------------------------------------------------------
  2420. -------------------------------------------------------------------------------------------
  2421.  
  2422. local toolAnimName = ""
  2423. local toolAnimTrack = nil
  2424. local toolAnimInstance = nil
  2425. local currentToolAnimKeyframeHandler = nil
  2426.  
  2427. function toolKeyFrameReachedFunc(frameName)
  2428. if (frameName == "End") then
  2429. -- print("Keyframe : ".. frameName)
  2430. playToolAnimation(toolAnimName, 0.0, Humanoid)
  2431. end
  2432. end
  2433.  
  2434.  
  2435. function playToolAnimation(animName, transitionTime, humanoid, priority)
  2436.  
  2437. local roll = math.random(1, animTable[animName].totalWeight)
  2438. local origRoll = roll
  2439. local idx = 1
  2440. while (roll > animTable[animName][idx].weight) do
  2441. roll = roll - animTable[animName][idx].weight
  2442. idx = idx + 1
  2443. end
  2444. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  2445. local anim = animTable[animName][idx].anim
  2446.  
  2447. if (toolAnimInstance ~= anim) then
  2448.  
  2449. if (toolAnimTrack ~= nil) then
  2450. toolAnimTrack:Stop()
  2451. toolAnimTrack:Destroy()
  2452. transitionTime = 0
  2453. end
  2454.  
  2455. -- load it to the humanoid; get AnimationTrack
  2456. toolAnimTrack = humanoid:LoadAnimation(anim)
  2457. if priority then
  2458. toolAnimTrack.Priority = priority
  2459. end
  2460.  
  2461. -- play the animation
  2462. toolAnimTrack:Play(transitionTime)
  2463. toolAnimName = animName
  2464. toolAnimInstance = anim
  2465.  
  2466. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  2467. end
  2468. end
  2469.  
  2470. function stopToolAnimations()
  2471. local oldAnim = toolAnimName
  2472.  
  2473. if (currentToolAnimKeyframeHandler ~= nil) then
  2474. currentToolAnimKeyframeHandler:disconnect()
  2475. end
  2476.  
  2477. toolAnimName = ""
  2478. toolAnimInstance = nil
  2479. if (toolAnimTrack ~= nil) then
  2480. toolAnimTrack:Stop()
  2481. toolAnimTrack:Destroy()
  2482. toolAnimTrack = nil
  2483. end
  2484.  
  2485.  
  2486. return oldAnim
  2487. end
  2488.  
  2489. -------------------------------------------------------------------------------------------
  2490. -------------------------------------------------------------------------------------------
  2491.  
  2492.  
  2493. function onRunning(speed)
  2494. if speed > 0.01 then
  2495. playAnimation("walk", 0.1, Humanoid)
  2496. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  2497. setAnimationSpeed(speed / 14.5)
  2498. end
  2499. pose = "Running"
  2500. else
  2501. if emoteNames[currentAnim] == nil then
  2502. playAnimation("idle", 0.1, Humanoid)
  2503. pose = "Standing"
  2504. end
  2505. end
  2506. end
  2507.  
  2508. function onDied()
  2509. pose = "Dead"
  2510. end
  2511.  
  2512. function onJumping()
  2513. playAnimation("jump", 0.1, Humanoid)
  2514. jumpAnimTime = jumpAnimDuration
  2515. pose = "Jumping"
  2516. end
  2517.  
  2518. function onClimbing(speed)
  2519. playAnimation("climb", 0.1, Humanoid)
  2520. setAnimationSpeed(speed / 12.0)
  2521. pose = "Climbing"
  2522. end
  2523.  
  2524. function onGettingUp()
  2525. pose = "GettingUp"
  2526. end
  2527.  
  2528. function onFreeFall()
  2529. if (jumpAnimTime <= 0) then
  2530. playAnimation("fall", fallTransitionTime, Humanoid)
  2531. end
  2532. pose = "FreeFall"
  2533. end
  2534.  
  2535. function onFallingDown()
  2536. pose = "FallingDown"
  2537. end
  2538.  
  2539. function onSeated()
  2540. pose = "Seated"
  2541. end
  2542.  
  2543. function onPlatformStanding()
  2544. pose = "PlatformStanding"
  2545. end
  2546.  
  2547. function onSwimming(speed)
  2548. if speed > 0 then
  2549. pose = "Running"
  2550. else
  2551. pose = "Standing"
  2552. end
  2553. end
  2554.  
  2555. function getTool()
  2556. for _, kid in ipairs(Figure:GetChildren()) do
  2557. if kid.className == "Tool" then return kid end
  2558. end
  2559. return nil
  2560. end
  2561.  
  2562. function getToolAnim(tool)
  2563. for _, c in ipairs(tool:GetChildren()) do
  2564. if c.Name == "toolanim" and c.className == "StringValue" then
  2565. return c
  2566. end
  2567. end
  2568. return nil
  2569. end
  2570.  
  2571. function animateTool()
  2572.  
  2573. if (toolAnim == "None") then
  2574. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  2575. return
  2576. end
  2577.  
  2578. if (toolAnim == "Slash") then
  2579. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  2580. return
  2581. end
  2582.  
  2583. if (toolAnim == "Lunge") then
  2584. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  2585. return
  2586. end
  2587. end
  2588.  
  2589. function moveSit()
  2590. RightShoulder.MaxVelocity = 0.15
  2591. LeftShoulder.MaxVelocity = 0.15
  2592. RightShoulder:SetDesiredAngle(3.14 /2)
  2593. LeftShoulder:SetDesiredAngle(-3.14 /2)
  2594. RightHip:SetDesiredAngle(3.14 /2)
  2595. LeftHip:SetDesiredAngle(-3.14 /2)
  2596. end
  2597.  
  2598. local lastTick = 0
  2599.  
  2600. function move(time)
  2601. local amplitude = 1
  2602. local frequency = 1
  2603. local deltaTime = time - lastTick
  2604. lastTick = time
  2605.  
  2606. local climbFudge = 0
  2607. local setAngles = false
  2608.  
  2609. if (jumpAnimTime > 0) then
  2610. jumpAnimTime = jumpAnimTime - deltaTime
  2611. end
  2612.  
  2613. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  2614. playAnimation("fall", fallTransitionTime, Humanoid)
  2615. elseif (pose == "Seated") then
  2616. playAnimation("sit", 0.5, Humanoid)
  2617. return
  2618. elseif (pose == "Running") then
  2619. playAnimation("walk", 0.1, Humanoid)
  2620. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  2621. -- print("Wha " .. pose)
  2622. stopAllAnimations()
  2623. amplitude = 0.1
  2624. frequency = 1
  2625. setAngles = true
  2626. end
  2627.  
  2628. if (setAngles) then
  2629. local desiredAngle = amplitude * math.sin(time * frequency)
  2630.  
  2631. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  2632. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  2633. RightHip:SetDesiredAngle(-desiredAngle)
  2634. LeftHip:SetDesiredAngle(-desiredAngle)
  2635. end
  2636.  
  2637. -- Tool Animation handling
  2638. local tool = getTool()
  2639. if tool and tool:FindFirstChild("Handle") then
  2640.  
  2641. local animStringValueObject = getToolAnim(tool)
  2642.  
  2643. if animStringValueObject then
  2644. toolAnim = animStringValueObject.Value
  2645. -- message recieved, delete StringValue
  2646. animStringValueObject.Parent = nil
  2647. toolAnimTime = time + .3
  2648. end
  2649.  
  2650. if time > toolAnimTime then
  2651. toolAnimTime = 0
  2652. toolAnim = "None"
  2653. end
  2654.  
  2655. animateTool()
  2656. else
  2657. stopToolAnimations()
  2658. toolAnim = "None"
  2659. toolAnimInstance = nil
  2660. toolAnimTime = 0
  2661. end
  2662. end
  2663.  
  2664. -- connect events
  2665. Humanoid.Died:connect(onDied)
  2666. Humanoid.Running:connect(onRunning)
  2667. Humanoid.Jumping:connect(onJumping)
  2668. Humanoid.Climbing:connect(onClimbing)
  2669. Humanoid.GettingUp:connect(onGettingUp)
  2670. Humanoid.FreeFalling:connect(onFreeFall)
  2671. Humanoid.FallingDown:connect(onFallingDown)
  2672. Humanoid.Seated:connect(onSeated)
  2673. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2674. Humanoid.Swimming:connect(onSwimming)
  2675.  
  2676. -- setup emote chat hook
  2677. game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
  2678. local emote = ""
  2679. if msg == "/e dance" then
  2680. emote = dances[math.random(1, #dances)]
  2681. elseif (string.sub(msg, 1, 3) == "/e ") then
  2682. emote = string.sub(msg, 4)
  2683. elseif (string.sub(msg, 1, 7) == "/emote ") then
  2684. emote = string.sub(msg, 8)
  2685. end
  2686.  
  2687. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  2688. playAnimation(emote, 0.1, Humanoid)
  2689. end
  2690.  
  2691. end)
  2692.  
  2693.  
  2694. -- main program
  2695.  
  2696. -- initialize to idle
  2697. playAnimation("idle", 0.1, Humanoid)
  2698. pose = "Standing"
  2699.  
  2700. while Figure.Parent ~= nil do
  2701. local _, time = wait(0.1)
  2702. move(time)
  2703. end
  2704.  
  2705.  
  2706.  
  2707. end))
  2708. StringValue41.Name = "idle"
  2709. StringValue41.Parent = LocalScript40
  2710. Animation42.Name = "Animation1"
  2711. Animation42.Parent = StringValue41
  2712. Animation42.AnimationId = "rbxassetid://2656767647"
  2713. NumberValue43.Name = "Weight"
  2714. NumberValue43.Parent = Animation42
  2715. NumberValue43.Value = 9
  2716. StringValue44.Name = "walk"
  2717. StringValue44.Parent = LocalScript40
  2718. Animation45.Name = "WalkAnim"
  2719. Animation45.Parent = StringValue44
  2720. Animation45.AnimationId = "rbxassetid://2661699907"
  2721. StringValue46.Name = "run"
  2722. StringValue46.Parent = LocalScript40
  2723. Animation47.Name = "RunAnim"
  2724. Animation47.Parent = StringValue46
  2725. Animation47.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  2726. StringValue48.Name = "jump"
  2727. StringValue48.Parent = LocalScript40
  2728. Animation49.Name = "JumpAnim"
  2729. Animation49.Parent = StringValue48
  2730. Animation49.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  2731. StringValue50.Name = "climb"
  2732. StringValue50.Parent = LocalScript40
  2733. Animation51.Name = "ClimbAnim"
  2734. Animation51.Parent = StringValue50
  2735. Animation51.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  2736. StringValue52.Name = "toolnone"
  2737. StringValue52.Parent = LocalScript40
  2738. Animation53.Name = "ToolNoneAnim"
  2739. Animation53.Parent = StringValue52
  2740. Animation53.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  2741. StringValue54.Name = "fall"
  2742. StringValue54.Parent = LocalScript40
  2743. Animation55.Name = "FallAnim"
  2744. Animation55.Parent = StringValue54
  2745. Animation55.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  2746. StringValue56.Name = "sit"
  2747. StringValue56.Parent = LocalScript40
  2748. Animation57.Name = "SitAnim"
  2749. Animation57.Parent = StringValue56
  2750. Animation57.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  2751. for i,v in pairs(mas:GetChildren()) do
  2752. v.Parent = workspace
  2753. pcall(function() v:MakeJoints() end)
  2754. end
  2755. mas:Destroy()
  2756. for i,v in pairs(cors) do
  2757. spawn(function()
  2758. pcall(v)
  2759. end)
  2760. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement