HenloMyDude

orb fighter

Dec 20th, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.33 KB | None | 0 0
  1.  
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("hi")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. plr = owner
  8. char = plr.Character
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. hed = char.Head
  12. root = char.HumanoidRootPart
  13. hum = char.Humanoid
  14. dancin = false
  15.  
  16. clerp = function(toclerp, cf, number)
  17. local joint = toclerp
  18. joint.C0 = joint.C0:Lerp(cf, number)
  19. end
  20.  
  21. clerp2 = function(toclerp, cf)
  22. local joint = toclerp
  23. joint.C0 = cf
  24. end
  25.  
  26. clerp3 = function(toclerp, cf, number)
  27. local joint = toclerp
  28. joint.C1 = joint.C1:Lerp(cf, number)
  29. end
  30.  
  31. Swait,swait = function(number)
  32. if number == 0 or number == nil then
  33. game:GetService("RunService").Heartbeat:Wait()
  34. else
  35. for i = 1,number do
  36. game:GetService("RunService").Heartbeat:Wait()
  37. end
  38. end
  39. end
  40.  
  41. ezweld = function(p, a, b, cf)
  42. local weld = Instance.new("Weld",p)
  43. weld.Part0 = a
  44. weld.Part1 = b
  45. weld.C0 = cf
  46. return weld
  47. end
  48.  
  49. NewSound = function(p, id, pit, vol, loop)
  50. local Sound = Instance.new("Sound",p)
  51. Sound.Pitch = pit
  52. Sound.Volume = vol
  53. Sound.SoundId = "rbxassetid://" ..id
  54. Sound.Looped = loop
  55. Sound:Play()
  56. return Sound
  57. end
  58.  
  59. IT = Instance.new
  60. Rad = math.rad
  61. Cos = math.cos
  62. Sin = math.sin
  63. BrickC = BrickColor.new
  64. C3 = Color3.new
  65. VT = Vector3.new
  66.  
  67. anim = "Idle"
  68. attack = false
  69. local RS = char.Torso["Right Shoulder"]
  70. local LS = char.Torso["Left Shoulder"]
  71. local RH = char.Torso["Right Hip"]
  72. local LH = char.Torso["Left Hip"]
  73. local neck = char.Torso["Neck"]
  74. local anim = "Idle"
  75. local animate = char.Animate
  76. local root = char.HumanoidRootPart
  77. local rootj = root.RootJoint
  78. local timepos = 0
  79. local sine = 0
  80. local RSnor = RS.C0
  81. local LSnor = LS.C0
  82. local RHnor = RH.C0
  83. local LHnor = LH.C0
  84. local RSnor2 = RS.C1
  85. local LSnor2 = LS.C1
  86. local RHnor2 = RH.C1
  87. local LHnor2 = LH.C1
  88. local rootjnor = rootj.C0
  89. local necknor = neck.C0
  90. local tors = char.Torso
  91. hum.Animator:remove()
  92. mouse = plr:GetMouse()
  93. hold = false
  94. Debris = game:GetService("Debris")
  95.  
  96. local dustp = Instance.new("Part",char)
  97. dustp.Transparency = 1
  98. dustp.Size = Vector3.new(0.1, 0.1, 0.1)
  99. dustp.CanCollide = false
  100. dustp.Locked = true
  101. local dustj = ezweld(char, root, dustp, CFrame.new(0, -tors.Size.y - 0.5, 0))
  102. local dust = Instance.new("ParticleEmitter",dustp)
  103. dust.Rate = 3
  104. dust.Lifetime = NumberRange.new(0.35)
  105. dust.Texture = "rbxassetid://420061161"
  106. dust.Speed = NumberRange.new(2)
  107. dust.EmissionDirection = "Back"
  108. dust.Rotation = NumberRange.new(155)
  109. dust.RotSpeed = NumberRange.new(15)
  110. dust.Enabled = false
  111. dust.Size = NumberSequence.new(tors.Size.y - 1.5, tors.Size.y - 0.75)
  112. dust.Transparency = NumberSequence.new(0.25, 1)
  113. sped = 16
  114. hee = 15
  115. ae = false
  116. emrad = 0
  117. orbtype = "fire"
  118.  
  119. function BODYPOSITION(PARENT, POSITION)
  120. local BODYPOS = Instance.new("BodyPosition",PARENT)
  121. BODYPOS.Position = POSITION
  122. return BODYPOS
  123. end
  124.  
  125. local aimpart = Instance.new("Part",char)
  126. aimpart.Size = Vector3.new(0.1, 0.1, 0.1)
  127. aimpart.Transparency = 1
  128. aimpart.CanCollide = false
  129. local joint = Instance.new("Weld",char)
  130. joint.Part0 = aimpart
  131. joint.Part1 = root
  132. joint.C0 = CFrame.new(-5, 0, 0)
  133.  
  134. a = 8000
  135. spino = 0
  136. local orb = Instance.new("Part",char)
  137. orb.Shape = "Ball"
  138. orb.TopSurface = "Smooth"
  139. orb.BottomSurface = "Smooth"
  140. orb.Size = Vector3.new(1, 1, 1)
  141. orb.Reflectance = 0.25
  142. orb.BrickColor = BrickColor.new("Really red")
  143. orb.CanCollide = false
  144. orb.CFrame = aimpart.CFrame
  145. local ofollow = BODYPOSITION(orb, aimpart.Position)
  146. local gyro = Instance.new("BodyGyro",orb)
  147. gyro.CFrame = root.CFrame
  148. gyro.D = 20
  149. gyro.P = 100
  150. gyro.MaxTorque = Vector3.new(0, 4000000, 0)
  151.  
  152. function RayCast(Position, Direction, Range, Ignore)
  153. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  154. end
  155.  
  156. function triburst()
  157. if orbtype == "fire" then
  158. attack = true
  159. local fp1 = Instance.new("Part", char)
  160. fp1.Size = Vector3.new(1.15, 0.1, 0.1)
  161. fp1.Transparency = 1
  162. fp1.CanCollide = false
  163. fp1.CFrame = ra.CFrame
  164. local wld1 = ezweld(char, fp1, ra, CFrame.new(0, 0.51, 0))
  165. local fire = Instance.new("Fire", fp1)
  166. local fp2 = Instance.new("Part", char)
  167. fp2.Size = Vector3.new(1.15, 0.1, 0.1)
  168. fp2.Transparency = 1
  169. fp2.CanCollide = false
  170. fp2.CFrame = la.CFrame
  171. local wld2 = ezweld(char, fp2, la, CFrame.new(0, 0.51, 0))
  172. local fire = Instance.new("Fire", fp2)
  173. fire.Size = 6
  174. Debris:AddItem(fp1, 15)
  175. Debris:AddItem(fp2, 15)
  176. for i = 1,11 do
  177. Swait()
  178. clerp(rootj, rootjnor * CFrame.new(0, 0, 1.25 + 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, 0), 0.15)
  179. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, 0), 0.3)
  180. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  181. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  182. clerp(RS, RSnor * CFrame.new(0, -0.25, 0.35) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  183. clerp(LS, LSnor * CFrame.new(0, -0.25, 0.35) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  184. end
  185. wld1:remove()
  186. fp1.Anchored = false
  187. fp1.CFrame = CFrame.new(ra.Position, mouse.Hit.p)
  188. local hitbox = fp1.Touched:connect(function(hit)
  189. local dud = hit.Parent
  190. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  191. for i,v in pairs (dud:children()) do
  192. if v:IsA("Humanoid") and v.Parent ~= char and not dud:FindFirstChild("cool") then
  193. v.Health = v.Health - 20
  194. local cool = Instance.new("NumberValue", dud) cool.Name = "cool" Debris:AddItem(cool, 0.2)
  195. if torso and dud ~= char then
  196. local fiya = Instance.new("Fire", torso)
  197. fiya.Size = 3.5
  198. Debris:AddItem(fiya, 5)
  199. coroutine.resume(coroutine.create(function()
  200. while fiya.Parent == torso do
  201. wait()
  202. for i,v in pairs (dud:children()) do
  203. if v:IsA("Humanoid") then
  204. v.Health = v.Health - 0.05
  205. end
  206. end
  207. end
  208. end))
  209. end
  210. end
  211. end
  212. end)
  213. local bv = Instance.new("BodyVelocity",fp1)
  214. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  215. bv.Velocity = fp1.CFrame.lookVector * 50
  216. for i = 1,9 do
  217. Swait()
  218. clerp(rootj, rootjnor * CFrame.new(0, 0, 1.25 + 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, 0), 0.15)
  219. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, 0), 0.3)
  220. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  221. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  222. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(25), Rad(90)), 0.3)
  223. clerp(LS, LSnor * CFrame.new(0, -0.25, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  224. end
  225. for i = 1,11 do
  226. Swait()
  227. clerp(rootj, rootjnor * CFrame.new(0, 0, 1.25 + 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, 0), 0.15)
  228. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, 0), 0.3)
  229. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  230. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  231. clerp(RS, RSnor * CFrame.new(0, -0.25, 0.35) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  232. clerp(LS, LSnor * CFrame.new(0, -0.25, 0.35) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  233. end
  234. wld2:remove()
  235. fp2.Anchored = false
  236. fp2.CFrame = CFrame.new(la.Position, mouse.Hit.p)
  237. local hitbox = fp2.Touched:connect(function(hit)
  238. local dud = hit.Parent
  239. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  240. for i,v in pairs (dud:children()) do
  241. if v:IsA("Humanoid") and v.Parent ~= char and not dud:FindFirstChild("cool") then
  242. v.Health = v.Health - 20
  243. local cool = Instance.new("NumberValue", dud) cool.Name = "cool" Debris:AddItem(cool, 0.2)
  244. if torso and dud ~= char then
  245. local fiya = Instance.new("Fire", torso)
  246. fiya.Size = 3.5
  247. Debris:AddItem(fiya, 5)
  248. coroutine.resume(coroutine.create(function()
  249. while fiya.Parent == torso do
  250. wait()
  251. for i,v in pairs (dud:children()) do
  252. if v:IsA("Humanoid") then
  253. v.Health = v.Health - 0.05
  254. end
  255. end
  256. end
  257. end))
  258. end
  259. end
  260. end
  261. end)
  262. local bv = Instance.new("BodyVelocity",fp2)
  263. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  264. bv.Velocity = fp2.CFrame.lookVector * 50
  265. for i = 1,9 do
  266. Swait()
  267. clerp(rootj, rootjnor * CFrame.new(0, 0, 1.25 + 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, 0), 0.15)
  268. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, 0), 0.3)
  269. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  270. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  271. clerp(RS, RSnor * CFrame.new(0, -0.25, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  272. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(25), Rad(-90)), 0.3)
  273. end
  274. --fp2:remove()
  275. wld2:remove()
  276. --fp1:remove()
  277. wld1:remove()
  278. attack = false
  279. end
  280. end
  281.  
  282. function firebreath()
  283. if orbtype == "fire" then
  284. attack = true
  285. for i = 1,35 do
  286. Swait()
  287. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(-35), 0, 0), 0.3)
  288. clerp(neck, necknor * CFrame.Angles(Rad(35), 0, 0), 0.3)
  289. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(-35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  290. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  291. clerp(RS, RSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(180)), 0.3)
  292. clerp(LS, LSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(180)), 0.3)
  293. end
  294. local fp1 = Instance.new("Part", char)
  295. fp1.Size = Vector3.new(1.15, 1.75, 1.15)
  296. fp1.Transparency = 1
  297. fp1.CanCollide = false
  298. fp1.CFrame = hed.CFrame
  299. local fire = Instance.new("Fire", fp1)
  300. fire.Size = 15
  301. local hitbox = fp1.Touched:connect(function(hit)
  302. local dud = hit.Parent
  303. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  304. for i,v in pairs (dud:children()) do
  305. if v:IsA("Humanoid") and v.Parent ~= char and not dud:FindFirstChild("cool") then
  306. v.Health = v.Health - 20
  307. local cool = Instance.new("NumberValue", dud) cool.Name = "cool" Debris:AddItem(cool, 0.2)
  308. if torso and dud ~= char then
  309. local fiya = Instance.new("Fire", torso)
  310. fiya.Size = 3.5
  311. Debris:AddItem(fiya, 5)
  312. coroutine.resume(coroutine.create(function()
  313. while fiya.Parent == torso do
  314. wait()
  315. for i,v in pairs (dud:children()) do
  316. if v:IsA("Humanoid") then
  317. v.Health = v.Health - 0.05
  318. end
  319. end
  320. end
  321. end))
  322. end
  323. end
  324. end
  325. end)
  326. local bv = Instance.new("BodyVelocity", fp1)
  327. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  328. bv.Velocity = fp1.CFrame.lookVector * 5
  329. for i = 1,35 do
  330. Swait()
  331. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(35), 0, 0), 0.3)
  332. clerp(neck, necknor * CFrame.Angles(Rad(-15), 0, 0), 0.3)
  333. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  334. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(-35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  335. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.3)
  336. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.3)
  337. end
  338. fp1:remove()
  339. attack = false
  340. end
  341. end
  342.  
  343. function fireuppercut()
  344. if orbtype == "fire" then
  345. attack = true
  346. local fire = Instance.new("Fire", la)
  347. fire.Enabled = false
  348. fire.Color = Color3.new(0.445, 0.05785, 0.05785)
  349. fire.SecondaryColor = Color3.new(0.545098, 0.313726, 0.215686)
  350. fire.Size = 10
  351. local hitbox = la.Touched:connect(function(hit)
  352. local dud = hit.Parent
  353. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  354. if torso then
  355. torso.CFrame = CFrame.new(la.CFrame.x, la.CFrame.y, la.CFrame.z)
  356. end
  357. for i,v in pairs (dud:children()) do
  358. if v:IsA("Humanoid") and v.Parent ~= char and not dud:FindFirstChild("cool") then
  359. v.Health = v.Health - 15
  360. local cool = Instance.new("NumberValue", dud) cool.Name = "cool" Debris:AddItem(cool, 0.2)
  361. if torso and dud ~= char then
  362. local fiya = Instance.new("Fire", torso)
  363. fiya.Enabled = true
  364. fiya.Color = Color3.new(0.445, 0.05785, 0.05785)
  365. fiya.SecondaryColor = Color3.new(0.545098, 0.313726, 0.215686)
  366. fiya.Size = 7
  367. Debris:AddItem(fiya, 5)
  368. coroutine.resume(coroutine.create(function()
  369. while fiya.Parent == torso do
  370. wait()
  371. for i,v in pairs (dud:children()) do
  372. if v:IsA("Humanoid") then
  373. v.Health = v.Health - 0.05
  374. end
  375. end
  376. end
  377. end))
  378. end
  379. end
  380. end
  381. --[[
  382. if torso and dud ~= char then
  383. local fiya = Instance.new("Fire", torso)
  384. fiya.Enabled = true
  385. fiya.Color = Color3.new(0.445, 0.05785, 0.05785)
  386. fiya.SecondaryColor = Color3.new(0.545098, 0.313726, 0.215686)
  387. fiya.Size = 7
  388. Debris:AddItem(fiya, 5)
  389. coroutine.resume(coroutine.create(function()
  390. while fiya.Parent == torso do
  391. wait()
  392. for i,v in pairs (dud:children()) do
  393. if v:IsA("Humanoid") then
  394. v.Health = v.Health - 0.05
  395. end
  396. end
  397. end
  398. end))
  399. end
  400. ]]--
  401. end)
  402. for i = 1,11 do
  403. Swait()
  404. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(76)), 0.15)
  405. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(-76)), 0.3)
  406. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  407. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  408. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  409. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(45)), 0.3)
  410. end
  411. fire.Enabled = true
  412. local bv = Instance.new("BodyVelocity", root)
  413. bv.MaxForce = Vector3.new(0, math.huge, 0)
  414. bv.Velocity = Vector3.new(0, 25, 0)
  415. for i = 1,22 do
  416. Swait()
  417. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.15)
  418. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(65)), 0.3)
  419. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(-25)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  420. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  421. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.3)
  422. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-130)), 0.3)
  423. end
  424. bv:remove()
  425. hitbox:disconnect()
  426. fire:remove()
  427. attack = false
  428. end
  429. end
  430.  
  431. function splashslap()
  432. if orbtype == "water" then
  433. attack = true
  434. local part = Instance.new("Part", char)
  435. part.CanCollide = false
  436. part.Reflectance = 1
  437. part.Size = Vector3.new(2.5, 2.5, 2.5)
  438. local mesh = Instance.new("SpecialMesh", part)
  439. mesh.MeshType = "Sphere"
  440. local weld = ezweld(char, part, ra, CFrame.new(0, ra.Size.y / 2, 0))
  441. for i = 1,11 do
  442. Swait()
  443. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(-5), 0, Rad(-45)), 0.3)
  444. clerp(neck, necknor * CFrame.Angles(Rad(5), 0, Rad(45)), 0.3)
  445. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(-5)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  446. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(6.5)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  447. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(180)), 0.3)
  448. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  449. end
  450. part.Touched:connect(function(hit)
  451. local dud = hit.Parent
  452. if dud ~= char then
  453. for i,v in pairs (dud:children()) do
  454. if v:IsA("Humanoid") then
  455. v.Health = v.Health - 3.5
  456. end
  457. end
  458. end
  459. end)
  460. part.Size = Vector3.new(2.5, 2.5, 1)
  461. for i = 1,11 do
  462. Swait()
  463. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(2), 0, Rad(45)), 0.3)
  464. clerp(neck, necknor * CFrame.Angles(Rad(-2), 0, Rad(-45)), 0.3)
  465. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(2)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  466. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(-3.5)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  467. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(25)), 0.3)
  468. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.3)
  469. end
  470. Debris:AddItem(part, 0.15)
  471. attack = false
  472. end
  473. end
  474.  
  475. function tidalwaves()
  476. if orbtype == "water" then
  477. attack = true
  478. for i = 1,11 do
  479. Swait()
  480. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(-25), 0, Rad(0)), 0.3)
  481. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  482. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  483. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  484. clerp(RS, RSnor * CFrame.new(0, -0.35 + 0.1 * Cos(sine / 12), -0.35) * CFrame.Angles(Rad(0), Rad(74), Rad(84)), 0.3)
  485. clerp(LS, LSnor * CFrame.new(-0.5, 0.1 + 0.1 * Cos(sine / 12), -0.5) * CFrame.Angles(Rad(0), Rad(-84), Rad(-84)), 0.3)
  486. end
  487. local p1 = Instance.new("Part", char)
  488. p1.CanCollide = false
  489. p1.CFrame = root.CFrame * CFrame.new(0, -1.9, 0)
  490. p1.BrickColor = BrickColor.new("Bright bluish green")
  491. p1.Material = "SmoothPlastic"
  492. p1.Touched:connect(function(hit)
  493. local dud = hit.Parent
  494. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  495. if torso and torso.Parent ~= char then
  496. torso.CFrame = CFrame.new(p1.CFrame.x, p1.CFrame.y, p1.CFrame.z) * CFrame.new(0, 1, 0)
  497. Debris:AddItem(p1, 0.25)
  498. end
  499. if dud ~= char then
  500. for i,v in pairs (dud:children()) do
  501. if v:IsA("Humanoid") then
  502. v.Health = v.Health - 0.5
  503. end
  504. end
  505. end
  506. end)
  507. local bv = Instance.new("BodyVelocity", p1)
  508. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  509. bv.Velocity = p1.CFrame.lookVector * 50
  510. local p2 = Instance.new("Part", char)
  511. p2.CanCollide = false
  512. p2.CFrame = root.CFrame * CFrame.new(0, -1.9, 0) * CFrame.Angles(0, Rad(15), 0)
  513. p2.BrickColor = BrickColor.new("Bright bluish green")
  514. p2.Material = "SmoothPlastic"
  515. p2.Touched:connect(function(hit)
  516. local dud = hit.Parent
  517. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  518. if torso and torso.Parent ~= char then
  519. torso.CFrame = CFrame.new(p2.CFrame.x, p2.CFrame.y, p2.CFrame.z) * CFrame.new(0, 1, 0)
  520. Debris:AddItem(p2, 0.25)
  521. end
  522. if dud ~= char then
  523. for i,v in pairs (dud:children()) do
  524. if v:IsA("Humanoid") then
  525. v.Health = v.Health - 0.5
  526. end
  527. end
  528. end
  529. end)
  530. local bv = Instance.new("BodyVelocity", p2)
  531. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  532. bv.Velocity = p2.CFrame.lookVector * 50
  533. local p3 = Instance.new("Part", char)
  534. p3.CanCollide = false
  535. p3.CFrame = root.CFrame * CFrame.new(0, -1.9, 0) * CFrame.Angles(0, Rad(-15), 0)
  536. p3.BrickColor = BrickColor.new("Bright bluish green")
  537. p3.Material = "SmoothPlastic"
  538. p3.Touched:connect(function(hit)
  539. local dud = hit.Parent
  540. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  541. if torso and torso.Parent ~= char then
  542. torso.CFrame = CFrame.new(p3.CFrame.x, p3.CFrame.y, p3.CFrame.z) * CFrame.new(0, 1, 0)
  543. Debris:AddItem(p3, 0.25)
  544. end
  545. if dud ~= char then
  546. for i,v in pairs (dud:children()) do
  547. if v:IsA("Humanoid") then
  548. v.Health = v.Health - 0.5
  549. end
  550. end
  551. end
  552. end)
  553. local bv = Instance.new("BodyVelocity", p3)
  554. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  555. bv.Velocity = p3.CFrame.lookVector * 50
  556. for i = 1,35 do
  557. Swait()
  558. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(25), 0, Rad(0)), 0.3)
  559. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  560. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  561. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  562. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  563. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  564. end
  565. Debris:AddItem(p1, 15)
  566. Debris:AddItem(p2, 15)
  567. Debris:AddItem(p3, 15)
  568. attack = false
  569. end
  570. end
  571.  
  572. function growthtrap()
  573. if orbtype == "grass" then
  574. attack = true
  575. local part = Instance.new("Part", char)
  576. part.CanCollide = false
  577. part.Anchored = true
  578. part.Position = mouse.Hit.p
  579. part.Size = Vector3.new(6, 2, 6)
  580. part.BrickColor = BrickColor.new("Camo")
  581. part.Material = "SmoothPlastic"
  582. for i = 1,11 do
  583. Swait()
  584. part.Position = mouse.Hit.p
  585. part.Size = Vector3.new(6, 2, 6)
  586. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(35), 0, Rad(0)), 0.3)
  587. clerp(neck, necknor * CFrame.Angles(Rad(15), 0, Rad(0)), 0.3)
  588. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  589. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(-55)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  590. clerp(RS, RSnor * CFrame.new(0, -0.35 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(0), Rad(0), Rad(30)), 0.3)
  591. clerp(LS, LSnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-30)), 0.3)
  592. end
  593. part.Touched:connect(function(hit)
  594. local dud = hit.Parent
  595. if dud ~= char then
  596. for i,v in pairs (dud:children()) do
  597. if v:IsA("Humanoid") and not dud:FindFirstChild("cool") then
  598. v.Health = v.Health - 40
  599. local cool = Instance.new("NumberValue", dud)
  600. cool.Name = "cool"
  601. Debris:AddItem(cool, 0.6)
  602. end
  603. end
  604. end
  605. end)
  606. local apos = part.Position
  607. for i = 1,35 do
  608. Swait()
  609. part.Position = part.Position:Lerp(apos + Vector3.new(0, 3.5, 0), 0.15)
  610. part.Size = part.Size:Lerp(Vector3.new(6, 7, 6), 0.15)
  611. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(-20), 0, Rad(0)), 0.3)
  612. clerp(neck, necknor * CFrame.Angles(Rad(-35), 0, Rad(0)), 0.3)
  613. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(20)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  614. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(15)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  615. clerp(RS, RSnor * CFrame.new(0, -0.35 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(0), Rad(0), Rad(160)), 0.3)
  616. clerp(LS, LSnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-160)), 0.3)
  617. end
  618. part:remove()
  619. attack = false
  620. end
  621. end
  622.  
  623. function needleslash()
  624. if orbtype == "grass" then
  625. attack = true
  626. local part = Instance.new("Part", char)
  627. part.CanCollide = false
  628. part.CFrame = ra.CFrame
  629. part.Reflectance = 0
  630. part.Size = Vector3.new(4, 1, 4)
  631. local mesh = Instance.new("SpecialMesh", part)
  632. mesh.MeshId = "rbxassetid://40302270"
  633. mesh.TextureId = "rbxassetid://132539639"
  634. mesh.Scale = Vector3.new(10, 10, 10)
  635. mesh.Offset = Vector3.new(0, 0, -0.85)
  636. local weld = ezweld(char, part, ra, CFrame.Angles(Rad(0), Rad(0), Rad(90)) * CFrame.new(0, 0.65, -7))
  637. for i = 1,11 do
  638. Swait()
  639. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  640. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  641. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  642. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  643. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(35), Rad(0), Rad(180)), 0.3)
  644. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  645. end
  646. part.Touched:connect(function(hit)
  647. local dud = hit.Parent
  648. if dud ~= char then
  649. for i,v in pairs (dud:children()) do
  650. if v:IsA("Humanoid") then
  651. v.Health = v.Health - 3.5
  652. end
  653. end
  654. end
  655. end)
  656. for i = 1,11 do
  657. Swait()
  658. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(0), 0, Rad(-35)), 0.3)
  659. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(35)), 0.3)
  660. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  661. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  662. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(35), Rad(35), Rad(180)), 0.3)
  663. clerp(LS, LSnor * CFrame.new(-0.5, 0.1 + 0.1 * Cos(sine / 12), -0.5) * CFrame.Angles(Rad(0), Rad(-84), Rad(-84)), 0.3)
  664. end
  665. for i = 1,30 do
  666. Swait()
  667. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(-25), 0, spino / 2), 0.3)
  668. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  669. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  670. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  671. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(66), Rad(0), Rad(90 + 25)), 0.3)
  672. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-66), Rad(0), Rad(90 + 25)), 0.3)
  673. end
  674. Debris:AddItem(part, 0.15)
  675. attack = false
  676. end
  677. end
  678.  
  679. function dirttoss()
  680. if orbtype == "grass" then
  681. attack = true
  682. for i = 1,19 do
  683. Swait()
  684. clerp(rootj, rootjnor * CFrame.new(0, 0, -1.5 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(45), 0, Rad(0)), 0.3)
  685. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  686. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  687. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  688. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.3)
  689. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  690. end
  691. local part = Instance.new("Part", char)
  692. part.CanCollide = false
  693. part.CFrame = ra.CFrame
  694. part.Reflectance = 0
  695. part.Material = "Grass"
  696. part.BrickColor = BrickColor.new("Brown")
  697. part.Size = Vector3.new(4, 4, 4)
  698. local weld = ezweld(char, part, ra, CFrame.new(1.25, part.Size.y / 2, 0))
  699. part.Touched:connect(function(hit)
  700. local dud = hit.Parent
  701. if dud ~= char then
  702. for i,v in pairs (dud:children()) do
  703. if v:IsA("Humanoid") then
  704. v.Health = v.Health - 25
  705. part:remove()
  706. end
  707. end
  708. end
  709. end)
  710. for i = 1,11 do
  711. Swait()
  712. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  713. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  714. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  715. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  716. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(180)), 0.3)
  717. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-180)), 0.3)
  718. end
  719. for i = 1,11 do
  720. Swait()
  721. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(35), 0, Rad(0)), 0.3)
  722. clerp(neck, necknor * CFrame.Angles(Rad(-35), 0, Rad(0)), 0.3)
  723. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  724. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(-35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  725. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(140)), 0.3)
  726. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-140)), 0.3)
  727. end
  728. weld:remove()
  729. part.CFrame = CFrame.new(ra.Position, mouse.Hit.p)
  730. local bv = Instance.new("BodyVelocity", part)
  731. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  732. bv.Velocity = part.CFrame.lookVector * 100
  733. Debris:AddItem(bv, 0.1)
  734. Debris:AddItem(part, 20)
  735. for i = 1,19 do
  736. Swait()
  737. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.025 * Cos(sine / 24)) * CFrame.Angles(Rad(35), 0, Rad(0)), 0.3)
  738. clerp(neck, necknor * CFrame.Angles(Rad(-35), 0, Rad(0)), 0.3)
  739. clerp(RH, RHnor * CFrame.Angles(0, 0, Rad(35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  740. clerp(LH, LHnor * CFrame.Angles(0, 0, Rad(-35)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  741. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(140)), 0.3)
  742. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-140)), 0.3)
  743. end
  744. attack = false
  745. end
  746. end
  747.  
  748. mouse.KeyDown:connect(function(key)
  749. if key == "e" then
  750. orbtype = "fire"
  751. end
  752. if key == "r" then
  753. orbtype = "water"
  754. end
  755. if key == "t" then
  756. orbtype = "grass"
  757. end
  758. if key == "y" then
  759. orbtype = "earth"
  760. end
  761. if key == "v" then
  762. if orbtype == "fire" then
  763. fireuppercut()
  764. elseif orbtype == "water" then
  765. splashslap()
  766. elseif orbtype == "grass" then
  767. growthtrap()
  768. end
  769. end
  770. if key == "b" then
  771. if orbtype == "fire" then
  772. triburst()
  773. elseif orbtype == "water" then
  774. tidalwaves()
  775. elseif orbtype == "grass" then
  776. needleslash()
  777. end
  778. end
  779. if key == "n" then
  780. if orbtype == "fire" then
  781. firebreath()
  782. elseif orbtype == "grass" then
  783. dirttoss()
  784. end
  785. end
  786. end)
  787.  
  788. while true do
  789. Swait()
  790. if orbtype == "fire" then
  791. orb.BrickColor = BrickColor.new("Really red")
  792. elseif orbtype == "water" then
  793. orb.BrickColor = BrickColor.new("Bright bluish green")
  794. elseif orbtype == "grass" then
  795. orb.BrickColor = BrickColor.new("Lime green")
  796. elseif orbtype == "earth" then
  797. orb.BrickColor = BrickColor.new("CGA brown")
  798. end
  799. if attack == false then
  800. clerp(joint, CFrame.new(-2.5, -2 - 0.6 * math.sin(sine / 18), -2), 0.3)
  801. end
  802. ofollow.Parent = orb
  803. ofollow.Position = aimpart.Position
  804. ofollow.MaxForce = Vector3.new(a, a, a)
  805. sine = sine + 1
  806. spino = spino + Rad(45)
  807. hum.JumpPower = 56
  808. hum.WalkSpeed = sped
  809. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  810. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  811. local WALKSPEEDVALUE = 7 / (hum.WalkSpeed / 17)
  812. torsverticalvel = root.Velocity.y
  813. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  814. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  815. anim = "Idle"
  816. if attack == false then
  817. sped = 10
  818. dust.Enabled = false
  819. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-25)), 0.3)
  820. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(25)), 0.3)
  821. clerp(RH, RHnor * CFrame.Angles(0, 0, 0) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  822. clerp(LH, LHnor * CFrame.Angles(0, 0, 0) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  823. clerp(RS, RSnor * CFrame.new(0, -0.35 + 0.1 * Cos(sine / 12), -0.35) * CFrame.Angles(Rad(0), Rad(74), Rad(84)), 0.3)
  824. clerp(LS, LSnor * CFrame.new(-0.5, 0.1 + 0.1 * Cos(sine / 12), -0.5) * CFrame.Angles(Rad(0), Rad(-84), Rad(-84)), 0.3)
  825. end
  826. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  827. anim = "Walk"
  828. if attack == false then
  829. sped = 32
  830. dust.Enabled = false
  831. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(Rad(15), 0, 0), 0.7)
  832. clerp(neck, necknor * CFrame.Angles(Rad(-15), 0, 0), 0.7)
  833. clerp(RH, RHnor * CFrame.new(0.15 * Cos(sine / 6), 0, 0) * CFrame.Angles(0, 0, Rad(75 * Cos(sine / 4))), 0.3)
  834. clerp(LH, LHnor * CFrame.new(0.15 * Cos(sine / 6), 0, 0) * CFrame.Angles(0, 0, Rad(75 * Cos(sine / 4))), 0.3)
  835. clerp(RS, RSnor * CFrame.Angles(0, 0, Rad(75 * Cos(sine / 4))), 0.3)
  836. clerp(LS, LSnor * CFrame.Angles(0, 0, Rad(75 * Cos(sine / 4))), 0.3)
  837. end
  838. elseif torsverticalvel > 0.2 and hitfloor == nil then
  839. anim = "Jump"
  840. if attack == false then
  841. sped = 36
  842. dust.Enabled = false
  843. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  844. clerp(neck, necknor * CFrame.Angles(Rad(-22.5), 0, 0), 0.3)
  845. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  846. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  847. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), 0, Rad(0)), 0.3)
  848. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), 0, Rad(0)), 0.3)
  849. end
  850. elseif torsverticalvel < 0.2 and hitfloor == nil then
  851. anim = "Fall"
  852. if attack == false then
  853. sped = 36
  854. dust.Enabled = false
  855. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(Rad(10), 0, 0), 0.3)
  856. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, 0), 0.3)
  857. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(90)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  858. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(-85)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  859. clerp(RS, RSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-110), 0, Rad(0)), 0.3)
  860. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-110), 0, Rad(0)), 0.3)
  861. end
  862. end
  863. end
Add Comment
Please, Sign In to add comment