sawgamer1

Untitled

Apr 28th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.16 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. UnionOperation1 = Instance.new("UnionOperation")
  26. Motor6D2 = Instance.new("Motor6D")
  27. Motor6D3 = Instance.new("Motor6D")
  28. Motor6D4 = Instance.new("Motor6D")
  29. Motor6D5 = Instance.new("Motor6D")
  30. Motor6D6 = Instance.new("Motor6D")
  31. Beam7 = Instance.new("Beam")
  32. Sound8 = Instance.new("Sound")
  33. UnionOperation9 = Instance.new("UnionOperation")
  34. Decal10 = Instance.new("Decal")
  35. BillboardGui11 = Instance.new("BillboardGui")
  36. TextLabel12 = Instance.new("TextLabel")
  37. TextLabel13 = Instance.new("TextLabel")
  38. Script14 = Instance.new("Script")
  39. Part15 = Instance.new("Part")
  40. Motor6D16 = Instance.new("Motor6D")
  41. Sound17 = Instance.new("Sound")
  42. Sound18 = Instance.new("Sound")
  43. Sound19 = Instance.new("Sound")
  44. Sound20 = Instance.new("Sound")
  45. Sound21 = Instance.new("Sound")
  46. Sound22 = Instance.new("Sound")
  47. Sound23 = Instance.new("Sound")
  48. Sound24 = Instance.new("Sound")
  49. Sound25 = Instance.new("Sound")
  50. Sound26 = Instance.new("Sound")
  51. Sound27 = Instance.new("Sound")
  52. MeshPart28 = Instance.new("MeshPart")
  53. MeshPart29 = Instance.new("MeshPart")
  54. MeshPart30 = Instance.new("MeshPart")
  55. MeshPart31 = Instance.new("MeshPart")
  56. MeshPart32 = Instance.new("MeshPart")
  57. Weld33 = Instance.new("Weld")
  58. MeshPart34 = Instance.new("MeshPart")
  59. Weld35 = Instance.new("Weld")
  60. Humanoid36 = Instance.new("Humanoid")
  61. Part37 = Instance.new("Part")
  62. SpecialMesh38 = Instance.new("SpecialMesh")
  63. Script39 = Instance.new("Script")
  64. Sound40 = Instance.new("Sound")
  65. Model0.Name = "Joofil"
  66. Model0.Parent = mas
  67. Model0.PrimaryPart = Part15
  68. UnionOperation1.Name = "Torso"
  69. UnionOperation1.Parent = Model0
  70. UnionOperation1.CFrame = CFrame.new(90.9493332, 3.05013967, 3.99198079, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  71. UnionOperation1.Position = Vector3.new(90.9493332, 3.05013967, 3.99198079)
  72. UnionOperation1.Color = Color3.new(0.129412, 0.329412, 0.72549)
  73. UnionOperation1.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
  74. UnionOperation1.BrickColor = BrickColor.new("Deep blue")
  75. UnionOperation1.Material = Enum.Material.SmoothPlastic
  76. UnionOperation1.brickColor = BrickColor.new("Deep blue")
  77. UnionOperation1.UsePartColor = true
  78. Motor6D2.Name = "Head"
  79. Motor6D2.Parent = UnionOperation1
  80. Motor6D2.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  81. Motor6D2.Part0 = UnionOperation1
  82. Motor6D2.Part1 = UnionOperation9
  83. Motor6D2.part1 = UnionOperation9
  84. Motor6D3.Name = "RArm"
  85. Motor6D3.Parent = UnionOperation1
  86. Motor6D3.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  87. Motor6D3.Part0 = UnionOperation1
  88. Motor6D3.Part1 = MeshPart29
  89. Motor6D3.part1 = MeshPart29
  90. Motor6D4.Name = "LArm"
  91. Motor6D4.Parent = UnionOperation1
  92. Motor6D4.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  93. Motor6D4.Part0 = UnionOperation1
  94. Motor6D4.Part1 = MeshPart28
  95. Motor6D4.part1 = MeshPart28
  96. Motor6D5.Name = "RLeg"
  97. Motor6D5.Parent = UnionOperation1
  98. Motor6D5.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  99. Motor6D5.Part0 = UnionOperation1
  100. Motor6D5.Part1 = MeshPart30
  101. Motor6D5.part1 = MeshPart30
  102. Motor6D6.Name = "LLeg"
  103. Motor6D6.Parent = UnionOperation1
  104. Motor6D6.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  105. Motor6D6.Part0 = UnionOperation1
  106. Motor6D6.Part1 = MeshPart31
  107. Motor6D6.part1 = MeshPart31
  108. Beam7.Name = "Neck"
  109. Beam7.Parent = UnionOperation1
  110. Beam7.Attachment0 = nil
  111. Beam7.Attachment1 = nil
  112. Beam7.FaceCamera = true
  113. Beam7.LightEmission = 1
  114. Beam7.LightInfluence = 1
  115. Beam7.Segments = 50
  116. Beam7.Texture = "rbxassetid://1134824633"
  117. Beam7.TextureLength = 5
  118. Beam7.TextureMode = Enum.TextureMode.Static
  119. Beam7.TextureSpeed = 2
  120. Beam7.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  121. Beam7.Width0 = 0.5
  122. Beam7.Width1 = 0.5
  123. Sound8.Name = "Die"
  124. Sound8.Parent = UnionOperation1
  125. Sound8.MaxDistance = 300
  126. Sound8.EmitterSize = 35
  127. Sound8.MinDistance = 35
  128. Sound8.SoundId = "rbxassetid://2150821806"
  129. Sound8.Volume = 2
  130. UnionOperation9.Name = "Head"
  131. UnionOperation9.Parent = Model0
  132. UnionOperation9.CFrame = CFrame.new(90.9493713, 4.55009794, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. UnionOperation9.Position = Vector3.new(90.9493713, 4.55009794, 3.9919579)
  134. UnionOperation9.Color = Color3.new(0.937255, 0.721569, 0.219608)
  135. UnionOperation9.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  136. UnionOperation9.BrickColor = BrickColor.new("Gold")
  137. UnionOperation9.Material = Enum.Material.SmoothPlastic
  138. UnionOperation9.brickColor = BrickColor.new("Gold")
  139. UnionOperation9.UsePartColor = true
  140. Decal10.Name = "Smile"
  141. Decal10.Parent = UnionOperation9
  142. Decal10.Texture = "http://www.roblox.com/asset/?id=288072938"
  143. BillboardGui11.Name = "Nametag"
  144. BillboardGui11.Parent = UnionOperation9
  145. BillboardGui11.Size = UDim2.new(4, 0, 4, 0)
  146. BillboardGui11.AlwaysOnTop = true
  147. BillboardGui11.StudsOffset = Vector3.new(0, 2, 0)
  148. TextLabel12.Name = "Title"
  149. TextLabel12.Parent = BillboardGui11
  150. TextLabel12.Size = UDim2.new(1, 0, 0.25, 0)
  151. TextLabel12.BackgroundColor = BrickColor.new("Institutional white")
  152. TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
  153. TextLabel12.BackgroundTransparency = 1
  154. TextLabel12.BorderSizePixel = 0
  155. TextLabel12.ClipsDescendants = true
  156. TextLabel12.Font = Enum.Font.Fantasy
  157. TextLabel12.FontSize = Enum.FontSize.Size14
  158. TextLabel12.Text = "Joofil"
  159. TextLabel12.TextColor = BrickColor.new("Institutional white")
  160. TextLabel12.TextColor3 = Color3.new(1, 1, 1)
  161. TextLabel12.TextScaled = true
  162. TextLabel12.TextSize = 14
  163. TextLabel12.TextWrap = true
  164. TextLabel12.TextWrapped = true
  165. TextLabel13.Name = "HP"
  166. TextLabel13.Parent = BillboardGui11
  167. TextLabel13.Position = UDim2.new(0, 0, 0.25, 0)
  168. TextLabel13.Size = UDim2.new(1, 0, 0.100000001, 0)
  169. TextLabel13.BackgroundColor = BrickColor.new("Institutional white")
  170. TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
  171. TextLabel13.BackgroundTransparency = 1
  172. TextLabel13.BorderSizePixel = 0
  173. TextLabel13.ClipsDescendants = true
  174. TextLabel13.Font = Enum.Font.Fantasy
  175. TextLabel13.FontSize = Enum.FontSize.Size48
  176. TextLabel13.Text = "0/0"
  177. TextLabel13.TextColor = BrickColor.new("Mint")
  178. TextLabel13.TextColor3 = Color3.new(0.686275, 1, 0.686275)
  179. TextLabel13.TextScaled = true
  180. TextLabel13.TextSize = 45
  181. TextLabel13.TextWrap = true
  182. TextLabel13.TextWrapped = true
  183. Script14.Parent = BillboardGui11
  184. table.insert(cors,sandbox(Script14,function()
  185. wait(0.05)
  186. Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  187. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  188.  
  189. Humanoid.Changed:connect(function()
  190. if Humanoid.Health > Humanoid.MaxHealth/2 then
  191. script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
  192. end
  193. if Humanoid.Health > Humanoid.MaxHealth then
  194. script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
  195. end
  196. if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
  197. script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
  198. end
  199. if Humanoid.Health > Humanoid.MaxHealth * 3 then
  200. script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
  201. end
  202. if Humanoid.Health > Humanoid.MaxHealth * 10 then
  203. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
  204. end
  205. if Humanoid.Health < Humanoid.MaxHealth/2 then
  206. script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
  207. end
  208. if Humanoid.Health < Humanoid.MaxHealth/2.5 then
  209. script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
  210. end
  211. if Humanoid.Health < Humanoid.MaxHealth/3 then
  212. script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
  213. end
  214. if Humanoid.Health < Humanoid.MaxHealth/5 then
  215. script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
  216. end
  217. if Humanoid.Health < Humanoid.MaxHealth/7.5 then
  218. script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
  219. end
  220. if Humanoid.Health < Humanoid.MaxHealth/10 then
  221. script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
  222. end
  223. if Humanoid.Health == 0 then
  224. script.Parent.HP.Text = "Dead"
  225. else
  226. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  227. end
  228. if Humanoid.Health == math.huge then
  229. script.Parent.HP.Text = "Godded"
  230. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
  231. end
  232. end)
  233. end))
  234. Part15.Name = "HumanoidRootPart"
  235. Part15.Parent = Model0
  236. Part15.CFrame = CFrame.new(90.9493713, 3.05009794, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  237. Part15.Position = Vector3.new(90.9493713, 3.05009794, 3.9919579)
  238. Part15.Color = Color3.new(0.937255, 0.721569, 0.219608)
  239. Part15.Transparency = 1
  240. Part15.Size = Vector3.new(2, 2, 1)
  241. Part15.Anchored = true
  242. Part15.BottomSurface = Enum.SurfaceType.Smooth
  243. Part15.BrickColor = BrickColor.new("Gold")
  244. Part15.Material = Enum.Material.SmoothPlastic
  245. Part15.TopSurface = Enum.SurfaceType.Smooth
  246. Part15.brickColor = BrickColor.new("Gold")
  247. Motor6D16.Name = "Root"
  248. Motor6D16.Parent = Part15
  249. Motor6D16.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  250. Motor6D16.Part0 = Part15
  251. Motor6D16.Part1 = UnionOperation1
  252. Motor6D16.part1 = UnionOperation1
  253. Sound17.Name = "Chuckle"
  254. Sound17.Parent = Part15
  255. Sound17.MaxDistance = 300
  256. Sound17.EmitterSize = 35
  257. Sound17.MinDistance = 35
  258. Sound17.SoundId = "rbxassetid://2545010175"
  259. Sound17.Volume = 5
  260. Sound18.Name = "ByeBye"
  261. Sound18.Parent = Part15
  262. Sound18.MaxDistance = 300
  263. Sound18.EmitterSize = 35
  264. Sound18.MinDistance = 35
  265. Sound18.SoundId = "rbxassetid://2545211516"
  266. Sound18.Volume = 5
  267. Sound19.Name = "ChaosChaos"
  268. Sound19.Parent = Part15
  269. Sound19.MaxDistance = 300
  270. Sound19.EmitterSize = 35
  271. Sound19.MinDistance = 35
  272. Sound19.SoundId = "rbxassetid://2545008459"
  273. Sound19.Volume = 5
  274. Sound20.Name = "Ha2"
  275. Sound20.Parent = Part15
  276. Sound20.MaxDistance = 300
  277. Sound20.EmitterSize = 35
  278. Sound20.MinDistance = 35
  279. Sound20.SoundId = "rbxassetid://2606662454"
  280. Sound20.Volume = 5
  281. Sound21.Name = "Ha1"
  282. Sound21.Parent = Part15
  283. Sound21.MaxDistance = 300
  284. Sound21.EmitterSize = 35
  285. Sound21.MinDistance = 35
  286. Sound21.SoundId = "rbxassetid://2606661976"
  287. Sound21.Volume = 5
  288. Sound22.Name = "Neo"
  289. Sound22.Parent = Part15
  290. Sound22.MaxDistance = 300
  291. Sound22.EmitterSize = 35
  292. Sound22.MinDistance = 35
  293. Sound22.SoundId = "rbxassetid://2545018472"
  294. Sound22.Volume = 5
  295. Sound23.Name = "MeDoAnything"
  296. Sound23.Parent = Part15
  297. Sound23.MaxDistance = 300
  298. Sound23.EmitterSize = 35
  299. Sound23.MinDistance = 35
  300. Sound23.SoundId = "rbxassetid://2544975373"
  301. Sound23.Volume = 5
  302. Sound24.Name = "OH"
  303. Sound24.Parent = Part15
  304. Sound24.MaxDistance = 300
  305. Sound24.EmitterSize = 35
  306. Sound24.MinDistance = 35
  307. Sound24.SoundId = "rbxassetid://2545012765"
  308. Sound24.Volume = 5
  309. Sound25.Name = "Laugh"
  310. Sound25.Parent = Part15
  311. Sound25.MaxDistance = 300
  312. Sound25.EmitterSize = 35
  313. Sound25.MinDistance = 35
  314. Sound25.SoundId = "rbxassetid://2545211765"
  315. Sound25.Volume = 5
  316. Sound26.Name = "Metamorph"
  317. Sound26.Parent = Part15
  318. Sound26.MaxDistance = 300
  319. Sound26.EmitterSize = 35
  320. Sound26.MinDistance = 35
  321. Sound26.SoundId = "rbxassetid://2545011398"
  322. Sound26.Volume = 5
  323. Sound27.Name = "Deathed"
  324. Sound27.Parent = Part15
  325. Sound27.MaxDistance = 300
  326. Sound27.EmitterSize = 35
  327. Sound27.MinDistance = 35
  328. Sound27.SoundId = "rbxassetid://2637401925"
  329. Sound27.Volume = 2
  330. MeshPart28.Name = "Left Arm"
  331. MeshPart28.Parent = Model0
  332. MeshPart28.CFrame = CFrame.new(89.4493713, 3.05003858, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  333. MeshPart28.Position = Vector3.new(89.4493713, 3.05003858, 3.9919579)
  334. MeshPart28.Color = Color3.new(0.937255, 0.721569, 0.219608)
  335. MeshPart28.Size = Vector3.new(1.00004005, 2.00002551, 1)
  336. MeshPart28.BrickColor = BrickColor.new("Gold")
  337. MeshPart28.Material = Enum.Material.SmoothPlastic
  338. MeshPart28.brickColor = BrickColor.new("Gold")
  339. MeshPart29.Name = "Right Arm"
  340. MeshPart29.Parent = Model0
  341. MeshPart29.CFrame = CFrame.new(92.4493713, 3.05003858, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  342. MeshPart29.Position = Vector3.new(92.4493713, 3.05003858, 3.9919579)
  343. MeshPart29.Color = Color3.new(0.937255, 0.721569, 0.219608)
  344. MeshPart29.Size = Vector3.new(1.00004005, 2.00002551, 1)
  345. MeshPart29.BrickColor = BrickColor.new("Gold")
  346. MeshPart29.Material = Enum.Material.SmoothPlastic
  347. MeshPart29.brickColor = BrickColor.new("Gold")
  348. MeshPart30.Name = "Right Leg"
  349. MeshPart30.Parent = Model0
  350. MeshPart30.CFrame = CFrame.new(91.4493713, 1.05003858, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. MeshPart30.Position = Vector3.new(91.4493713, 1.05003858, 3.9919579)
  352. MeshPart30.Color = Color3.new(0.294118, 0.592157, 0.294118)
  353. MeshPart30.Size = Vector3.new(1.00004005, 2.00002551, 1)
  354. MeshPart30.BrickColor = BrickColor.new("Bright green")
  355. MeshPart30.Material = Enum.Material.SmoothPlastic
  356. MeshPart30.brickColor = BrickColor.new("Bright green")
  357. MeshPart31.Name = "Left Leg"
  358. MeshPart31.Parent = Model0
  359. MeshPart31.CFrame = CFrame.new(90.4493713, 1.05003858, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  360. MeshPart31.Position = Vector3.new(90.4493713, 1.05003858, 3.9919579)
  361. MeshPart31.Color = Color3.new(0.294118, 0.592157, 0.294118)
  362. MeshPart31.Size = Vector3.new(1.00004005, 2.00002551, 1)
  363. MeshPart31.BrickColor = BrickColor.new("Bright green")
  364. MeshPart31.Material = Enum.Material.SmoothPlastic
  365. MeshPart31.brickColor = BrickColor.new("Bright green")
  366. MeshPart32.Name = "Hat"
  367. MeshPart32.Parent = Model0
  368. MeshPart32.CFrame = CFrame.new(90.9493713, 5.24997807, 4.49198818, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  369. MeshPart32.Position = Vector3.new(90.9493713, 5.24997807, 4.49198818)
  370. MeshPart32.Color = Color3.new(0.129412, 0.329412, 0.72549)
  371. MeshPart32.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
  372. MeshPart32.BrickColor = BrickColor.new("Deep blue")
  373. MeshPart32.CanCollide = false
  374. MeshPart32.Material = Enum.Material.SmoothPlastic
  375. MeshPart32.brickColor = BrickColor.new("Deep blue")
  376. Weld33.Name = "Joint"
  377. Weld33.Parent = MeshPart32
  378. Weld33.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  379. Weld33.Part0 = MeshPart32
  380. Weld33.Part1 = UnionOperation9
  381. Weld33.part1 = UnionOperation9
  382. MeshPart34.Name = "Tail"
  383. MeshPart34.Parent = Model0
  384. MeshPart34.CFrame = CFrame.new(90.9493713, 1.47997928, 5.59194088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  385. MeshPart34.Position = Vector3.new(90.9493713, 1.47997928, 5.59194088)
  386. MeshPart34.Color = Color3.new(0.129412, 0.329412, 0.72549)
  387. MeshPart34.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
  388. MeshPart34.BrickColor = BrickColor.new("Deep blue")
  389. MeshPart34.CanCollide = false
  390. MeshPart34.Material = Enum.Material.SmoothPlastic
  391. MeshPart34.brickColor = BrickColor.new("Deep blue")
  392. Weld35.Name = "Joint"
  393. Weld35.Parent = MeshPart34
  394. Weld35.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  395. Weld35.Part0 = MeshPart34
  396. Weld35.Part1 = UnionOperation1
  397. Weld35.part1 = UnionOperation1
  398. Humanoid36.Parent = Model0
  399. Humanoid36.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  400. Humanoid36.Health = 6500
  401. Humanoid36.LeftLeg = MeshPart31
  402. Humanoid36.MaxHealth = 6500
  403. Humanoid36.MaxSlopeAngle = 89.900001525879
  404. Humanoid36.RightLeg = MeshPart30
  405. Humanoid36.Torso = Part15
  406. Humanoid36.maxHealth = 6500
  407. Part37.Name = "Wheelchair"
  408. Part37.Parent = Model0
  409. Part37.CFrame = CFrame.new(90.9493713, 2.14998198, 3.9919579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. Part37.Position = Vector3.new(90.9493713, 2.14998198, 3.9919579)
  411. Part37.Transparency = 1
  412. Part37.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  413. Part37.Anchored = true
  414. Part37.BottomSurface = Enum.SurfaceType.Smooth
  415. Part37.CanCollide = false
  416. Part37.Material = Enum.Material.SmoothPlastic
  417. Part37.TopSurface = Enum.SurfaceType.Smooth
  418. SpecialMesh38.Parent = Part37
  419. SpecialMesh38.MeshId = "rbxassetid://1226669573"
  420. SpecialMesh38.Scale = Vector3.new(2, 2, 2)
  421. SpecialMesh38.TextureId = "rbxassetid://1226669284"
  422. SpecialMesh38.MeshType = Enum.MeshType.FileMesh
  423. Script39.Name = "REOOFING"
  424. Script39.Parent = Model0
  425. table.insert(cors,sandbox(Script39,function()
  426. IT = Instance.new
  427. CF = CFrame.new
  428. VT = Vector3.new
  429. RAD = math.rad
  430. C3 = Color3.new
  431. UD2 = UDim2.new
  432. BRICKC = BrickColor.new
  433. ANGLES = CFrame.Angles
  434. EULER = CFrame.fromEulerAnglesXYZ
  435. COS = math.cos
  436. ACOS = math.acos
  437. SIN = math.sin
  438. ASIN = math.asin
  439. ABS = math.abs
  440. MRANDOM = math.random
  441. FLOOR = math.floor
  442.  
  443. local GYRO = nil
  444. local CHARACTER = script.Parent
  445. local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
  446. local TORSO = CHARACTER.Torso
  447. local ROOT = CHARACTER.HumanoidRootPart
  448. local RIGHTARM = CHARACTER["Right Arm"]
  449. local LEFTARM = CHARACTER["Left Arm"]
  450. local RIGHTLEG = CHARACTER["Right Leg"]
  451. local LEFTLEG = CHARACTER["Left Leg"]
  452. RootJoint = ROOT["Root"]
  453. Neck = TORSO["Head"]
  454. RightShoulder = TORSO["RArm"]
  455. LeftShoulder = TORSO["LArm"]
  456. RightHip = TORSO["RLeg"]
  457. LeftHip = TORSO["LLeg"]
  458. local BODY = {}
  459. local CHAIR = CHARACTER.Wheelchair
  460. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  461. if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
  462. table.insert(BODY,CHILD)
  463. end
  464. end
  465. local ATTACKING = false
  466. if script:FindFirstChild("Color") then
  467. script.Color.Parent = game.Lighting
  468. end
  469. local HIT = false
  470. local MUSIC = script.Music
  471. local DEAD = false
  472. MUSIC:Play()
  473. local CLUBSMESH = 2761335666
  474. local DIAMONDMESH = 1254392112
  475. local SPADEMESH = 2760895053
  476. local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
  477. local SCYTHEMESH = 455516381
  478. local SINE = 0
  479. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  480.  
  481. Debris = game:GetService("Debris")
  482.  
  483. local Effects = IT("Folder",CHARACTER)
  484.  
  485. --//=================================\\
  486. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  487. --\\=================================//
  488.  
  489. ArtificialHB = Instance.new("BindableEvent", script)
  490. ArtificialHB.Name = "ArtificialHB"
  491.  
  492. script:WaitForChild("ArtificialHB")
  493.  
  494. frame = 1/60
  495. tf = 0
  496. allowframeloss = false
  497. tossremainder = false
  498. lastframe = tick()
  499. script.ArtificialHB:Fire()
  500.  
  501. game:GetService("RunService").Heartbeat:connect(function(s, p)
  502. tf = tf + s
  503. if tf >= frame then
  504. if allowframeloss then
  505. script.ArtificialHB:Fire()
  506. lastframe = tick()
  507. else
  508. for i = 1, math.floor(tf / frame) do
  509. script.ArtificialHB:Fire()
  510. end
  511. lastframe = tick()
  512. end
  513. if tossremainder then
  514. tf = 0
  515. else
  516. tf = tf - frame * math.floor(tf / frame)
  517. end
  518. end
  519. end)
  520.  
  521. function PositiveAngle(NUMBER)
  522. if NUMBER >= 0 then
  523. NUMBER = 0
  524. end
  525. return NUMBER
  526. end
  527.  
  528. function NegativeAngle(NUMBER)
  529. if NUMBER <= 0 then
  530. NUMBER = 0
  531. end
  532. return NUMBER
  533. end
  534.  
  535. function Swait(NUMBER)
  536. if NUMBER == 0 or NUMBER == nil then
  537. ArtificialHB.Event:wait()
  538. else
  539. for i = 1, NUMBER do
  540. ArtificialHB.Event:wait()
  541. end
  542. end
  543. end
  544.  
  545. --//=================================\\
  546. --|| FUNCTIONS
  547. --\\=================================//
  548.  
  549. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  550. local NEWMESH = IT(MESH)
  551. if MESH == "SpecialMesh" then
  552. NEWMESH.MeshType = MESHTYPE
  553. if MESHID ~= "nil" and MESHID ~= "" then
  554. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  555. end
  556. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  557. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  558. end
  559. end
  560. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  561. NEWMESH.Scale = SCALE
  562. NEWMESH.Parent = PARENT
  563. return NEWMESH
  564. end
  565.  
  566. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  567. local NEWPART = IT("Part")
  568. NEWPART.formFactor = FORMFACTOR
  569. NEWPART.Reflectance = REFLECTANCE
  570. NEWPART.Transparency = TRANSPARENCY
  571. NEWPART.CanCollide = false
  572. NEWPART.Locked = true
  573. NEWPART.Anchored = true
  574. if ANCHOR == false then
  575. NEWPART.Anchored = false
  576. end
  577. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  578. NEWPART.Name = NAME
  579. NEWPART.Size = SIZE
  580. NEWPART.Position = TORSO.Position
  581. NEWPART.Material = MATERIAL
  582. NEWPART:BreakJoints()
  583. NEWPART.Parent = PARENT
  584. return NEWPART
  585. end
  586.  
  587. local function weldBetween(a, b)
  588. local weldd = IT("ManualWeld")
  589. weldd.Part0 = a
  590. weldd.Part1 = b
  591. weldd.C0 = CF()
  592. weldd.C1 = b.CFrame:inverse() * a.CFrame
  593. weldd.Parent = a
  594. return weldd
  595. end
  596.  
  597. local S = IT("Sound")
  598. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  599. local NEWSOUND = nil
  600. coroutine.resume(coroutine.create(function()
  601. NEWSOUND = S:Clone()
  602. NEWSOUND.Parent = PARENT
  603. NEWSOUND.Volume = VOLUME
  604. NEWSOUND.Pitch = PITCH
  605. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  606. NEWSOUND:play()
  607. if DOESLOOP == true then
  608. NEWSOUND.Looped = true
  609. else
  610. repeat wait(1) until NEWSOUND.Playing == false
  611. NEWSOUND:remove()
  612. end
  613. end))
  614. return NEWSOUND
  615. end
  616.  
  617. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  618. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  619. end
  620.  
  621. function ApplyDamage(Humanoid,Damage)
  622. Damage = Damage * 1
  623. if Humanoid.Health ~= 0 then
  624. Humanoid.Health = Humanoid.Health - Damage
  625. end
  626. end
  627.  
  628. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  629. for index, CHILD in pairs(workspace:GetDescendants()) do
  630. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  631. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  632. if HUM then
  633. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  634. if TORSO then
  635. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  636. if INSTAKILL == true then
  637. CHILD:BreakJoints()
  638. else
  639. local DMG = MRANDOM(MINDMG,MAXDMG)
  640. ApplyDamage(HUM,DMG)
  641. end
  642. if FLING > 0 then
  643. for _, c in pairs(CHILD:GetChildren()) do
  644. if c:IsA("BasePart") then
  645. local bv = Instance.new("BodyVelocity")
  646. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  647. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  648. bv.Parent = c
  649. Debris:AddItem(bv,0.05)
  650. end
  651. end
  652. end
  653. end
  654. end
  655. end
  656. end
  657. end
  658. end
  659.  
  660. --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})
  661. function WACKYEFFECT(Table)
  662. local TYPE = (Table.EffectType or "Sphere")
  663. local SIZE = (Table.Size or VT(1,1,1))
  664. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  665. local TRANSPARENCY = (Table.Transparency or 0)
  666. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  667. local CFRAME = (Table.CFrame or TORSO.CFrame)
  668. local MOVEDIRECTION = (Table.MoveToPos or nil)
  669. local ROTATION1 = (Table.RotationX or 0)
  670. local ROTATION2 = (Table.RotationY or 0)
  671. local ROTATION3 = (Table.RotationZ or 0)
  672. local MATERIAL = (Table.Material or "Neon")
  673. local COLOR = (Table.Color or C3(1,1,1))
  674. local TIME = (Table.Time or 45)
  675. local SOUNDID = (Table.SoundID or nil)
  676. local SOUNDPITCH = (Table.SoundPitch or nil)
  677. local SOUNDVOLUME = (Table.SoundVolume or nil)
  678. coroutine.resume(coroutine.create(function()
  679. local PLAYSSOUND = false
  680. local SOUND = nil
  681. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  682. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  683. PLAYSSOUND = true
  684. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  685. end
  686. EFFECT.Color = COLOR
  687. local MSH = nil
  688. if TYPE == "Sphere" then
  689. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  690. elseif TYPE == "Block" or TYPE == "Box" then
  691. MSH = IT("BlockMesh",EFFECT)
  692. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  693. elseif TYPE == "Wave" then
  694. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  695. elseif TYPE == "Ring" then
  696. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  697. elseif TYPE == "Slash" then
  698. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  699. elseif TYPE == "Round Slash" then
  700. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  701. elseif TYPE == "Swirl" then
  702. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  703. elseif TYPE == "Skull" then
  704. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  705. elseif TYPE == "Crystal" then
  706. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  707. end
  708. if MSH ~= nil then
  709. local MOVESPEED = nil
  710. if MOVEDIRECTION ~= nil then
  711. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  712. end
  713. local GROWTH = SIZE - ENDSIZE
  714. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  715. if TYPE == "Block" then
  716. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  717. else
  718. EFFECT.CFrame = CFRAME
  719. end
  720. for LOOP = 1, TIME+1 do
  721. Swait()
  722. MSH.Scale = MSH.Scale - GROWTH/TIME
  723. if TYPE == "Wave" then
  724. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  725. end
  726. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  727. if TYPE == "Block" then
  728. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  729. else
  730. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  731. end
  732. if MOVEDIRECTION ~= nil then
  733. local ORI = EFFECT.Orientation
  734. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  735. EFFECT.Orientation = ORI
  736. end
  737. end
  738. if PLAYSSOUND == false then
  739. EFFECT:remove()
  740. else
  741. repeat Swait() until SOUND.Playing == false
  742. EFFECT:remove()
  743. end
  744. else
  745. if PLAYSSOUND == false then
  746. EFFECT:remove()
  747. else
  748. repeat Swait() until SOUND.Playing == false
  749. EFFECT:remove()
  750. end
  751. end
  752. end))
  753. end
  754.  
  755. function Transparent(CY)
  756. for E = 1, #BODY do
  757. if BODY[E].ClassName ~= "Beam" then
  758. BODY[E].Transparency = CY
  759. else
  760. BODY[E].Transparency = NumberSequence.new(CY)
  761. end
  762. end
  763. end
  764.  
  765. --//=================================\\
  766. --|| CLERPING
  767. --\\=================================//
  768.  
  769. function QuaternionFromCFrame(cf)
  770. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  771. local trace = m00 + m11 + m22
  772. if trace > 0 then
  773. local s = math.sqrt(1 + trace)
  774. local recip = 0.5 / s
  775. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  776. else
  777. local i = 0
  778. if m11 > m00 then
  779. i = 1
  780. end
  781. if m22 > (i == 0 and m00 or m11) then
  782. i = 2
  783. end
  784. if i == 0 then
  785. local s = math.sqrt(m00 - m11 - m22 + 1)
  786. local recip = 0.5 / s
  787. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  788. elseif i == 1 then
  789. local s = math.sqrt(m11 - m22 - m00 + 1)
  790. local recip = 0.5 / s
  791. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  792. elseif i == 2 then
  793. local s = math.sqrt(m22 - m00 - m11 + 1)
  794. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  795. end
  796. end
  797. end
  798.  
  799. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  800. local xs, ys, zs = x + x, y + y, z + z
  801. local wx, wy, wz = w * xs, w * ys, w * zs
  802. local xx = x * xs
  803. local xy = x * ys
  804. local xz = x * zs
  805. local yy = y * ys
  806. local yz = y * zs
  807. local zz = z * zs
  808. 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))
  809. end
  810.  
  811. function QuaternionSlerp(a, b, t)
  812. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  813. local startInterp, finishInterp;
  814. if cosTheta >= 0.0001 then
  815. if (1 - cosTheta) > 0.0001 then
  816. local theta = ACOS(cosTheta)
  817. local invSinTheta = 1 / SIN(theta)
  818. startInterp = SIN((1 - t) * theta) * invSinTheta
  819. finishInterp = SIN(t * theta) * invSinTheta
  820. else
  821. startInterp = 1 - t
  822. finishInterp = t
  823. end
  824. else
  825. if (1 + cosTheta) > 0.0001 then
  826. local theta = ACOS(-cosTheta)
  827. local invSinTheta = 1 / SIN(theta)
  828. startInterp = SIN((t - 1) * theta) * invSinTheta
  829. finishInterp = SIN(t * theta) * invSinTheta
  830. else
  831. startInterp = t - 1
  832. finishInterp = t
  833. end
  834. end
  835. 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
  836. end
  837.  
  838. function Clerp(a, b, t)
  839. local qa = {QuaternionFromCFrame(a)}
  840. local qb = {QuaternionFromCFrame(b)}
  841. local ax, ay, az = a.x, a.y, a.z
  842. local bx, by, bz = b.x, b.y, b.z
  843. local _t = 1 - t
  844. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  845. end
  846.  
  847. function ClerpBody(TABLE,PRIORITY)
  848. if PRIORITY == "Attack" or ATTACKING == false then
  849. RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
  850. if HIT == false then
  851. Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
  852. end
  853. RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
  854. LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
  855. RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
  856. LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
  857. end
  858. end
  859.  
  860. --//=================================\\
  861. --|| ATRIFICIAL INTELLIGENCE
  862. --\\=================================//
  863.  
  864. local GoTo = function(TO)
  865. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
  866. CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
  867. end
  868.  
  869. function TestForTarget(PRT,target)
  870. local to = true
  871. if PRT then
  872. if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
  873. to = false
  874. end
  875. end
  876. return to
  877. end
  878.  
  879. function ChaosOrAnything()
  880. local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
  881. PLAY[MRANDOM(1,2)]:Play()
  882. end
  883.  
  884. function OhOhOh(TARGET)
  885. local FOE = TARGET.Torso
  886. if FOE then
  887. ATTACKING = true
  888. ChaosOrAnything()
  889. local E = 0
  890. repeat
  891. Swait()
  892. E = E + 1
  893. ClerpBody({
  894. CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  895. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  896. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  897. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  898. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  899. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  900. },"Attack")
  901. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  902. for i = 1, MRANDOM(3,5) do
  903. local TO = FOE.Position
  904. local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
  905. CHARACTER:SetPrimaryPartCFrame(MOVETO)
  906. Transparent(0)
  907. ROOT.OH:Play()
  908. for i = 1, 5 do
  909. ClerpBody({
  910. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  911. CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
  912. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
  913. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
  914. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  915. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  916. },"Attack")
  917. end
  918. for i = 1, 3 do
  919. local ANGLE = (50-(25*i))/1.25
  920. coroutine.resume(coroutine.create(function()
  921. local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
  922. local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
  923. CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
  924. CLUB.CFrame = TOFIREFROM
  925. local GO = IT("BodyVelocity",CLUB)
  926. GO.Velocity = CLUB.CFrame.lookVector*65
  927. Debris:AddItem(CLUB,1)
  928. CLUB.Touched:Connect(function(HIT)
  929. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  930. CLUB:Remove()
  931. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  932. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  933. end
  934. end)
  935. end))
  936. end
  937. for i = 1, 35 do
  938. Swait()
  939. ClerpBody({
  940. CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  941. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  942. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  943. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  944. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  945. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  946. },"Attack")
  947. Transparent(i/35)
  948. end
  949. if TARGET.Health <= 0 or DEAD == true then
  950. break
  951. end
  952. end
  953. ATTACKING = false
  954. for i = 1, 25 do
  955. Swait()
  956. Transparent((25-i)/25)
  957. end
  958. Transparent(0)
  959. end
  960. end
  961. function Diamonds(TARGET)
  962. local FOE = TARGET.Torso
  963. if FOE then
  964. ChaosOrAnything()
  965. ATTACKING = true
  966. coroutine.resume(coroutine.create(function()
  967. repeat
  968. Swait()
  969. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
  970. ClerpBody({
  971. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  972. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  973. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  974. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  975. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  976. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  977. },"Attack")
  978. until ATTACKING == false
  979. end))
  980. for i = 1, MRANDOM(25,35) do
  981. coroutine.resume(coroutine.create(function()
  982. local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
  983. CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
  984. DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
  985. for i = 1, 15 do
  986. Swait()
  987. DIAMOND.Transparency = (15-i)/15
  988. DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
  989. end
  990. DIAMOND.Anchored = false
  991. DIAMOND.Transparency = 0
  992. local GO = IT("BodyVelocity",DIAMOND)
  993. GO.Velocity = DIAMOND.CFrame.lookVector*15
  994. Debris:AddItem(DIAMOND,1)
  995. DIAMOND.Touched:Connect(function(HIT)
  996. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  997. DIAMOND:Remove()
  998. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  999. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1000. end
  1001. end)
  1002. for i = 1, 5 do
  1003. Swait()
  1004. GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
  1005. end
  1006. end))
  1007. if TARGET.Health <= 0 or DEAD == true then
  1008. break
  1009. end
  1010. Swait(7)
  1011. end
  1012. ATTACKING = false
  1013. end
  1014. end
  1015. function RingAround(TARGET)
  1016. local FOE = TARGET.Torso
  1017. if FOE then
  1018. ATTACKING = true
  1019. ChaosOrAnything()
  1020. local E = 0
  1021. repeat
  1022. Swait()
  1023. E = E + 1
  1024. ClerpBody({
  1025. CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1026. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1027. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1028. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1029. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1030. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1031. },"Attack")
  1032. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  1033. coroutine.resume(coroutine.create(function()
  1034. repeat
  1035. Swait()
  1036. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1037. ClerpBody({
  1038. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1039. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1040. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1041. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1042. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1043. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1044. },"Attack")
  1045. until ATTACKING == false
  1046. end))
  1047. for i = 1, MRANDOM(2,4) do
  1048. local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
  1049. local SPADES = {}
  1050. for i = 1, 10 do
  1051. local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
  1052. CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
  1053. SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
  1054. SPADE.Touched:Connect(function(HIT)
  1055. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1056. SPADE:Remove()
  1057. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1058. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  1059. end
  1060. end)
  1061. table.insert(SPADES,SPADE)
  1062. end
  1063. for i = 1, 25 do
  1064. for E = 1, #SPADES do
  1065. SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
  1066. SPADES[E].Transparency = (10-i)/9.5
  1067. end
  1068. Swait()
  1069. end
  1070. wait(0.2)
  1071. for E = 1, #SPADES do
  1072. coroutine.resume(coroutine.create(function()
  1073. local SPADE = SPADES[E]
  1074. for i = 1, 15 do
  1075. SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
  1076. Swait()
  1077. end
  1078. SPADE.Anchored = false
  1079. local GO = IT("BodyVelocity",SPADE)
  1080. GO.Velocity = SPADE.CFrame.lookVector*5
  1081. GO.MaxForce = GO.MaxForce * 100
  1082. Debris:AddItem(SPADE,1)
  1083. SPADE.Touched:Connect(function(HIT)
  1084. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1085. SPADE:Remove()
  1086. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1087. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  1088. end
  1089. end)
  1090. for i = 1, 15 do
  1091. Swait()
  1092. GO.Velocity = SPADE.CFrame.lookVector*(5*i)
  1093. end
  1094. end))
  1095. Swait(5)
  1096. end
  1097. if TARGET.Health <= 0 or DEAD == true then
  1098. break
  1099. end
  1100. end
  1101. wait(0.5)
  1102. ATTACKING = false
  1103. end
  1104. end
  1105. function HeartsGoesOut(TARGET)
  1106. local FOE = TARGET.Torso
  1107. if FOE then
  1108. ChaosOrAnything()
  1109. ATTACKING = true
  1110. coroutine.resume(coroutine.create(function()
  1111. repeat
  1112. Swait()
  1113. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1114. ClerpBody({
  1115. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1116. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1117. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1118. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1119. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1120. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1121. },"Attack")
  1122. until ATTACKING == false
  1123. end))
  1124. for i = 1, MRANDOM(5,7) do
  1125. local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
  1126. SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
  1127. coroutine.resume(coroutine.create(function()
  1128. local HEARTS = {}
  1129. for i = 1, 4 do
  1130. local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
  1131. CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
  1132. HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
  1133. HEART.Touched:Connect(function(HIT)
  1134. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1135. HEART:Remove()
  1136. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1137. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1138. end
  1139. end)
  1140. table.insert(HEARTS,HEART)
  1141. end
  1142. for i = 1, 10 do
  1143. Swait()
  1144. for E = 1, #HEARTS do
  1145. HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
  1146. HEARTS[E].Transparency = (10-i)/9.5
  1147. end
  1148. end
  1149. local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
  1150. for i = 1, 100 do
  1151. Swait()
  1152. SPAWN = SPAWN*CF(0,0,-1)
  1153. for E = 1, #HEARTS do
  1154. HEARTS[E].Transparency = 0
  1155. HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
  1156. end
  1157. end
  1158. for E = 1, #HEARTS do
  1159. HEARTS[E]:Destroy()
  1160. end
  1161. end))
  1162. Swait(35)
  1163. if TARGET.Health <= 0 or DEAD == true then
  1164. break
  1165. end
  1166. end
  1167. wait(0.5)
  1168. ATTACKING = false
  1169. end
  1170. end
  1171. function Meta(TARGET)
  1172. local FOE = TARGET.Torso
  1173. if FOE then
  1174. ROOT.Metamorph:Play()
  1175. ATTACKING = true
  1176. local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
  1177. CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
  1178. SCYTHE.CFrame = TORSO.CFrame
  1179. for i = 1, 3 do
  1180. for i = 1, 15 do
  1181. Swait()
  1182. ClerpBody({
  1183. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1184. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1185. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1186. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1187. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1188. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1189. },"Attack")
  1190. Transparent(i/15)
  1191. SCYTHE.Transparency = (15-i)/15
  1192. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1193. end
  1194. for i = 1, 15 do
  1195. Swait()
  1196. ClerpBody({
  1197. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1198. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1199. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1200. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1201. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1202. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1203. },"Attack")
  1204. Transparent((15-i)/15)
  1205. SCYTHE.Transparency = i/15
  1206. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1207. end
  1208. end
  1209. for i = 1, 15 do
  1210. Swait()
  1211. ClerpBody({
  1212. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1213. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1214. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1215. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1216. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1217. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1218. },"Attack")
  1219. Transparent(i/15)
  1220. SCYTHE.Transparency = (15-i)/15
  1221. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1222. end
  1223. Transparent(1)
  1224. SCYTHE.Transparency = 0
  1225. local SCYTHES = {SCYTHE}
  1226. for i = 1, 3 do
  1227. local COPY = SCYTHE:Clone()
  1228. COPY.Parent = workspace
  1229. COPY.CFrame = SCYTHE.CFrame
  1230. table.insert(SCYTHES,COPY)
  1231. end
  1232. for E = 1, #SCYTHES do
  1233. local DELAY = false
  1234. SCYTHES[E].Touched:Connect(function(HIT)
  1235. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
  1236. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
  1237. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1238. DELAY = true
  1239. wait(1)
  1240. DELAY = false
  1241. end
  1242. end)
  1243. end
  1244. local NOW = ROOT.CFrame
  1245. CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
  1246. HUMANOID.Parent = nil
  1247. local Y = FOE.Position.Y
  1248. for i = 1, 750 do
  1249. Swait()
  1250. for E = 1, #SCYTHES do
  1251. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,CF(FOE.Position.X,Y,FOE.Position.Z)*ANGLES(0,RAD((360/4*E)+SINE),0)*CF(0,0,45*SIN(i/50)),0.1).p)*ANGLES(0,RAD(SINE*5),0)
  1252. end
  1253. if TARGET.Health <= 0 or DEAD == true then
  1254. break
  1255. end
  1256. end
  1257. for i = 1, 25 do
  1258. for E = 1, #SCYTHES do
  1259. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
  1260. end
  1261. Swait()
  1262. end
  1263. CHARACTER:SetPrimaryPartCFrame(NOW)
  1264. HUMANOID.Parent = CHARACTER
  1265. for i = 1, 15 do
  1266. Swait()
  1267. ClerpBody({
  1268. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1269. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1270. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1271. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1272. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1273. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1274. },"Attack")
  1275. Transparent((15-i)/15)
  1276. for E = 1, #SCYTHES do
  1277. SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
  1278. SCYTHES[E].Transparency = i/15
  1279. end
  1280. end
  1281. for E = 1, #SCYTHES do
  1282. SCYTHES[E]:Remove()
  1283. end
  1284. ATTACKING = false
  1285. end
  1286. end
  1287. local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
  1288.  
  1289. --//=================================\\
  1290. --|| WRAP
  1291. --\\=================================//
  1292.  
  1293. function BEGINAI()
  1294. local TORSOROT = 0
  1295. CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
  1296. coroutine.resume(coroutine.create(function()
  1297. game:GetService("RunService").Heartbeat:connect(function()
  1298. local DEFAULTS = {
  1299. CF(0,0,0),
  1300. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
  1301. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1302. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1303. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
  1304. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
  1305. }
  1306. SINE = SINE + 1
  1307. end)
  1308. while true do
  1309. TORSOROT = 35
  1310. for i = 1, 5 do
  1311. ClerpBody({
  1312. CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1313. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
  1314. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1315. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1316. CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
  1317. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1318. },nil)
  1319. end
  1320. for i = 1, 15 do
  1321. Swait()
  1322. ClerpBody({
  1323. CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1324. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
  1325. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1326. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
  1327. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1328. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1329. },nil)
  1330. if DEAD == true then
  1331. break
  1332. end
  1333. end
  1334. if DEAD == true then
  1335. break
  1336. end
  1337. TORSOROT = -35
  1338. for i = 1, 5 do
  1339. ClerpBody({
  1340. CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1341. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
  1342. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1343. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1344. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
  1345. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
  1346. },nil)
  1347. end
  1348. for i = 1, 15 do
  1349. Swait()
  1350. ClerpBody({
  1351. CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1352. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
  1353. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
  1354. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1355. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
  1356. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
  1357. },nil)
  1358. if DEAD == true then
  1359. break
  1360. end
  1361. end
  1362. if DEAD == true then
  1363. break
  1364. end
  1365. end
  1366. end))
  1367. local TARGET = nil
  1368. local TARGETHUM = nil
  1369. coroutine.resume(coroutine.create(function()
  1370. --local h = HUMANOID
  1371. local pathService = game:GetService("PathfindingService")
  1372. local goToPos = function(loc,target)
  1373. local distance = (loc-ROOT.Position).magnitude
  1374. local start = tick()
  1375. while distance > 7 do
  1376. if target then
  1377. if target.Torso and ATTACKING == false then
  1378. GoTo(loc+VT(0,4.5,0))
  1379. Swait()
  1380. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
  1381. if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
  1382. break
  1383. end
  1384. distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
  1385. else
  1386. break
  1387. end
  1388. else
  1389. break
  1390. end
  1391. end
  1392. end
  1393.  
  1394. while true do
  1395. if DEAD == true then
  1396. break
  1397. end
  1398. Swait()
  1399. if TARGETHUM then
  1400. local target = TARGETHUM
  1401. if TARGETHUM.Torso then
  1402. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
  1403. if TestForTarget(RAYTEST,target) == true then
  1404. local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
  1405. local didBreak = false
  1406. local targetStart
  1407. if target and ROOT and target.Torso then
  1408. targetStart = target.Torso.Position
  1409. local previous = ROOT.Position
  1410. local points = path:GetWaypoints()
  1411. local s = #points > 1 and 2 or 1
  1412. for i = s,#points do
  1413. if GYRO == nil then
  1414. local point = points[i].Position
  1415. if didBreak then
  1416. break
  1417. end
  1418. if target and target.Torso and target.Health > 0 and ATTACKING == false then
  1419. if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
  1420. local pos = previous:lerp(point,0.65)
  1421. goToPos(previous:lerp(point,0.65),target)
  1422. previous = point
  1423. end
  1424. else
  1425. didBreak = true
  1426. break
  1427. end
  1428. end
  1429. end
  1430. end
  1431. if not didBreak and targetStart then
  1432. goToPos(targetStart)
  1433. end
  1434. else
  1435. if ATTACKING == false then
  1436. GoTo(target.Torso.Position+VT(0,2.5,0))
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end))
  1443. HUMANOID.Died:Connect(function()
  1444. if DEAD == false then
  1445. DEAD = true
  1446. repeat
  1447. Swait()
  1448. until ATTACKING == false
  1449. CHAIR.Transparency = 0
  1450. Transparent(0)
  1451. script.Music:Stop()
  1452. ROOT.Deathed:Play()
  1453. repeat
  1454. Swait()
  1455. ClerpBody({
  1456. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1457. CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
  1458. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
  1459. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
  1460. CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
  1461. CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
  1462. },nil)
  1463. until ROOT.Deathed.Playing == false
  1464. CHARACTER.Head.Nametag:Remove()
  1465. TORSO.Neck:Remove()
  1466. TORSO.Die:Play()
  1467. ROOT:Remove()
  1468. CHARACTER:BreakJoints()
  1469. CHAIR:Destroy()
  1470. Debris:AddItem(CHARACTER,5)
  1471. end
  1472. end)
  1473. HUMANOID.HealthChanged:Connect(function()
  1474. if HIT == false and DEAD == false then
  1475. HIT = true
  1476. local HA = {ROOT.Ha1,ROOT.Ha2}
  1477. HA[MRANDOM(1,2)]:Play()
  1478. for i = 1, 100 do
  1479. Swait()
  1480. if ATTACKING == true then
  1481. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
  1482. else
  1483. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*ANGLES(0,RAD(-TORSOROT),0)*CF(0,-1,0), 0.7)
  1484. end
  1485. if DEAD == true then
  1486. break
  1487. end
  1488. end
  1489. HIT = false
  1490. end
  1491. end)
  1492. while true do
  1493. if DEAD == true then
  1494. break
  1495. end
  1496. local TARGETVARIANTS = {}
  1497. TARGET = nil
  1498. for index, CHILD in pairs(workspace:GetChildren()) do
  1499. if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
  1500. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1501. if HUMAN then
  1502. if HUMAN.Health > 0 then
  1503. if HUMAN.Torso then
  1504. local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
  1505. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  1506. end
  1507. end
  1508. end
  1509. end
  1510. end
  1511. local DIST = math.huge
  1512. for E = 1, #TARGETVARIANTS do
  1513. local PLAYER = TARGETVARIANTS[E]
  1514. local CHARACTER = PLAYER[1]
  1515. local DISTANCE = PLAYER[2]
  1516. if DISTANCE < DIST then
  1517. DIST = DISTANCE
  1518. TARGET = CHARACTER
  1519. end
  1520. end
  1521. if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
  1522. TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
  1523. --[[HUMANOID.WalkSpeed = 22
  1524. HUMANOID.JumpPower = 125]]
  1525. local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
  1526. if DIST <= 25 and TestForTarget(RAY,TARGETHUM) == false and (TARGETHUM.Torso.Position.Y > ROOT.Position.Y-1 or TARGETHUM.Torso.Position.Y < ROOT.Position.Y+2) then
  1527. ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
  1528. end
  1529. else
  1530. TARGETHUM = nil
  1531. end
  1532. wait()
  1533. end
  1534. end
  1535.  
  1536. BEGINAI()
  1537. end))
  1538. Sound40.Name = "Music"
  1539. Sound40.Parent = Script39
  1540. Sound40.Looped = true
  1541. Sound40.SoundId = "rbxassetid://2545086702"
  1542. Sound40.Volume = 2.5
  1543. for i,v in pairs(mas:GetChildren()) do
  1544. v.Parent = script
  1545. pcall(function() v:MakeJoints() end)
  1546. end
  1547. mas:Destroy()
  1548. for i,v in pairs(cors) do
  1549. spawn(function()
  1550. pcall(v)
  1551. end)
  1552. end
Advertisement
Add Comment
Please, Sign In to add comment