sawgamer1

Untitled

Apr 28th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.63 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Model0 = Instance.new("Model")
  25. Part1 = Instance.new("Part")
  26. SpecialMesh2 = Instance.new("SpecialMesh")
  27. Decal3 = Instance.new("Decal")
  28. BillboardGui4 = Instance.new("BillboardGui")
  29. Frame5 = Instance.new("Frame")
  30. Frame6 = Instance.new("Frame")
  31. Script7 = Instance.new("Script")
  32. Frame8 = Instance.new("Frame")
  33. TextLabel9 = Instance.new("TextLabel")
  34. Script10 = Instance.new("Script")
  35. Part11 = Instance.new("Part")
  36. Decal12 = Instance.new("Decal")
  37. Motor6D13 = Instance.new("Motor6D")
  38. Motor6D14 = Instance.new("Motor6D")
  39. Motor6D15 = Instance.new("Motor6D")
  40. Motor6D16 = Instance.new("Motor6D")
  41. Motor6D17 = Instance.new("Motor6D")
  42. Part18 = Instance.new("Part")
  43. Part19 = Instance.new("Part")
  44. Part20 = Instance.new("Part")
  45. Part21 = Instance.new("Part")
  46. Humanoid22 = Instance.new("Humanoid")
  47. Model23 = Instance.new("Model")
  48. Model24 = Instance.new("Model")
  49. Part25 = Instance.new("Part")
  50. Motor6D26 = Instance.new("Motor6D")
  51. Script27 = Instance.new("Script")
  52. Script28 = Instance.new("Script")
  53. StringValue29 = Instance.new("StringValue")
  54. Script30 = Instance.new("Script")
  55. LocalScript31 = Instance.new("LocalScript")
  56. StringValue32 = Instance.new("StringValue")
  57. Animation33 = Instance.new("Animation")
  58. NumberValue34 = Instance.new("NumberValue")
  59. Animation35 = Instance.new("Animation")
  60. NumberValue36 = Instance.new("NumberValue")
  61. StringValue37 = Instance.new("StringValue")
  62. Animation38 = Instance.new("Animation")
  63. StringValue39 = Instance.new("StringValue")
  64. Animation40 = Instance.new("Animation")
  65. StringValue41 = Instance.new("StringValue")
  66. Animation42 = Instance.new("Animation")
  67. StringValue43 = Instance.new("StringValue")
  68. Animation44 = Instance.new("Animation")
  69. StringValue45 = Instance.new("StringValue")
  70. Animation46 = Instance.new("Animation")
  71. StringValue47 = Instance.new("StringValue")
  72. Animation48 = Instance.new("Animation")
  73. StringValue49 = Instance.new("StringValue")
  74. Animation50 = Instance.new("Animation")
  75. CharacterMesh51 = Instance.new("CharacterMesh")
  76. CharacterMesh52 = Instance.new("CharacterMesh")
  77. CharacterMesh53 = Instance.new("CharacterMesh")
  78. CharacterMesh54 = Instance.new("CharacterMesh")
  79. CharacterMesh55 = Instance.new("CharacterMesh")
  80. BodyColors56 = Instance.new("BodyColors")
  81. Model0.Name = "Domennik"
  82. Model0.Parent = mas
  83. Model0.PrimaryPart = Part1
  84. Part1.Name = "Head"
  85. Part1.Parent = Model0
  86. Part1.CFrame = CFrame.new(67.5012054, 4.50044632, -161.361465, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  87. Part1.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  88. Part1.Position = Vector3.new(67.5012054, 4.50044632, -161.361465)
  89. Part1.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  90. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  91. Part1.Size = Vector3.new(2, 1, 1)
  92. Part1.BackParamA = -99999
  93. Part1.BackParamB = 99999
  94. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  95. Part1.BottomParamA = -99999
  96. Part1.BottomParamB = 99999
  97. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  98. Part1.BrickColor = BrickColor.new("Bright yellow")
  99. Part1.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  100. Part1.FrontParamA = -99999
  101. Part1.FrontParamB = 99999
  102. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  103. Part1.LeftParamA = -99999
  104. Part1.LeftParamB = 99999
  105. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  106. Part1.Material = Enum.Material.SmoothPlastic
  107. Part1.RightParamA = -99999
  108. Part1.RightParamB = 99999
  109. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  110. Part1.TopParamA = -99999
  111. Part1.TopParamB = 99999
  112. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  113. Part1.brickColor = BrickColor.new("Bright yellow")
  114. Part1.FormFactor = Enum.FormFactor.Symmetric
  115. Part1.formFactor = Enum.FormFactor.Symmetric
  116. SpecialMesh2.Parent = Part1
  117. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  118. Decal3.Parent = Part1
  119. Decal3.Texture = "http://www.roblox.com/asset/?id=177667491"
  120. BillboardGui4.Parent = Part1
  121. BillboardGui4.Size = UDim2.new(50, 0, 5, 0)
  122. BillboardGui4.Active = true
  123. BillboardGui4.MaxDistance = 9.9999998430675e+17
  124. BillboardGui4.StudsOffset = Vector3.new(0, 6, 0)
  125. Frame5.Parent = BillboardGui4
  126. Frame5.Size = UDim2.new(1, 0, 1, 0)
  127. Frame5.BackgroundColor = BrickColor.new("Really black")
  128. Frame5.BackgroundColor3 = Color3.new(0.0941177, 0.0941177, 0.0941177)
  129. Frame5.BorderColor = BrickColor.new("Really black")
  130. Frame5.BorderColor3 = Color3.new(0.0313726, 0.0313726, 0.0313726)
  131. Frame5.BorderSizePixel = 2
  132. Frame6.Name = "HPBar"
  133. Frame6.Parent = Frame5
  134. Frame6.Size = UDim2.new(0, 0, 1, 0)
  135. Frame6.BackgroundColor = BrickColor.new("Lime green")
  136. Frame6.BackgroundColor3 = Color3.new(0, 1, 0)
  137. Frame6.BorderSizePixel = 0
  138. Script7.Parent = Frame6
  139. table.insert(cors,sandbox(Script7,function()
  140.  
  141. while wait() do
  142. 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)
  143. end
  144. end))
  145. Frame8.Name = "shade"
  146. Frame8.Parent = Frame6
  147. Frame8.Position = UDim2.new(0, 0, 0.5, 0)
  148. Frame8.Size = UDim2.new(1, 0, 0.5, 0)
  149. Frame8.BackgroundColor = BrickColor.new("Really black")
  150. Frame8.BackgroundColor3 = Color3.new(0, 0, 0)
  151. Frame8.BackgroundTransparency = 0.75
  152. Frame8.BorderSizePixel = 0
  153. TextLabel9.Parent = Frame5
  154. TextLabel9.Size = UDim2.new(1, 0, 1, 0)
  155. TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
  156. TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
  157. TextLabel9.BackgroundTransparency = 1
  158. TextLabel9.Font = Enum.Font.Code
  159. TextLabel9.FontSize = Enum.FontSize.Size14
  160. TextLabel9.Text = "Name"
  161. TextLabel9.TextColor = BrickColor.new("Institutional white")
  162. TextLabel9.TextColor3 = Color3.new(1, 1, 1)
  163. TextLabel9.TextScaled = true
  164. TextLabel9.TextSize = 14
  165. TextLabel9.TextStrokeTransparency = 0
  166. TextLabel9.TextWrap = true
  167. TextLabel9.TextWrapped = true
  168. Script10.Parent = TextLabel9
  169. table.insert(cors,sandbox(Script10,function()
  170. while wait() do
  171. script.Parent.Text = string.upper(script.Parent.Parent.Parent.Parent.Parent.Name).. " | " ..math.floor(script.Parent.Parent.Parent.Parent.Parent.Humanoid.Health)
  172. end
  173. end))
  174. Part11.Name = "Torso"
  175. Part11.Parent = Model0
  176. Part11.CFrame = CFrame.new(67.5006256, 3.00044394, -161.361328, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  177. Part11.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  178. Part11.Position = Vector3.new(67.5006256, 3.00044394, -161.361328)
  179. Part11.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  180. Part11.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  181. Part11.Size = Vector3.new(2, 2, 1)
  182. Part11.BackParamA = -99999
  183. Part11.BackParamB = 99999
  184. Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  185. Part11.BottomParamA = -99999
  186. Part11.BottomParamB = 99999
  187. Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  188. Part11.BrickColor = BrickColor.new("Bright blue")
  189. Part11.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  190. Part11.FrontParamA = -99999
  191. Part11.FrontParamB = 99999
  192. Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  193. Part11.LeftParamA = -99999
  194. Part11.LeftParamB = 99999
  195. Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  196. Part11.Material = Enum.Material.SmoothPlastic
  197. Part11.RightParamA = -99999
  198. Part11.RightParamB = 99999
  199. Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  200. Part11.TopParamA = -99999
  201. Part11.TopParamB = 99999
  202. Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  203. Part11.brickColor = BrickColor.new("Bright blue")
  204. Part11.FormFactor = Enum.FormFactor.Symmetric
  205. Part11.formFactor = Enum.FormFactor.Symmetric
  206. Decal12.Name = "roblox"
  207. Decal12.Parent = Part11
  208. Motor6D13.Name = "Right Shoulder"
  209. Motor6D13.Parent = Part11
  210. Motor6D13.MaxVelocity = 0.10000000149012
  211. Motor6D13.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  212. Motor6D13.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  213. Motor6D13.Part0 = Part11
  214. Motor6D13.Part1 = Part19
  215. Motor6D13.part1 = Part19
  216. Motor6D14.Name = "Left Shoulder"
  217. Motor6D14.Parent = Part11
  218. Motor6D14.MaxVelocity = 0.10000000149012
  219. Motor6D14.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  220. Motor6D14.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  221. Motor6D14.Part0 = Part11
  222. Motor6D14.Part1 = Part18
  223. Motor6D14.part1 = Part18
  224. Motor6D15.Name = "Right Hip"
  225. Motor6D15.Parent = Part11
  226. Motor6D15.MaxVelocity = 0.10000000149012
  227. Motor6D15.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  228. Motor6D15.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  229. Motor6D15.Part0 = Part11
  230. Motor6D15.Part1 = Part21
  231. Motor6D15.part1 = Part21
  232. Motor6D16.Name = "Left Hip"
  233. Motor6D16.Parent = Part11
  234. Motor6D16.MaxVelocity = 0.10000000149012
  235. Motor6D16.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  236. Motor6D16.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  237. Motor6D16.Part0 = Part11
  238. Motor6D16.Part1 = Part20
  239. Motor6D16.part1 = Part20
  240. Motor6D17.Name = "Neck"
  241. Motor6D17.Parent = Part11
  242. Motor6D17.MaxVelocity = 0.10000000149012
  243. Motor6D17.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  244. Motor6D17.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  245. Motor6D17.Part0 = Part11
  246. Motor6D17.Part1 = Part1
  247. Motor6D17.part1 = Part1
  248. Part18.Name = "Left Arm"
  249. Part18.Parent = Model0
  250. Part18.CFrame = CFrame.new(66.0006256, 3.00102448, -161.359879, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  251. Part18.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  252. Part18.Position = Vector3.new(66.0006256, 3.00102448, -161.359879)
  253. Part18.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  254. Part18.Color = Color3.new(0.960784, 0.803922, 0.188235)
  255. Part18.Size = Vector3.new(1, 2, 1)
  256. Part18.BackParamA = -99999
  257. Part18.BackParamB = 99999
  258. Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  259. Part18.BottomParamA = -99999
  260. Part18.BottomParamB = 99999
  261. Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  262. Part18.BrickColor = BrickColor.new("Bright yellow")
  263. Part18.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  264. Part18.FrontParamA = -99999
  265. Part18.FrontParamB = 99999
  266. Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  267. Part18.LeftParamA = -99999
  268. Part18.LeftParamB = 99999
  269. Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  270. Part18.Material = Enum.Material.SmoothPlastic
  271. Part18.RightParamA = -99999
  272. Part18.RightParamB = 99999
  273. Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  274. Part18.TopParamA = -99999
  275. Part18.TopParamB = 99999
  276. Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  277. Part18.brickColor = BrickColor.new("Bright yellow")
  278. Part18.FormFactor = Enum.FormFactor.Symmetric
  279. Part18.formFactor = Enum.FormFactor.Symmetric
  280. Part19.Name = "Right Arm"
  281. Part19.Parent = Model0
  282. Part19.CFrame = CFrame.new(69.0006256, 2.99986339, -161.362778, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  283. Part19.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  284. Part19.Position = Vector3.new(69.0006256, 2.99986339, -161.362778)
  285. Part19.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  286. Part19.Color = Color3.new(0.960784, 0.803922, 0.188235)
  287. Part19.Size = Vector3.new(1, 2, 1)
  288. Part19.BackParamA = -99999
  289. Part19.BackParamB = 99999
  290. Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  291. Part19.BottomParamA = -99999
  292. Part19.BottomParamB = 99999
  293. Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  294. Part19.BrickColor = BrickColor.new("Bright yellow")
  295. Part19.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  296. Part19.FrontParamA = -99999
  297. Part19.FrontParamB = 99999
  298. Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  299. Part19.LeftParamA = -99999
  300. Part19.LeftParamB = 99999
  301. Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  302. Part19.Material = Enum.Material.SmoothPlastic
  303. Part19.RightParamA = -99999
  304. Part19.RightParamB = 99999
  305. Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  306. Part19.TopParamA = -99999
  307. Part19.TopParamB = 99999
  308. Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  309. Part19.brickColor = BrickColor.new("Bright yellow")
  310. Part19.FormFactor = Enum.FormFactor.Symmetric
  311. Part19.formFactor = Enum.FormFactor.Symmetric
  312. Part20.Name = "Left Leg"
  313. Part20.Parent = Model0
  314. Part20.CFrame = CFrame.new(66.999855, 1.00063455, -161.360657, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  315. Part20.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  316. Part20.Position = Vector3.new(66.999855, 1.00063455, -161.360657)
  317. Part20.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  318. Part20.Color = Color3.new(0.643137, 0.741176, 0.278431)
  319. Part20.Size = Vector3.new(1, 2, 1)
  320. Part20.BackParamA = -99999
  321. Part20.BackParamB = 99999
  322. Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  323. Part20.BottomParamA = -99999
  324. Part20.BottomParamB = 99999
  325. Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  326. Part20.BrickColor = BrickColor.new("Br. yellowish green")
  327. Part20.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  328. Part20.FrontParamA = -99999
  329. Part20.FrontParamB = 99999
  330. Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  331. Part20.LeftParamA = -99999
  332. Part20.LeftParamB = 99999
  333. Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  334. Part20.Material = Enum.Material.SmoothPlastic
  335. Part20.RightParamA = -99999
  336. Part20.RightParamB = 99999
  337. Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  338. Part20.TopParamA = -99999
  339. Part20.TopParamB = 99999
  340. Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  341. Part20.brickColor = BrickColor.new("Br. yellowish green")
  342. Part20.FormFactor = Enum.FormFactor.Symmetric
  343. Part20.formFactor = Enum.FormFactor.Symmetric
  344. Part21.Name = "Right Leg"
  345. Part21.Parent = Model0
  346. Part21.CFrame = CFrame.new(67.999855, 1.00024748, -161.361618, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  347. Part21.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  348. Part21.Position = Vector3.new(67.999855, 1.00024748, -161.361618)
  349. Part21.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  350. Part21.Color = Color3.new(0.643137, 0.741176, 0.278431)
  351. Part21.Size = Vector3.new(1, 2, 1)
  352. Part21.BackParamA = -99999
  353. Part21.BackParamB = 99999
  354. Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  355. Part21.BottomParamA = -99999
  356. Part21.BottomParamB = 99999
  357. Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  358. Part21.BrickColor = BrickColor.new("Br. yellowish green")
  359. Part21.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  360. Part21.FrontParamA = -99999
  361. Part21.FrontParamB = 99999
  362. Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  363. Part21.LeftParamA = -99999
  364. Part21.LeftParamB = 99999
  365. Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  366. Part21.Material = Enum.Material.SmoothPlastic
  367. Part21.RightParamA = -99999
  368. Part21.RightParamB = 99999
  369. Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  370. Part21.TopParamA = -99999
  371. Part21.TopParamB = 99999
  372. Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  373. Part21.brickColor = BrickColor.new("Br. yellowish green")
  374. Part21.FormFactor = Enum.FormFactor.Symmetric
  375. Part21.formFactor = Enum.FormFactor.Symmetric
  376. Humanoid22.Parent = Model0
  377. Humanoid22.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  378. Humanoid22.Health = 2000
  379. Humanoid22.HealthDisplayDistance = 0
  380. Humanoid22.JumpPower = 60
  381. Humanoid22.LeftLeg = Part20
  382. Humanoid22.MaxHealth = 2000
  383. Humanoid22.MaxSlopeAngle = 89.900001525879
  384. Humanoid22.NameDisplayDistance = 0
  385. Humanoid22.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  386. Humanoid22.RightLeg = Part21
  387. Humanoid22.Torso = Part25
  388. Humanoid22.maxHealth = 2000
  389. Model23.Name = "Status"
  390. Model23.Parent = Humanoid22
  391. Model24.Name = "AvalibleSpawns"
  392. Model24.Parent = Model23
  393. Part25.Name = "HumanoidRootPart"
  394. Part25.Parent = Model0
  395. Part25.CFrame = CFrame.new(67.5006256, 3.00044394, -161.361328, 0.999999464, 0.000386906613, 0.000970014022, -0.000386997854, 1.00000143, 9.46251021e-05, -0.000969977351, -9.50006215e-05, 0.999999523)
  396. Part25.Orientation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  397. Part25.Position = Vector3.new(67.5006256, 3.00044394, -161.361328)
  398. Part25.Rotation = Vector3.new(-0.00999999978, 0.0599999987, -0.0199999996)
  399. Part25.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  400. Part25.Transparency = 1
  401. Part25.Size = Vector3.new(2, 2, 1)
  402. Part25.BackParamA = -99999
  403. Part25.BackParamB = 99999
  404. Part25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  405. Part25.BottomParamA = -99999
  406. Part25.BottomParamB = 99999
  407. Part25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  408. Part25.BrickColor = BrickColor.new("Bright blue")
  409. Part25.CanCollide = false
  410. Part25.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  411. Part25.FrontParamA = -99999
  412. Part25.FrontParamB = 99999
  413. Part25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  414. Part25.LeftParamA = -99999
  415. Part25.LeftParamB = 99999
  416. Part25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  417. Part25.Material = Enum.Material.SmoothPlastic
  418. Part25.RightParamA = -99999
  419. Part25.RightParamB = 99999
  420. Part25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  421. Part25.TopParamA = -99999
  422. Part25.TopParamB = 99999
  423. Part25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  424. Part25.brickColor = BrickColor.new("Bright blue")
  425. Part25.FormFactor = Enum.FormFactor.Symmetric
  426. Part25.formFactor = Enum.FormFactor.Symmetric
  427. Motor6D26.Name = "RootJoint"
  428. Motor6D26.Parent = Part25
  429. Motor6D26.MaxVelocity = 0.10000000149012
  430. Motor6D26.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  431. Motor6D26.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  432. Motor6D26.Part0 = Part25
  433. Motor6D26.Part1 = Part11
  434. Motor6D26.part1 = Part11
  435. Script27.Name = "AttackingScript"
  436. Script27.Parent = Model0
  437. table.insert(cors,sandbox(Script27,function()
  438. --//====================================================\\--
  439. --|| GUNJOURER BY SHACKLUSTER
  440. --\\====================================================//--
  441. wait(0.2)
  442.  
  443. --Player = game:GetService("Players").LocalPlayer
  444. --PlayerGui = Player.PlayerGui
  445. Cam = workspace.CurrentCamera
  446. --Backpack = Player.Backpack
  447. Character = script.Parent
  448. Humanoid = Character.Humanoid
  449. Mouse = nil -- Player:GetMouse()
  450. RootPart = Character["HumanoidRootPart"]
  451. Torso = Character["Torso"]
  452. Head = Character["Head"]
  453. RightArm = Character["Right Arm"]
  454. LeftArm = Character["Left Arm"]
  455. RightLeg = Character["Right Leg"]
  456. LeftLeg = Character["Left Leg"]
  457. RootJoint = RootPart["RootJoint"]
  458. Neck = Torso["Neck"]
  459. RightShoulder = Torso["Right Shoulder"]
  460. LeftShoulder = Torso["Left Shoulder"]
  461. RightHip = Torso["Right Hip"]
  462. LeftHip = Torso["Left Hip"]
  463.  
  464. IT = Instance.new
  465. CF = CFrame.new
  466. VT = Vector3.new
  467. RAD = math.rad
  468. C3 = Color3.new
  469. UD2 = UDim2.new
  470. BRICKC = BrickColor.new
  471. ANGLES = CFrame.Angles
  472. EULER = CFrame.fromEulerAnglesXYZ
  473. COS = math.cos
  474. ACOS = math.acos
  475. SIN = math.sin
  476. ASIN = math.asin
  477. ABS = math.abs
  478. MRANDOM = math.random
  479. FLOOR = math.floor
  480.  
  481. --//=================================\\
  482. --|| USEFUL VALUES
  483. --\\=================================//
  484.  
  485. Animation_Speed = 3
  486. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  487. local Speed = 35
  488. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  489. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  490. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  491. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  492. local DAMAGEMULTIPLIER = 1
  493. local ANIM = "Idle"
  494. local ATTACK = false
  495. local EQUIPPED = false
  496. local HOLD = false
  497. local COMBO = 1
  498. local Rooted = false
  499. local SINE = 0
  500. local KEYHOLD = false
  501. local CHANGE = 2 / Animation_Speed
  502. local WALKINGANIM = false
  503. local VALUE1 = false
  504. local VALUE2 = false
  505. local ROBLOXIDLEANIMATION = IT("Animation")
  506. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  507. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  508. --ROBLOXIDLEANIMATION.Parent = Humanoid
  509. --local WEAPONGUI = IT("ScreenGui", PlayerGui)
  510. --WEAPONGUI.Name = "GUNJOURER_GUI_SHACKLUSTER"
  511. local Effects = IT("Folder", Character)
  512. Effects.Name = "Effects"
  513. local ANIMATOR = Humanoid.Animator
  514. local ANIMATE = Character.Animate
  515. local UNANCHOR = true
  516. local TRIPWIRE = false
  517.  
  518. --//=================================\\
  519. --\\=================================//
  520.  
  521.  
  522. --//=================================\\
  523. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  524. --\\=================================//
  525.  
  526. ArtificialHB = Instance.new("BindableEvent", script)
  527. ArtificialHB.Name = "ArtificialHB"
  528.  
  529. script:WaitForChild("ArtificialHB")
  530.  
  531. frame = Frame_Speed
  532. tf = 0
  533. allowframeloss = false
  534. tossremainder = false
  535. lastframe = tick()
  536. script.ArtificialHB:Fire()
  537.  
  538. game:GetService("RunService").Heartbeat:connect(function(s, p)
  539. tf = tf + s
  540. if tf >= frame then
  541. if allowframeloss then
  542. ArtificialHB:Fire()
  543. lastframe = tick()
  544. else
  545. for i = 1, math.floor(tf / frame) do
  546. ArtificialHB:Fire()
  547. end
  548. lastframe = tick()
  549. end
  550. if tossremainder then
  551. tf = 0
  552. else
  553. tf = tf - frame * math.floor(tf / frame)
  554. end
  555. end
  556. end)
  557.  
  558. --//=================================\\
  559. --\\=================================//
  560.  
  561. --//=================================\\
  562. --|| SOME FUNCTIONS
  563. --\\=================================//
  564.  
  565. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  566. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  567. end
  568.  
  569. function PositiveAngle(NUMBER)
  570. if NUMBER >= 0 then
  571. NUMBER = 0
  572. end
  573. return NUMBER
  574. end
  575.  
  576. function NegativeAngle(NUMBER)
  577. if NUMBER <= 0 then
  578. NUMBER = 0
  579. end
  580. return NUMBER
  581. end
  582.  
  583. function Swait(NUMBER)
  584. if NUMBER == 0 or NUMBER == nil then
  585. ArtificialHB.Event:wait()
  586. else
  587. for i = 1, NUMBER do
  588. ArtificialHB.Event:wait()
  589. end
  590. end
  591. end
  592.  
  593. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  594. local NEWMESH = IT(MESH)
  595. if MESH == "SpecialMesh" then
  596. NEWMESH.MeshType = MESHTYPE
  597. if MESHID ~= "nil" and MESHID ~= "" then
  598. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  599. end
  600. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  601. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  602. end
  603. end
  604. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  605. NEWMESH.Scale = SCALE
  606. NEWMESH.Parent = PARENT
  607. return NEWMESH
  608. end
  609.  
  610. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  611. local NEWPART = IT("Part")
  612. NEWPART.formFactor = FORMFACTOR
  613. NEWPART.Reflectance = REFLECTANCE
  614. NEWPART.Transparency = TRANSPARENCY
  615. NEWPART.CanCollide = false
  616. NEWPART.Locked = true
  617. NEWPART.Anchored = true
  618. if ANCHOR == false then
  619. NEWPART.Anchored = false
  620. end
  621. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  622. NEWPART.Name = NAME
  623. NEWPART.Size = SIZE
  624. NEWPART.Position = Torso.Position
  625. NEWPART.Material = MATERIAL
  626. NEWPART:BreakJoints()
  627. NEWPART.Parent = PARENT
  628. return NEWPART
  629. end
  630.  
  631. local function weldBetween(a, b)
  632. local weldd = Instance.new("ManualWeld")
  633. weldd.Part0 = a
  634. weldd.Part1 = b
  635. weldd.C0 = CFrame.new()
  636. weldd.C1 = b.CFrame:inverse() * a.CFrame
  637. weldd.Parent = a
  638. return weldd
  639. end
  640.  
  641.  
  642. function QuaternionFromCFrame(cf)
  643. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  644. local trace = m00 + m11 + m22
  645. if trace > 0 then
  646. local s = math.sqrt(1 + trace)
  647. local recip = 0.5 / s
  648. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  649. else
  650. local i = 0
  651. if m11 > m00 then
  652. i = 1
  653. end
  654. if m22 > (i == 0 and m00 or m11) then
  655. i = 2
  656. end
  657. if i == 0 then
  658. local s = math.sqrt(m00 - m11 - m22 + 1)
  659. local recip = 0.5 / s
  660. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  661. elseif i == 1 then
  662. local s = math.sqrt(m11 - m22 - m00 + 1)
  663. local recip = 0.5 / s
  664. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  665. elseif i == 2 then
  666. local s = math.sqrt(m22 - m00 - m11 + 1)
  667. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  668. end
  669. end
  670. end
  671.  
  672. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  673. local xs, ys, zs = x + x, y + y, z + z
  674. local wx, wy, wz = w * xs, w * ys, w * zs
  675. local xx = x * xs
  676. local xy = x * ys
  677. local xz = x * zs
  678. local yy = y * ys
  679. local yz = y * zs
  680. local zz = z * zs
  681. 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))
  682. end
  683.  
  684. function QuaternionSlerp(a, b, t)
  685. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  686. local startInterp, finishInterp;
  687. if cosTheta >= 0.0001 then
  688. if (1 - cosTheta) > 0.0001 then
  689. local theta = ACOS(cosTheta)
  690. local invSinTheta = 1 / SIN(theta)
  691. startInterp = SIN((1 - t) * theta) * invSinTheta
  692. finishInterp = SIN(t * theta) * invSinTheta
  693. else
  694. startInterp = 1 - t
  695. finishInterp = t
  696. end
  697. else
  698. if (1 + cosTheta) > 0.0001 then
  699. local theta = ACOS(-cosTheta)
  700. local invSinTheta = 1 / SIN(theta)
  701. startInterp = SIN((t - 1) * theta) * invSinTheta
  702. finishInterp = SIN(t * theta) * invSinTheta
  703. else
  704. startInterp = t - 1
  705. finishInterp = t
  706. end
  707. end
  708. 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
  709. end
  710.  
  711. function Clerp(a, b, t)
  712. local qa = {QuaternionFromCFrame(a)}
  713. local qb = {QuaternionFromCFrame(b)}
  714. local ax, ay, az = a.x, a.y, a.z
  715. local bx, by, bz = b.x, b.y, b.z
  716. local _t = 1 - t
  717. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  718. end
  719.  
  720. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  721. local frame = IT("Frame")
  722. frame.BackgroundTransparency = TRANSPARENCY
  723. frame.BorderSizePixel = BORDERSIZEPIXEL
  724. frame.Position = POSITION
  725. frame.Size = SIZE
  726. frame.BackgroundColor3 = COLOR
  727. frame.BorderColor3 = BORDERCOLOR
  728. frame.Name = NAME
  729. frame.Parent = PARENT
  730. return frame
  731. end
  732.  
  733. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  734. local label = IT("TextLabel")
  735. label.BackgroundTransparency = 1
  736. label.Size = UD2(1, 0, 1, 0)
  737. label.Position = UD2(0, 0, 0, 0)
  738. label.TextColor3 = TEXTCOLOR
  739. label.TextStrokeTransparency = STROKETRANSPARENCY
  740. label.TextTransparency = TRANSPARENCY
  741. label.FontSize = TEXTFONTSIZE
  742. label.Font = TEXTFONT
  743. label.BorderSizePixel = BORDERSIZEPIXEL
  744. label.TextScaled = false
  745. label.Text = TEXT
  746. label.Name = NAME
  747. label.Parent = PARENT
  748. return label
  749. end
  750.  
  751. function NoOutlines(PART)
  752. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  753. end
  754.  
  755. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  756. local NEWWELD = IT(TYPE)
  757. NEWWELD.Part0 = PART0
  758. NEWWELD.Part1 = PART1
  759. NEWWELD.C0 = C0
  760. NEWWELD.C1 = C1
  761. NEWWELD.Parent = PARENT
  762. return NEWWELD
  763. end
  764.  
  765. local S = IT("Sound")
  766. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  767. local NEWSOUND = nil
  768. coroutine.resume(coroutine.create(function()
  769. NEWSOUND = S:Clone()
  770. NEWSOUND.Parent = PARENT
  771. NEWSOUND.Volume = VOLUME
  772. NEWSOUND.Pitch = PITCH
  773. NEWSOUND.SoundId = "rbxassetid://"..ID
  774. NEWSOUND:play()
  775. if DOESLOOP == true then
  776. NEWSOUND.Looped = true
  777. else
  778. repeat wait(1) until NEWSOUND.Playing == false
  779. NEWSOUND:remove()
  780. end
  781. end))
  782. return NEWSOUND
  783. end
  784.  
  785. function CFrameFromTopBack(at, top, back)
  786. local right = top:Cross(back)
  787. 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)
  788. end
  789.  
  790. --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})
  791. function WACKYEFFECT(Table)
  792. local TYPE = (Table.EffectType or "Sphere")
  793. local SIZE = (Table.Size or VT(1,1,1))
  794. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  795. local TRANSPARENCY = (Table.Transparency or 0)
  796. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  797. local CFRAME = (Table.CFrame or Torso.CFrame)
  798. local MOVEDIRECTION = (Table.MoveToPos or nil)
  799. local ROTATION1 = (Table.RotationX or 0)
  800. local ROTATION2 = (Table.RotationY or 0)
  801. local ROTATION3 = (Table.RotationZ or 0)
  802. local MATERIAL = (Table.Material or "Neon")
  803. local COLOR = (Table.Color or C3(1,1,1))
  804. local TIME = (Table.Time or 45)
  805. local SOUNDID = (Table.SoundID or nil)
  806. local SOUNDPITCH = (Table.SoundPitch or nil)
  807. local SOUNDVOLUME = (Table.SoundVolume or nil)
  808. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  809. local BOOMERANG = (Table.Boomerang or 0)
  810. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  811. coroutine.resume(coroutine.create(function()
  812. local PLAYSSOUND = false
  813. local SOUND = nil
  814. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  815. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  816. PLAYSSOUND = true
  817. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  818. end
  819. EFFECT.Color = COLOR
  820. local MSH = nil
  821. if TYPE == "Sphere" then
  822. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  823. elseif TYPE == "Block" or TYPE == "Box" then
  824. MSH = IT("BlockMesh",EFFECT)
  825. MSH.Scale = SIZE
  826. elseif TYPE == "Wave" then
  827. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  828. elseif TYPE == "Ring" then
  829. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  830. elseif TYPE == "Slash" then
  831. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  832. elseif TYPE == "Round Slash" then
  833. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  834. elseif TYPE == "Swirl" then
  835. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  836. elseif TYPE == "Skull" then
  837. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  838. elseif TYPE == "Crystal" then
  839. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  840. end
  841. if MSH ~= nil then
  842. local BOOMR1 = 1+BOOMERANG/50
  843. local BOOMR2 = 1+SIZEBOOMERANG/50
  844. local MOVESPEED = nil
  845. if MOVEDIRECTION ~= nil then
  846. if USEBOOMERANGMATH == true then
  847. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  848. else
  849. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  850. end
  851. end
  852. local GROWTH = nil
  853. if USEBOOMERANGMATH == true then
  854. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  855. else
  856. GROWTH = (SIZE - ENDSIZE)
  857. end
  858. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  859. if TYPE == "Block" then
  860. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  861. else
  862. EFFECT.CFrame = CFRAME
  863. end
  864. if USEBOOMERANGMATH == true then
  865. for LOOP = 1, TIME+1 do
  866. Swait()
  867. 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
  868. if TYPE == "Wave" then
  869. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  870. end
  871. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  872. if TYPE == "Block" then
  873. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  874. else
  875. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  876. end
  877. if MOVEDIRECTION ~= nil then
  878. local ORI = EFFECT.Orientation
  879. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  880. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  881. end
  882. end
  883. else
  884. for LOOP = 1, TIME+1 do
  885. Swait()
  886. MSH.Scale = MSH.Scale - GROWTH/TIME
  887. if TYPE == "Wave" then
  888. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  889. end
  890. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  891. if TYPE == "Block" then
  892. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  893. else
  894. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  895. end
  896. if MOVEDIRECTION ~= nil then
  897. local ORI = EFFECT.Orientation
  898. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  899. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  900. end
  901. end
  902. end
  903. EFFECT.Transparency = 1
  904. if PLAYSSOUND == false then
  905. EFFECT:remove()
  906. else
  907. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  908. EFFECT:remove()
  909. end
  910. else
  911. if PLAYSSOUND == false then
  912. EFFECT:remove()
  913. else
  914. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  915. EFFECT:remove()
  916. end
  917. end
  918. end))
  919. end
  920.  
  921. function MakeForm(PART,TYPE)
  922. if TYPE == "Cyl" then
  923. local MSH = IT("CylinderMesh",PART)
  924. elseif TYPE == "Ball" then
  925. local MSH = IT("SpecialMesh",PART)
  926. MSH.MeshType = "Sphere"
  927. elseif TYPE == "Wedge" then
  928. local MSH = IT("SpecialMesh",PART)
  929. MSH.MeshType = "Wedge"
  930. end
  931. end
  932.  
  933. Debris = game:GetService("Debris")
  934.  
  935. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  936. local DIRECTION = CF(StartPos,EndPos).lookVector
  937. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  938. end
  939.  
  940. function OhnoItsAShotgun()
  941. local SHOOTgun = CreatePart(3, Effects, "Fabric", 0, 1, BRICKC("Black"), "OhNoItsAShotgun", VT(0.25, 0.5, 5), true)
  942. CreateMesh("SpecialMesh", SHOOTgun, "FileMesh", "3835506", "", VT(0.9, 1.13, 1), VT(0,-0.3,0))
  943. return SHOOTgun
  944. end
  945.  
  946. function CamShake(SHAKE,TIMER)
  947. coroutine.resume(coroutine.create(function()
  948. local FADER = SHAKE/TIMER
  949. for i = 1, TIMER do
  950. wait()
  951. 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)
  952. end
  953. Humanoid.CameraOffset = VT(0,0,0)
  954. end))
  955. end
  956.  
  957. --//=================================\\
  958. --|| GUIS AND MISC
  959. --\\=================================//
  960. --[[
  961. local SKILLTEXTCOLOR = C3(1,1,1)
  962. local SKILLFONT = "SciFi"
  963. local SKILLTEXTSIZE = 4]]--
  964.  
  965. --local ATTACKS = {"Conjour - C","Aerial Bombardament - V","Point Blank - B","Tripwire - F","Mend - M"}
  966.  
  967. --[[for i = 1, #ATTACKS do
  968. 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")
  969. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
  970. SKILLTEXT.TextXAlignment = "Right"
  971. SKILLTEXT.Rotation = i*3
  972. end]]--
  973.  
  974. local BMUSIC = IT("Sound",RootPart)
  975. local VOLUME = 3
  976. local PITCH = 1
  977. local SONGID = 554435540
  978.  
  979. --[[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")
  980. 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")
  981. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  982. Character.Health:remove()
  983. HEALTHBAR.Rotation = (#ATTACKS*3)+3
  984. 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")
  985. WHOAMI.Rotation = (#ATTACKS*3)+3
  986. CreateLabel(WHOAMI, "Gunjourer", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes")]]--
  987.  
  988. Humanoid.Died:Connect(function()
  989. RootPart:remove()
  990. --CreateSound(160718677, Head, 4, 1, false)
  991. --BMUSIC:remove()
  992. Effects:remove()
  993. --WEAPONGUI:remove()
  994. end)
  995. local GRUNTS = {1146556975,1146556706,1278006076}
  996.  
  997. function showhealth()
  998. local showhp = coroutine.wrap(function()
  999. for i,v in pairs(game.Players:GetChildren()) do
  1000. if v.PlayerGui:FindFirstChild("hpbarboss")~= nil then
  1001. v.PlayerGui:FindFirstChild("hpbarboss"):destroy()
  1002. end
  1003. local naeeym2 = Instance.new("ScreenGui",v.PlayerGui)
  1004. naeeym2.Name = "hpbarboss"
  1005. local bar = Instance.new("Frame",naeeym2)
  1006. bar.Position = UDim2.new(0,0,0.9,0)
  1007. bar.Size = UDim2.new(1,0,0.1,0)
  1008. bar.BackgroundColor3 = Color3.new(0.01,0.01,0.01)
  1009. bar.BorderColor3 = Color3.new(0,0,0)
  1010. bar.BorderSizePixel = 3
  1011. bar.BackgroundTransparency = 0.5
  1012. local curhp = Instance.new("Frame",bar)
  1013. curhp.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  1014. curhp.BackgroundColor3 = Color3.new(0.75,0,0)
  1015. curhp.BorderSizePixel = 0
  1016. curhp.BackgroundTransparency = 0.25
  1017. local shd = Instance.new("Frame",curhp)
  1018. shd.Position = UDim2.new(0,0,0.5,0)
  1019. shd.Size = UDim2.new(1,0,0.5,0)
  1020. shd.BackgroundColor3 = Color3.new(0,0,0)
  1021. shd.BorderSizePixel = 0
  1022. shd.BackgroundTransparency = 0.75
  1023. local tecks2 = Instance.new("TextLabel",naeeym2)
  1024. tecks2.BackgroundTransparency = 1
  1025. tecks2.Font = "SciFi"
  1026. tecks2.TextScaled = true
  1027. tecks2.TextStrokeTransparency = 0
  1028. tecks2.TextColor3 = Color3.new(1,1,1)
  1029. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1030. tecks2.Position = UDim2.new(0,0,0.9,0)
  1031. tecks2.Size = UDim2.new(1,0,0.1,0)
  1032. tecks2.Text = math.floor(Humanoid.Health).. " | " ..math.floor(Humanoid.MaxHealth)
  1033. local txt = Instance.new("TextLabel",naeeym2)
  1034. txt.BackgroundTransparency = 1
  1035. txt.Font = "SciFi"
  1036. txt.TextSize = 60
  1037. txt.TextScaled = true
  1038. txt.TextStrokeTransparency = 0.75
  1039. txt.TextColor3 = Color3.new(0,0,0)
  1040. txt.TextStrokeColor3 = Color3.new(1,1,1)
  1041. txt.Position = UDim2.new(0,0,0.9,0)
  1042. txt.Size = UDim2.new(1,0,0.1,0)
  1043. txt.Text = string.upper(script.Parent.Name)
  1044. txt.TextXAlignment = "Left"
  1045. wait(2)
  1046. naeeym2:Destroy()
  1047. end
  1048. end)
  1049. showhp()
  1050. end
  1051.  
  1052.  
  1053. --//=================================\\
  1054. --|| DAMAGING
  1055. --\\=================================//
  1056.  
  1057. function ApplyDamage(Humanoid,Damage)
  1058. Damage = Damage * DAMAGEMULTIPLIER
  1059. if Humanoid.Health < 2000 then
  1060. if Humanoid.Health - Damage > 0 then
  1061. Humanoid.Health = Humanoid.Health - Damage
  1062. else
  1063. Humanoid.Parent:BreakJoints()
  1064. end
  1065. else
  1066. Humanoid.Parent:BreakJoints()
  1067. end
  1068. end
  1069.  
  1070. function PAW_HAHA(LOC,AIMTO,OUCH)
  1071. 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})
  1072. for i = 1, 4 do
  1073. local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
  1074. 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
  1075. local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
  1076. local DISTANCE = (POS - LOC).Magnitude
  1077. if HIT then
  1078. local HUM = nil
  1079. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1080. HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
  1081. elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1082. HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1083. end
  1084. if HUM then
  1085. ApplyDamage(HUM,OUCH+MRANDOM(-3,3))
  1086. end
  1087. end
  1088. 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})
  1089. 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})
  1090. end
  1091. end
  1092.  
  1093. --//=================================\\
  1094. --|| ATTACK FUNCTIONS AND STUFF
  1095. --\\=================================//
  1096.  
  1097. function Conjour()
  1098. local SHOOT = OhnoItsAShotgun()
  1099. local CFRAME = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  1100. local ORI = 90
  1101. SHOOT.CFrame = CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(0), RAD(ORI), RAD(0))
  1102. local GOODRIDDANCE = false
  1103. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  1104. coroutine.resume(coroutine.create(function()
  1105. repeat
  1106. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(ORI), RAD(0), RAD(0)),0.25)
  1107. Swait()
  1108. until GOODRIDDANCE == true
  1109. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1110. SHOOT.CanCollide = true
  1111. SHOOT.Anchored = false
  1112. SHOOT.Parent = workspace
  1113. local bv = Instance.new("BodyVelocity",SHOOT)
  1114. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1115. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1116. Debris:AddItem(bv,0.1)
  1117. wait(5)
  1118. for i = 1, 45 do
  1119. Swait()
  1120. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1121. end
  1122. SHOOT:remove()
  1123. end))
  1124. for i = 1, 15 do
  1125. Swait()
  1126. SHOOT.Transparency = SHOOT.Transparency - 1/15
  1127. ORI = ORI - 3
  1128. end
  1129. for i = 1, 15 do
  1130. Swait()
  1131. ORI = ORI - 3
  1132. end
  1133. wait(MRANDOM(2,8)/10)
  1134. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,14)
  1135. CamShake(4,4)
  1136. GOODRIDDANCE = true
  1137. end
  1138. function Aerial_Bombardament()
  1139. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1140. if HITFLOOR then
  1141. ATTACK = true
  1142. Rooted = true
  1143. local bv = Instance.new("BodyVelocity")
  1144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1145. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,-2).p).lookVector*175
  1146. bv.Parent = RootPart
  1147. local GYRO = IT("BodyGyro",RootPart)
  1148. GYRO.D = 2
  1149. GYRO.P = 20000
  1150. GYRO.MaxTorque = VT(0,4000000,0)
  1151. GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
  1152. CreateSound(145486992,Torso,10,0.85,false)
  1153. for i=0, 0.05, 0.1 / Animation_Speed do
  1154. Swait()
  1155. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  1156. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  1157. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1158. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1159. if ANIM == "Fall" or ANIM == "Jump" then
  1160. 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)
  1161. 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)
  1162. else
  1163. 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)
  1164. 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)
  1165. end
  1166. end
  1167. bv:Remove()
  1168. local E = 360/15
  1169. for i = 1, 15 do
  1170. Swait()
  1171. 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})
  1172. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
  1173. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1174. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1175. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1176. 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)
  1177. 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)
  1178. end
  1179. 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})
  1180. for i = 1, 15 do
  1181. coroutine.resume(coroutine.create(function()
  1182. Conjour()
  1183. end))
  1184. end
  1185. local LANDED = nil
  1186. local POS = nil
  1187. coroutine.resume(coroutine.create(function()
  1188. repeat
  1189. Swait()
  1190. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1191. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1192. 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)
  1193. 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)
  1194. 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)
  1195. 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)
  1196. until LANDED ~= nil
  1197. end))
  1198. repeat
  1199. Swait()
  1200. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
  1201. if HITFLOOR then
  1202. LANDED = HITFLOOR
  1203. POS = HITPOS
  1204. end
  1205. until LANDED ~= nil
  1206. GYRO:remove()
  1207. CamShake(6,3)
  1208. CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
  1209. ATTACK = false
  1210. Rooted = false
  1211. end
  1212. end
  1213. function Point_Blank()
  1214. ATTACK = true
  1215. Rooted = true
  1216. local HIT = nil
  1217. local HUMAN = nil
  1218. local ROOT = nil
  1219. CreateSound(145486992,Torso,10,0.85,false)
  1220. for i=0, 0.5, 0.1 / Animation_Speed do
  1221. Swait()
  1222. if HIT ~= nil then
  1223. break
  1224. end
  1225. for index, CHILD in pairs(workspace:GetDescendants()) do
  1226. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1227. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1228. if HUM then
  1229. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1230. if TORSO and HUM.Health > 0 then
  1231. if (TORSO.Position - RootPart.CFrame*CF(0,0,-2).p).Magnitude <= 2 then
  1232. ROOT = TORSO
  1233. HUMAN = HUM
  1234. HIT = CHILD
  1235. end
  1236. end
  1237. end
  1238. end
  1239. end
  1240. RootPart.CFrame = Clerp(RootPart.CFrame, RootPart.CFrame, 0.07) * CF(0,0,-1)
  1241. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1242. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1243. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1244. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(135), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1245. 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)
  1246. 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)
  1247. end
  1248. if HIT then
  1249. local bv = Instance.new("BodyVelocity")
  1250. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1251. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1.5,2).p).lookVector*75
  1252. bv.Parent = RootPart
  1253. Debris:AddItem(bv,0.1)
  1254. coroutine.resume(coroutine.create(function()
  1255. local GUNS = {}
  1256. for i = 1, 4 do
  1257. local SHOOT = OhnoItsAShotgun()
  1258. local CFRAME = CF(ROOT.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  1259. SHOOT.CFrame = CF(CFRAME.p,ROOT.Position)
  1260. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  1261. table.insert(GUNS,SHOOT)
  1262. end
  1263. for i = 1, 25 do
  1264. Swait()
  1265. for E = 1, #GUNS do
  1266. GUNS[E].Transparency = GUNS[E].Transparency - 1/25
  1267. end
  1268. end
  1269. wait(0.1)
  1270. CamShake(8,15)
  1271. for E = 1, #GUNS do
  1272. local SHOOT = GUNS[E]
  1273. coroutine.resume(coroutine.create(function()
  1274. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,SHOOT.CFrame*CF(0,0,-15).p,17)
  1275. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1276. SHOOT.CanCollide = true
  1277. SHOOT.Anchored = false
  1278. SHOOT.Parent = workspace
  1279. local bv = Instance.new("BodyVelocity",SHOOT)
  1280. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1281. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1282. Debris:AddItem(bv,0.1)
  1283. wait(5)
  1284. for i = 1, 45 do
  1285. Swait()
  1286. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1287. end
  1288. end))
  1289. wait()
  1290. end
  1291. end))
  1292. CreateSound(GRUNTS[MRANDOM(1,#GRUNTS)], Torso, 6, 1.1, false)
  1293. for i=0, 1, 0.1 / Animation_Speed do
  1294. Swait()
  1295. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1296. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1297. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1298. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1299. 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)
  1300. 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)
  1301. end
  1302. end
  1303. ATTACK = false
  1304. Rooted = false
  1305. end
  1306. function Tripwire()
  1307. ATTACK = true
  1308. Rooted = true
  1309. TRIPWIRE = true
  1310. coroutine.resume(coroutine.create(function()
  1311. repeat
  1312. Swait()
  1313. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1314. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1315. 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)
  1316. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1317. 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)
  1318. 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)
  1319. until ATTACK == false
  1320. end))
  1321. local SHOOT = OhnoItsAShotgun()
  1322. local CFRAME = CF(-1.5,0,1.5) * ANGLES(RAD(0), RAD(45), RAD(0))
  1323. SHOOT.CFrame = Torso.CFrame*CFRAME
  1324. coroutine.resume(coroutine.create(function()
  1325. repeat
  1326. SHOOT.CFrame = Clerp(SHOOT.CFrame,Torso.CFrame*CFRAME,0.1)
  1327. Swait()
  1328. until HOLD == true
  1329. TRIPWIRE = false
  1330. local LOC = SHOOT.CFrame*CF(0,3,0).p
  1331. for i = 1, 15 do
  1332. Swait()
  1333. SHOOT.Transparency = SHOOT.Transparency - 1/15
  1334. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.3)
  1335. end
  1336. SHOOT.Transparency = 0
  1337. for i = 1, 2 do
  1338. Swait()
  1339. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(LOC,Mouse.Hit.p),0.5)
  1340. end
  1341. PAW_HAHA(SHOOT.CFrame*CF(0,0,-SHOOT.Size.Z/2).p,Mouse.Hit.p,10)
  1342. CamShake(8,9)
  1343. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1344. SHOOT.CanCollide = true
  1345. SHOOT.Anchored = false
  1346. SHOOT.Parent = workspace
  1347. local bv = Instance.new("BodyVelocity",SHOOT)
  1348. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1349. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1350. Debris:AddItem(bv,0.1)
  1351. wait(5)
  1352. for i = 1, 45 do
  1353. Swait()
  1354. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1355. end
  1356. end))
  1357. CreateSound(233856115, SHOOT, 1.2, (MRANDOM(8,12)/10)-0.3, false)
  1358. for i = 1, 15 do
  1359. Swait()
  1360. SHOOT.Transparency = SHOOT.Transparency - 1/150
  1361. end
  1362. ATTACK = false
  1363. Rooted = false
  1364. end
  1365. function Mend()
  1366. if Humanoid.Health < Humanoid.MaxHealth - 150 then
  1367. ATTACK = true
  1368. Rooted = true
  1369. for i=0, 0.25, 0.1 / Animation_Speed do
  1370. Swait()
  1371. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1372. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1373. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1374. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1375. 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)
  1376. 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)
  1377. end
  1378. local LOOP = 0
  1379. repeat
  1380. LOOP = LOOP + 1
  1381. Swait()
  1382. Humanoid.Health = Humanoid.Health + 1
  1383. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.4) * ANGLES(RAD(55), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1386. 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)
  1387. 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)
  1388. 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)
  1389. until KEYHOLD == false or Humanoid.Health == Humanoid.MaxHealth
  1390. for i=0, 0.15, 0.1 / Animation_Speed do
  1391. Swait()
  1392. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1393. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1394. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1395. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1396. 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)
  1397. 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)
  1398. end
  1399. ATTACK = false
  1400. Rooted = false
  1401. end
  1402. end
  1403. function Taunt()
  1404. ATTACK = true
  1405. Rooted = true
  1406. local L = CreateSound(1278007556,Head,8,1.1,false)
  1407. L.EmitterSize = 25
  1408. for i = 1, 20 do
  1409. Swait()
  1410. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1411. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1412. 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)
  1413. 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)
  1414. 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)
  1415. 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)
  1416. end
  1417. for i = 1, 40 do
  1418. Swait()
  1419. 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)
  1420. 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)
  1421. 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)
  1422. 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)
  1423. 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)
  1424. 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)
  1425. end
  1426. ATTACK = false
  1427. Rooted = false
  1428. end
  1429. function DoubleJump()
  1430. ATTACK = true
  1431. Rooted = false
  1432. Torso.Velocity = Vector3.new(Torso.Velocity.X,125,Torso.Velocity.Z)
  1433. CreateSound(159882477, Head, 4, 1, false)
  1434. CreateSound(1112042117, Torso, 2, 1, false)
  1435. local E = 360/12
  1436. for i=1, 12 do
  1437. Swait()
  1438. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2.5 / Animation_Speed)
  1439. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1440. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1441. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1442. 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)
  1443. 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)
  1444. end
  1445. ATTACK = false
  1446. Rooted = false
  1447. end
  1448.  
  1449. --//=================================\\
  1450. --|| ASSIGN THINGS TO KEYS
  1451. --\\=================================//
  1452.  
  1453. function MouseDown(Mouse)
  1454. HOLD = true
  1455. if ATTACK == false then
  1456. end
  1457. end
  1458.  
  1459. function MouseUp(Mouse)
  1460. HOLD = false
  1461. end
  1462.  
  1463. local READYTODOUBLE = false
  1464. local DOUBLED = false
  1465.  
  1466. --[[function KeyDown(Key)
  1467. KEYHOLD = true
  1468. if Key == "c" and ATTACK == false then
  1469. Conjour()
  1470. end
  1471.  
  1472. if Key == "v" and ATTACK == false then
  1473. Aerial_Bombardament()
  1474. end
  1475.  
  1476. if Key == "b" and ATTACK == false then
  1477. Point_Blank()
  1478. end
  1479.  
  1480. if Key == "f" and ATTACK == false and TRIPWIRE == false and ANIM == "Idle" then
  1481. Tripwire()
  1482. end
  1483.  
  1484. if Key == "m" and ATTACK == false then
  1485. Mend()
  1486. end
  1487.  
  1488. if Key == "t" and ATTACK == false then
  1489. Taunt()
  1490. end
  1491.  
  1492. if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLED == false then
  1493. READYTODOUBLE = false
  1494. DOUBLED = true
  1495. DoubleJump()
  1496. end
  1497. end
  1498.  
  1499. function KeyUp(Key)
  1500. KEYHOLD = false
  1501. end
  1502.  
  1503. Mouse.Button1Down:connect(function(NEWKEY)
  1504. MouseDown(NEWKEY)
  1505. end)
  1506. Mouse.Button1Up:connect(function(NEWKEY)
  1507. MouseUp(NEWKEY)
  1508. end)
  1509. Mouse.KeyDown:connect(function(NEWKEY)
  1510. KeyDown(NEWKEY)
  1511. end)
  1512. Mouse.KeyUp:connect(function(NEWKEY)
  1513. KeyUp(NEWKEY)
  1514. end)]]--
  1515.  
  1516. --//=================================\\
  1517. --\\=================================//
  1518.  
  1519. function unanchor()
  1520. for _, c in pairs(Character:GetChildren()) do
  1521. if c:IsA("BasePart") and c ~= RootPart then
  1522. c.Anchored = false
  1523. end
  1524. end
  1525. if UNANCHOR == true then
  1526. RootPart.Anchored = false
  1527. else
  1528. RootPart.Anchored = true
  1529. end
  1530. end
  1531.  
  1532. --//=================================\\
  1533. --|| WRAP THE WHOLE SCRIPT UP
  1534. --\\=================================//
  1535.  
  1536. coroutine.resume(coroutine.create(function()
  1537. wait(1)
  1538. local randat = math.random(1,4)
  1539. while true do
  1540. Swait(math.random(20,100))
  1541. if ATTACK == false then
  1542. if randat == 1 then
  1543. Aerial_Bombardament()
  1544. elseif randat == 2 then
  1545. Point_Blank()
  1546. elseif randat == 3 then
  1547. Tripwire()
  1548. elseif randat == 4 and Humanoid.Health < Humanoid.MaxHealth then
  1549. Mend()
  1550. end
  1551. end
  1552. randat = math.random(1,4)
  1553. end
  1554. end))
  1555.  
  1556. Humanoid.Changed:connect(function(Jump)
  1557. if Jump == "Jump" and (Disable_Jump == true) then
  1558. Humanoid.Jump = false
  1559. elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
  1560. wait(0.1)
  1561. READYTODOUBLE = true
  1562. end
  1563. end)
  1564.  
  1565. while true do
  1566. Swait()
  1567. --script.Parent = WEAPONGUI
  1568. ANIMATE.Parent = nil
  1569. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1570. v:Stop();
  1571. end
  1572. SINE = SINE + CHANGE
  1573. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1574. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1575. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1576. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  1577. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1578. 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)
  1579. 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)
  1580. 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)
  1581. 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)
  1582. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1583. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1584. 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)
  1585. 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)
  1586. 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)
  1587. end
  1588. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1589. ANIM = "Jump"
  1590. if ATTACK == false then
  1591. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1592. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1593. 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)
  1594. 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)
  1595. 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)
  1596. 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)
  1597. end
  1598. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1599. ANIM = "Fall"
  1600. if ATTACK == false then
  1601. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1602. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1603. 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)
  1604. 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)
  1605. 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)
  1606. 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)
  1607. end
  1608. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1609. ANIM = "Idle"
  1610. DOUBLED = false
  1611. READYTODOUBLE = false
  1612. if ATTACK == false then
  1613. 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)
  1614. 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)
  1615. 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)
  1616. 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)
  1617. 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)
  1618. 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)
  1619. end
  1620. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1621. ANIM = "Walk"
  1622. DOUBLED = false
  1623. READYTODOUBLE = false
  1624. if ATTACK == false then
  1625. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1626. 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)
  1627. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1628. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1629. 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)
  1630. 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)
  1631. end
  1632. end
  1633. unanchor()
  1634. if Rooted == false then
  1635. Disable_Jump = false
  1636. Humanoid.WalkSpeed = Speed
  1637. elseif Rooted == true then
  1638. Disable_Jump = true
  1639. Humanoid.WalkSpeed = 0
  1640. end
  1641. BMUSIC.SoundId = "rbxassetid://202902028"..SONGID
  1642. BMUSIC.Looped = true
  1643. BMUSIC.Pitch = PITCH
  1644. BMUSIC.Volume = VOLUME
  1645. BMUSIC.Playing = true
  1646. if BMUSIC.Parent ~= RootPart then
  1647. BMUSIC = IT("Sound",RootPart)
  1648. end
  1649. --Humanoid.Name = "NONHUM"
  1650. --HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1651. --HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1652. end
  1653.  
  1654. --//=================================\\
  1655. --\\=================================//
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661. --//====================================================\\--
  1662. --|| END OF SCRIPT
  1663. --\\====================================================//--
  1664. end))
  1665. Script28.Name = "Follow"
  1666. Script28.Parent = Model0
  1667. table.insert(cors,sandbox(Script28,function()
  1668. function findNearestTorso(pos)
  1669. local list = game.Workspace:children()
  1670. local torso = nil
  1671. local dist = 1000
  1672. local temp = nil
  1673. local detecttea = nil
  1674. local human = nil
  1675. local temp2 = nil
  1676. for x = 1, #list do
  1677. temp2 = list[x]
  1678. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1679. detecttea = temp2:findFirstChild("enemyteam")
  1680. temp = temp2:findFirstChild("Torso")
  1681. human = temp2:findFirstChildOfClass("Humanoid")
  1682. if (temp ~= nil) and (human ~= nil) and (detecttea == nil) and (human.Health > 0) then
  1683. if (temp.Position - pos).magnitude < dist then
  1684. torso = temp
  1685. dist = (temp.Position - pos).magnitude
  1686. end
  1687. end
  1688. end
  1689. end
  1690. return torso
  1691. end
  1692. --wait(math.random(0,5)/10)
  1693. while true do
  1694. wait(0.5)
  1695. local target = findNearestTorso(script.Parent.Torso.Position)
  1696. if target ~= nil then
  1697. script.Parent.Humanoid:MoveTo(target.Position, target)
  1698. end
  1699. end
  1700. end))
  1701. StringValue29.Name = "enemyteam"
  1702. StringValue29.Parent = Model0
  1703. Script30.Name = "Health"
  1704. Script30.Parent = Model0
  1705. table.insert(cors,sandbox(Script30,function()
  1706. -- Gradually regenerates the Humanoid's Health over time.
  1707.  
  1708. local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
  1709. local REGEN_STEP = 1 -- Wait this long between each regeneration step.
  1710.  
  1711. --------------------------------------------------------------------------------
  1712.  
  1713. local Character = script.Parent
  1714. local Humanoid = Character:WaitForChild'Humanoid'
  1715.  
  1716. --------------------------------------------------------------------------------
  1717.  
  1718. while true do
  1719. while Humanoid.Health < Humanoid.MaxHealth do
  1720. local dt = wait(REGEN_STEP)
  1721. local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  1722. Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  1723. end
  1724. Humanoid.HealthChanged:Wait()
  1725. end
  1726. end))
  1727. LocalScript31.Name = "Animate"
  1728. LocalScript31.Parent = Model0
  1729. table.insert(cors,sandbox(LocalScript31,function()
  1730. local Figure = script.Parent
  1731. local Torso = Figure:WaitForChild("Torso")
  1732. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  1733. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  1734. local RightHip = Torso:WaitForChild("Right Hip")
  1735. local LeftHip = Torso:WaitForChild("Left Hip")
  1736. local Neck = Torso:WaitForChild("Neck")
  1737. local Humanoid = Figure:WaitForChild("Humanoid")
  1738. local pose = "Standing"
  1739.  
  1740. local currentAnim = ""
  1741. local currentAnimInstance = nil
  1742. local currentAnimTrack = nil
  1743. local currentAnimKeyframeHandler = nil
  1744. local currentAnimSpeed = 1.0
  1745. local animTable = {}
  1746. local animNames = {
  1747. idle = {
  1748. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  1749. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  1750. },
  1751. walk = {
  1752. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  1753. },
  1754. run = {
  1755. { id = "run.xml", weight = 10 }
  1756. },
  1757. jump = {
  1758. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1759. },
  1760. fall = {
  1761. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  1762. },
  1763. climb = {
  1764. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  1765. },
  1766. sit = {
  1767. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  1768. },
  1769. toolnone = {
  1770. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  1771. },
  1772. toolslash = {
  1773. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1774. -- { id = "slash.xml", weight = 10 }
  1775. },
  1776. toollunge = {
  1777. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1778. },
  1779. wave = {
  1780. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1781. },
  1782. point = {
  1783. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1784. },
  1785. dance1 = {
  1786. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  1787. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  1788. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  1789. },
  1790. dance2 = {
  1791. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  1792. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  1793. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  1794. },
  1795. dance3 = {
  1796. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  1797. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  1798. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  1799. },
  1800. laugh = {
  1801. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1802. },
  1803. cheer = {
  1804. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1805. },
  1806. }
  1807. local dances = {"dance1", "dance2", "dance3"}
  1808.  
  1809. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1810. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1811.  
  1812. function configureAnimationSet(name, fileList)
  1813. if (animTable[name] ~= nil) then
  1814. for _, connection in pairs(animTable[name].connections) do
  1815. connection:disconnect()
  1816. end
  1817. end
  1818. animTable[name] = {}
  1819. animTable[name].count = 0
  1820. animTable[name].totalWeight = 0
  1821. animTable[name].connections = {}
  1822.  
  1823. -- check for config values
  1824. local config = script:FindFirstChild(name)
  1825. if (config ~= nil) then
  1826. -- print("Loading anims " .. name)
  1827. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1828. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1829. local idx = 1
  1830. for _, childPart in pairs(config:GetChildren()) do
  1831. if (childPart:IsA("Animation")) then
  1832. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1833. animTable[name][idx] = {}
  1834. animTable[name][idx].anim = childPart
  1835. local weightObject = childPart:FindFirstChild("Weight")
  1836. if (weightObject == nil) then
  1837. animTable[name][idx].weight = 1
  1838. else
  1839. animTable[name][idx].weight = weightObject.Value
  1840. end
  1841. animTable[name].count = animTable[name].count + 1
  1842. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1843. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1844. idx = idx + 1
  1845. end
  1846. end
  1847. end
  1848.  
  1849. -- fallback to defaults
  1850. if (animTable[name].count <= 0) then
  1851. for idx, anim in pairs(fileList) do
  1852. animTable[name][idx] = {}
  1853. animTable[name][idx].anim = Instance.new("Animation")
  1854. animTable[name][idx].anim.Name = name
  1855. animTable[name][idx].anim.AnimationId = anim.id
  1856. animTable[name][idx].weight = anim.weight
  1857. animTable[name].count = animTable[name].count + 1
  1858. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1859. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1860. end
  1861. end
  1862. end
  1863.  
  1864. -- Setup animation objects
  1865. function scriptChildModified(child)
  1866. local fileList = animNames[child.Name]
  1867. if (fileList ~= nil) then
  1868. configureAnimationSet(child.Name, fileList)
  1869. end
  1870. end
  1871.  
  1872. script.ChildAdded:connect(scriptChildModified)
  1873. script.ChildRemoved:connect(scriptChildModified)
  1874.  
  1875.  
  1876. for name, fileList in pairs(animNames) do
  1877. configureAnimationSet(name, fileList)
  1878. end
  1879.  
  1880. -- ANIMATION
  1881.  
  1882. -- declarations
  1883. local toolAnim = "None"
  1884. local toolAnimTime = 0
  1885.  
  1886. local jumpAnimTime = 0
  1887. local jumpAnimDuration = 0.3
  1888.  
  1889. local toolTransitionTime = 0.1
  1890. local fallTransitionTime = 0.3
  1891. local jumpMaxLimbVelocity = 0.75
  1892.  
  1893. -- functions
  1894.  
  1895. function stopAllAnimations()
  1896. local oldAnim = currentAnim
  1897.  
  1898. -- return to idle if finishing an emote
  1899. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1900. oldAnim = "idle"
  1901. end
  1902.  
  1903. currentAnim = ""
  1904. currentAnimInstance = nil
  1905. if (currentAnimKeyframeHandler ~= nil) then
  1906. currentAnimKeyframeHandler:disconnect()
  1907. end
  1908.  
  1909. if (currentAnimTrack ~= nil) then
  1910. currentAnimTrack:Stop()
  1911. currentAnimTrack:Destroy()
  1912. currentAnimTrack = nil
  1913. end
  1914. return oldAnim
  1915. end
  1916.  
  1917. function setAnimationSpeed(speed)
  1918. if speed ~= currentAnimSpeed then
  1919. currentAnimSpeed = speed
  1920. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1921. end
  1922. end
  1923.  
  1924. function keyFrameReachedFunc(frameName)
  1925. if (frameName == "End") then
  1926.  
  1927. local repeatAnim = currentAnim
  1928. -- return to idle if finishing an emote
  1929. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1930. repeatAnim = "idle"
  1931. end
  1932.  
  1933. local animSpeed = currentAnimSpeed
  1934. playAnimation(repeatAnim, 0.0, Humanoid)
  1935. setAnimationSpeed(animSpeed)
  1936. end
  1937. end
  1938.  
  1939. -- Preload animations
  1940. function playAnimation(animName, transitionTime, humanoid)
  1941.  
  1942. local roll = math.random(1, animTable[animName].totalWeight)
  1943. local origRoll = roll
  1944. local idx = 1
  1945. while (roll > animTable[animName][idx].weight) do
  1946. roll = roll - animTable[animName][idx].weight
  1947. idx = idx + 1
  1948. end
  1949. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1950. local anim = animTable[animName][idx].anim
  1951.  
  1952. -- switch animation
  1953. if (anim ~= currentAnimInstance) then
  1954.  
  1955. if (currentAnimTrack ~= nil) then
  1956. currentAnimTrack:Stop(transitionTime)
  1957. currentAnimTrack:Destroy()
  1958. end
  1959.  
  1960. currentAnimSpeed = 1.0
  1961.  
  1962. -- load it to the humanoid; get AnimationTrack
  1963. currentAnimTrack = humanoid:LoadAnimation(anim)
  1964. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1965.  
  1966. -- play the animation
  1967. currentAnimTrack:Play(transitionTime)
  1968. currentAnim = animName
  1969. currentAnimInstance = anim
  1970.  
  1971. -- set up keyframe name triggers
  1972. if (currentAnimKeyframeHandler ~= nil) then
  1973. currentAnimKeyframeHandler:disconnect()
  1974. end
  1975. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1976.  
  1977. end
  1978.  
  1979. end
  1980.  
  1981. -------------------------------------------------------------------------------------------
  1982. -------------------------------------------------------------------------------------------
  1983.  
  1984. local toolAnimName = ""
  1985. local toolAnimTrack = nil
  1986. local toolAnimInstance = nil
  1987. local currentToolAnimKeyframeHandler = nil
  1988.  
  1989. function toolKeyFrameReachedFunc(frameName)
  1990. if (frameName == "End") then
  1991. -- print("Keyframe : ".. frameName)
  1992. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1993. end
  1994. end
  1995.  
  1996.  
  1997. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1998.  
  1999. local roll = math.random(1, animTable[animName].totalWeight)
  2000. local origRoll = roll
  2001. local idx = 1
  2002. while (roll > animTable[animName][idx].weight) do
  2003. roll = roll - animTable[animName][idx].weight
  2004. idx = idx + 1
  2005. end
  2006. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  2007. local anim = animTable[animName][idx].anim
  2008.  
  2009. if (toolAnimInstance ~= anim) then
  2010.  
  2011. if (toolAnimTrack ~= nil) then
  2012. toolAnimTrack:Stop()
  2013. toolAnimTrack:Destroy()
  2014. transitionTime = 0
  2015. end
  2016.  
  2017. -- load it to the humanoid; get AnimationTrack
  2018. toolAnimTrack = humanoid:LoadAnimation(anim)
  2019. if priority then
  2020. toolAnimTrack.Priority = priority
  2021. end
  2022.  
  2023. -- play the animation
  2024. toolAnimTrack:Play(transitionTime)
  2025. toolAnimName = animName
  2026. toolAnimInstance = anim
  2027.  
  2028. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  2029. end
  2030. end
  2031.  
  2032. function stopToolAnimations()
  2033. local oldAnim = toolAnimName
  2034.  
  2035. if (currentToolAnimKeyframeHandler ~= nil) then
  2036. currentToolAnimKeyframeHandler:disconnect()
  2037. end
  2038.  
  2039. toolAnimName = ""
  2040. toolAnimInstance = nil
  2041. if (toolAnimTrack ~= nil) then
  2042. toolAnimTrack:Stop()
  2043. toolAnimTrack:Destroy()
  2044. toolAnimTrack = nil
  2045. end
  2046.  
  2047.  
  2048. return oldAnim
  2049. end
  2050.  
  2051. -------------------------------------------------------------------------------------------
  2052. -------------------------------------------------------------------------------------------
  2053.  
  2054.  
  2055. function onRunning(speed)
  2056. if speed > 0.01 then
  2057. playAnimation("walk", 0.1, Humanoid)
  2058. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  2059. setAnimationSpeed(speed / 14.5)
  2060. end
  2061. pose = "Running"
  2062. else
  2063. if emoteNames[currentAnim] == nil then
  2064. playAnimation("idle", 0.1, Humanoid)
  2065. pose = "Standing"
  2066. end
  2067. end
  2068. end
  2069.  
  2070. function onDied()
  2071. pose = "Dead"
  2072. end
  2073.  
  2074. function onJumping()
  2075. playAnimation("jump", 0.1, Humanoid)
  2076. jumpAnimTime = jumpAnimDuration
  2077. pose = "Jumping"
  2078. end
  2079.  
  2080. function onClimbing(speed)
  2081. playAnimation("climb", 0.1, Humanoid)
  2082. setAnimationSpeed(speed / 12.0)
  2083. pose = "Climbing"
  2084. end
  2085.  
  2086. function onGettingUp()
  2087. pose = "GettingUp"
  2088. end
  2089.  
  2090. function onFreeFall()
  2091. if (jumpAnimTime <= 0) then
  2092. playAnimation("fall", fallTransitionTime, Humanoid)
  2093. end
  2094. pose = "FreeFall"
  2095. end
  2096.  
  2097. function onFallingDown()
  2098. pose = "FallingDown"
  2099. end
  2100.  
  2101. function onSeated()
  2102. pose = "Seated"
  2103. end
  2104.  
  2105. function onPlatformStanding()
  2106. pose = "PlatformStanding"
  2107. end
  2108.  
  2109. function onSwimming(speed)
  2110. if speed > 0 then
  2111. pose = "Running"
  2112. else
  2113. pose = "Standing"
  2114. end
  2115. end
  2116.  
  2117. function getTool()
  2118. for _, kid in ipairs(Figure:GetChildren()) do
  2119. if kid.className == "Tool" then return kid end
  2120. end
  2121. return nil
  2122. end
  2123.  
  2124. function getToolAnim(tool)
  2125. for _, c in ipairs(tool:GetChildren()) do
  2126. if c.Name == "toolanim" and c.className == "StringValue" then
  2127. return c
  2128. end
  2129. end
  2130. return nil
  2131. end
  2132.  
  2133. function animateTool()
  2134.  
  2135. if (toolAnim == "None") then
  2136. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  2137. return
  2138. end
  2139.  
  2140. if (toolAnim == "Slash") then
  2141. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  2142. return
  2143. end
  2144.  
  2145. if (toolAnim == "Lunge") then
  2146. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  2147. return
  2148. end
  2149. end
  2150.  
  2151. function moveSit()
  2152. RightShoulder.MaxVelocity = 0.15
  2153. LeftShoulder.MaxVelocity = 0.15
  2154. RightShoulder:SetDesiredAngle(3.14 /2)
  2155. LeftShoulder:SetDesiredAngle(-3.14 /2)
  2156. RightHip:SetDesiredAngle(3.14 /2)
  2157. LeftHip:SetDesiredAngle(-3.14 /2)
  2158. end
  2159.  
  2160. local lastTick = 0
  2161.  
  2162. function move(time)
  2163. local amplitude = 1
  2164. local frequency = 1
  2165. local deltaTime = time - lastTick
  2166. lastTick = time
  2167.  
  2168. local climbFudge = 0
  2169. local setAngles = false
  2170.  
  2171. if (jumpAnimTime > 0) then
  2172. jumpAnimTime = jumpAnimTime - deltaTime
  2173. end
  2174.  
  2175. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  2176. playAnimation("fall", fallTransitionTime, Humanoid)
  2177. elseif (pose == "Seated") then
  2178. playAnimation("sit", 0.5, Humanoid)
  2179. return
  2180. elseif (pose == "Running") then
  2181. playAnimation("walk", 0.1, Humanoid)
  2182. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  2183. -- print("Wha " .. pose)
  2184. stopAllAnimations()
  2185. amplitude = 0.1
  2186. frequency = 1
  2187. setAngles = true
  2188. end
  2189.  
  2190. if (setAngles) then
  2191. local desiredAngle = amplitude * math.sin(time * frequency)
  2192.  
  2193. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  2194. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  2195. RightHip:SetDesiredAngle(-desiredAngle)
  2196. LeftHip:SetDesiredAngle(-desiredAngle)
  2197. end
  2198.  
  2199. -- Tool Animation handling
  2200. local tool = getTool()
  2201. if tool and tool:FindFirstChild("Handle") then
  2202.  
  2203. local animStringValueObject = getToolAnim(tool)
  2204.  
  2205. if animStringValueObject then
  2206. toolAnim = animStringValueObject.Value
  2207. -- message recieved, delete StringValue
  2208. animStringValueObject.Parent = nil
  2209. toolAnimTime = time + .3
  2210. end
  2211.  
  2212. if time > toolAnimTime then
  2213. toolAnimTime = 0
  2214. toolAnim = "None"
  2215. end
  2216.  
  2217. animateTool()
  2218. else
  2219. stopToolAnimations()
  2220. toolAnim = "None"
  2221. toolAnimInstance = nil
  2222. toolAnimTime = 0
  2223. end
  2224. end
  2225.  
  2226. -- connect events
  2227. Humanoid.Died:connect(onDied)
  2228. Humanoid.Running:connect(onRunning)
  2229. Humanoid.Jumping:connect(onJumping)
  2230. Humanoid.Climbing:connect(onClimbing)
  2231. Humanoid.GettingUp:connect(onGettingUp)
  2232. Humanoid.FreeFalling:connect(onFreeFall)
  2233. Humanoid.FallingDown:connect(onFallingDown)
  2234. Humanoid.Seated:connect(onSeated)
  2235. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2236. Humanoid.Swimming:connect(onSwimming)
  2237.  
  2238. -- setup emote chat hook
  2239. game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
  2240. local emote = ""
  2241. if msg == "/e dance" then
  2242. emote = dances[math.random(1, #dances)]
  2243. elseif (string.sub(msg, 1, 3) == "/e ") then
  2244. emote = string.sub(msg, 4)
  2245. elseif (string.sub(msg, 1, 7) == "/emote ") then
  2246. emote = string.sub(msg, 8)
  2247. end
  2248.  
  2249. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  2250. playAnimation(emote, 0.1, Humanoid)
  2251. end
  2252.  
  2253. end)
  2254.  
  2255.  
  2256. -- main program
  2257.  
  2258. -- initialize to idle
  2259. playAnimation("idle", 0.1, Humanoid)
  2260. pose = "Standing"
  2261.  
  2262. while Figure.Parent ~= nil do
  2263. local _, time = wait(0.1)
  2264. move(time)
  2265. end
  2266.  
  2267.  
  2268.  
  2269. end))
  2270. StringValue32.Name = "idle"
  2271. StringValue32.Parent = LocalScript31
  2272. Animation33.Name = "Animation1"
  2273. Animation33.Parent = StringValue32
  2274. Animation33.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2275. NumberValue34.Name = "Weight"
  2276. NumberValue34.Parent = Animation33
  2277. NumberValue34.Value = 9
  2278. Animation35.Name = "Animation2"
  2279. Animation35.Parent = StringValue32
  2280. Animation35.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  2281. NumberValue36.Name = "Weight"
  2282. NumberValue36.Parent = Animation35
  2283. NumberValue36.Value = 1
  2284. StringValue37.Name = "walk"
  2285. StringValue37.Parent = LocalScript31
  2286. Animation38.Name = "WalkAnim"
  2287. Animation38.Parent = StringValue37
  2288. Animation38.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  2289. StringValue39.Name = "run"
  2290. StringValue39.Parent = LocalScript31
  2291. Animation40.Name = "RunAnim"
  2292. Animation40.Parent = StringValue39
  2293. Animation40.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  2294. StringValue41.Name = "jump"
  2295. StringValue41.Parent = LocalScript31
  2296. Animation42.Name = "JumpAnim"
  2297. Animation42.Parent = StringValue41
  2298. Animation42.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  2299. StringValue43.Name = "climb"
  2300. StringValue43.Parent = LocalScript31
  2301. Animation44.Name = "ClimbAnim"
  2302. Animation44.Parent = StringValue43
  2303. Animation44.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  2304. StringValue45.Name = "toolnone"
  2305. StringValue45.Parent = LocalScript31
  2306. Animation46.Name = "ToolNoneAnim"
  2307. Animation46.Parent = StringValue45
  2308. Animation46.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  2309. StringValue47.Name = "fall"
  2310. StringValue47.Parent = LocalScript31
  2311. Animation48.Name = "FallAnim"
  2312. Animation48.Parent = StringValue47
  2313. Animation48.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  2314. StringValue49.Name = "sit"
  2315. StringValue49.Parent = LocalScript31
  2316. Animation50.Name = "SitAnim"
  2317. Animation50.Parent = StringValue49
  2318. Animation50.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  2319. CharacterMesh51.Name = "ROBLOX Boy Left Arm"
  2320. CharacterMesh51.Parent = Model0
  2321. CharacterMesh51.BodyPart = Enum.BodyPart.LeftArm
  2322. CharacterMesh51.MeshId = 279174949
  2323. CharacterMesh52.Name = "ROBLOX Boy Left Leg"
  2324. CharacterMesh52.Parent = Model0
  2325. CharacterMesh52.BodyPart = Enum.BodyPart.LeftLeg
  2326. CharacterMesh52.MeshId = 319336109
  2327. CharacterMesh53.Name = "ROBLOX Boy Right Arm"
  2328. CharacterMesh53.Parent = Model0
  2329. CharacterMesh53.BodyPart = Enum.BodyPart.RightArm
  2330. CharacterMesh53.MeshId = 279174886
  2331. CharacterMesh54.Name = "ROBLOX Boy Right Leg"
  2332. CharacterMesh54.Parent = Model0
  2333. CharacterMesh54.BodyPart = Enum.BodyPart.RightLeg
  2334. CharacterMesh54.MeshId = 319336155
  2335. CharacterMesh55.Name = "ROBLOX Boy Torso"
  2336. CharacterMesh55.Parent = Model0
  2337. CharacterMesh55.BodyPart = Enum.BodyPart.Torso
  2338. CharacterMesh55.MeshId = 376169183
  2339. BodyColors56.Parent = Model0
  2340. BodyColors56.HeadColor = BrickColor.new("Bright yellow")
  2341. BodyColors56.HeadColor3 = Color3.new(0.960784, 0.803922, 0.188235)
  2342. BodyColors56.LeftArmColor = BrickColor.new("Bright yellow")
  2343. BodyColors56.LeftArmColor3 = Color3.new(0.960784, 0.803922, 0.188235)
  2344. BodyColors56.LeftLegColor = BrickColor.new("Br. yellowish green")
  2345. BodyColors56.LeftLegColor3 = Color3.new(0.643137, 0.741176, 0.278431)
  2346. BodyColors56.RightArmColor = BrickColor.new("Bright yellow")
  2347. BodyColors56.RightArmColor3 = Color3.new(0.960784, 0.803922, 0.188235)
  2348. BodyColors56.RightLegColor = BrickColor.new("Br. yellowish green")
  2349. BodyColors56.RightLegColor3 = Color3.new(0.643137, 0.741176, 0.278431)
  2350. BodyColors56.TorsoColor = BrickColor.new("Bright blue")
  2351. BodyColors56.TorsoColor3 = Color3.new(0.0509804, 0.411765, 0.67451)
  2352. for i,v in pairs(mas:GetChildren()) do
  2353. v.Parent = script
  2354. pcall(function() v:MakeJoints() end)
  2355. end
  2356. mas:Destroy()
  2357. for i,v in pairs(cors) do
  2358. spawn(function()
  2359. pcall(v)
  2360. end)
  2361. end
Advertisement
Add Comment
Please, Sign In to add comment