Advertisement
Ban43_GodOfEdits

test?

Aug 25th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")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. paly = game.Players.LocalPlayer
  8. p = game.Players.LocalPlayer
  9. char = paly.Character
  10. local symbolimg = "rbxassetid://301362847"
  11. Player = game:GetService("Players").LocalPlayer
  12. Character = Player.Character
  13. local mouse = paly:GetMouse()
  14. local charge = false
  15. local energy = 1000
  16. local plr = game:GetService('Players').LocalPlayer
  17. local shooting = false
  18. vt = Vector3.new
  19. torso = char.Torso
  20. neck = char.Torso.Neck
  21. hum = char.Humanoid
  22. Player = game:GetService("Players").LocalPlayer
  23. local mouse = Player:GetMouse()
  24. Character = Player.Character
  25. tors = Character.Torso
  26. lleg = Character["Left Leg"]
  27. root = Character.HumanoidRootPart
  28. hed = Character.Head
  29. rleg = Character["Right Leg"]
  30. rarm = Character["Right Arm"]
  31. larm = Character["Left Arm"]
  32. local Effects = {}
  33. attack = false
  34. local attacking = false
  35. vt = Vector3.new
  36. bc = BrickColor.new
  37. br = BrickColor.random
  38. it = Instance.new
  39. cf = CFrame.new
  40. euler = CFrame.fromEulerAnglesXYZ
  41. angles = CFrame.Angles
  42. matr = math.random
  43.  
  44.  
  45. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  46. if hit.Parent==nil then
  47. return
  48. end
  49. h=hit.Parent:FindFirstChild("Humanoid")
  50. for _,v in pairs(hit.Parent:children()) do
  51. if v:IsA("Humanoid") then
  52. h=v
  53. end
  54. end
  55. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  56. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  57. end
  58. if hit.Parent.className=="Hat" then
  59. hit=hit.Parent.Parent:findFirstChild("Head")
  60. end
  61. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  62. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  63. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  64. return
  65. end]]
  66. -- hs(hit,1.2)
  67. c=Instance.new("ObjectValue")
  68. c.Name="creator"
  69. c.Value=game:service("Players").LocalPlayer
  70. c.Parent=h
  71. game:GetService("Debris"):AddItem(c,.5)
  72. Damage=math.random(minim,maxim)
  73. -- h:TakeDamage(Damage)
  74. blocked=false
  75. block=hit.Parent:findFirstChild("Block")
  76. if block~=nil then
  77. print(block.className)
  78. if block.className=="NumberValue" then
  79. if block.Value>0 then
  80. blocked=true
  81. if decreaseblock==nil then
  82. block.Value=block.Value-1
  83. end
  84. end
  85. end
  86. if block.className=="IntValue" then
  87. if block.Value>0 then
  88. blocked=true
  89. if decreaseblock~=nil then
  90. block.Value=block.Value-1
  91. end
  92. end
  93. end
  94. end
  95. if blocked==false then
  96. -- h:TakeDamage(Damage)
  97. h.Health=h.Health-Damage
  98. showDamage(hit.Parent,Damage,.5,TorsoColor)
  99. else
  100. h.Health=h.Health-(Damage/2)
  101. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  102. end
  103. if Type=="Knockdown" then
  104. hum=hit.Parent.Humanoid
  105. hum.PlatformStand=true
  106. coroutine.resume(coroutine.create(function(HHumanoid)
  107. swait(1)
  108. HHumanoid.PlatformStand=false
  109. end),hum)
  110. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  111. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  112. local bodvol=Instance.new("BodyVelocity")
  113. bodvol.velocity=angle*knockback
  114. bodvol.P=5000
  115. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  116. bodvol.Parent=hit
  117. rl=Instance.new("BodyAngularVelocity")
  118. rl.P=3000
  119. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  120. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  121. rl.Parent=hit
  122. game:GetService("Debris"):AddItem(bodvol,.5)
  123. game:GetService("Debris"):AddItem(rl,.5)
  124. elseif Type=="Normal" then
  125. vp=Instance.new("BodyVelocity")
  126. vp.P=500
  127. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  128. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  129. if KnockbackType==1 then
  130. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  131. elseif KnockbackType==2 then
  132. vp.velocity=Property.CFrame.lookVector*knockback
  133. end
  134. if knockback>0 then
  135. vp.Parent=hit.Parent.Torso
  136. end
  137. game:GetService("Debris"):AddItem(vp,.5)
  138. elseif Type=="Up" then
  139. local bodyVelocity=Instance.new("BodyVelocity")
  140. bodyVelocity.velocity=vt(0,10,0)
  141. bodyVelocity.P=1000
  142. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  143. bodyVelocity.Parent=hit
  144. game:GetService("Debris"):AddItem(bodyVelocity,1)
  145. rl=Instance.new("BodyAngularVelocity")
  146. rl.P=3000
  147. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  148. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  149. rl.Parent=hit
  150. game:GetService("Debris"):AddItem(rl,.5)
  151. elseif Type=="Snare" then
  152. bp=Instance.new("BodyPosition")
  153. bp.P=2000
  154. bp.D=100
  155. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  156. bp.position=hit.Parent.Torso.Position
  157. bp.Parent=hit.Parent.Torso
  158. game:GetService("Debris"):AddItem(bp,1)
  159. elseif Type=="Target" then
  160. if Targetting==false then
  161. ZTarget=hit.Parent.Torso
  162. coroutine.resume(coroutine.create(function(Part)
  163. swait(5)
  164. end),ZTarget)
  165. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  166. targetgui=Instance.new("BillboardGui")
  167. targetgui.Parent=ZTarget
  168. targetgui.Size=UDim2.new(10,100,10,100)
  169. targ=Instance.new("ImageLabel")
  170. targ.Parent=targetgui
  171. targ.BackgroundTransparency=1
  172. targ.Image="rbxassetid://4834067"
  173. targ.Size=UDim2.new(1,0,1,0)
  174. cam.CameraType="Scriptable"
  175. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  176. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  177. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  178. Targetting=true
  179. RocketTarget=ZTarget
  180. for i=1,Property do
  181. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  182. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  183. swait()
  184. end
  185. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  186. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  187. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  188. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  189. end
  190. Targetting=false
  191. RocketTarget=nil
  192. targetgui.Parent=nil
  193. cam.CameraType="Custom"
  194. end
  195. end
  196. debounce=Instance.new("BoolValue")
  197. debounce.Name="DebounceHit"
  198. debounce.Parent=hit.Parent
  199. debounce.Value=true
  200. game:GetService("Debris"):AddItem(debounce,Delay)
  201. c=Instance.new("ObjectValue")
  202. c.Name="creator"
  203. c.Value=Player
  204. c.Parent=h
  205. game:GetService("Debris"):AddItem(c,.5)
  206. CRIT=false
  207. hitDeb=true
  208. AttackPos=6
  209. end
  210. end
  211. --Converted with ttyyuu12345's model to script plugin v4
  212. function sandbox(var,func)
  213. local env = getfenv(func)
  214. local newenv = setmetatable({},{
  215. __index = function(self,k)
  216. if k=="script" then
  217. return var
  218. else
  219. return env[k]
  220. end
  221. end,
  222. })
  223. setfenv(func,newenv)
  224. return func
  225. end
  226. cors = {}
  227. mas = Instance.new("Model",game:GetService("Lighting"))
  228. LocalScript0 = Instance.new("LocalScript")
  229. Sound1 = Instance.new("Sound")
  230. LocalScript2 = Instance.new("LocalScript")
  231. ParticleEmitter3 = Instance.new("ParticleEmitter")
  232. Animation4 = Instance.new("Animation")
  233. LocalScript0.Name = "Rocket Boots"
  234. LocalScript0.Parent = mas
  235. table.insert(cors,sandbox(LocalScript0,function()
  236. --Made by Luckymaxer
  237. wait(1)
  238. Player = game.Players.LocalPlayer
  239. Character = Player.Character
  240. Humanoid = Character:FindFirstChild("Humanoid")
  241. Torso = Character:FindFirstChild("Torso")
  242. Tool = script.Parent
  243.  
  244. Players = game:GetService("Players")
  245. Debris = game:GetService("Debris")
  246.  
  247.  
  248. Animations = {
  249. Pose = {Animation = script:WaitForChild("Pose"), FadeTime = nil, Weight = nil, Speed = nil}
  250. }
  251.  
  252. Flying = false
  253.  
  254. ServerControl = (script:FindFirstChild("ServerControl") or Instance.new("RemoteFunction"))
  255. ServerControl.Name = "ServerControl"
  256. ServerControl.Parent = script
  257.  
  258. ClientControl = (script:FindFirstChild("ClientControl") or Instance.new("RemoteFunction"))
  259. ClientControl.Name = "ClientControl"
  260. ClientControl.Parent = script
  261.  
  262.  
  263. function GetTotalMass(Parent)
  264. TotalMass = 0
  265. function GetMass(Parent)
  266. for i, v in pairs(Parent:GetChildren()) do
  267. if v:IsA("BasePart") then
  268. TotalMass = TotalMass + v:GetMass()
  269. end
  270. GetMass(v)
  271. end
  272. end
  273. GetMass(Parent)
  274. return TotalMass
  275. end
  276.  
  277. function CheckIfAlive()
  278. return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent and Player and Player.Parent) and true) or false)
  279. end
  280.  
  281.  
  282. function OnServerInvoke(player, mode, value)
  283. if player ~= Player or not CheckIfAlive() then
  284. return
  285. end
  286. if mode == "Flying" and value then
  287. local Mode = value.Flying
  288. if Mode then
  289. Flying = true
  290. else
  291. Flying = false
  292. end
  293. end
  294. end
  295.  
  296. function InvokeClient(Mode, Value)
  297. local ClientReturn = nil
  298. pcall(function()
  299. ClientReturn = ClientControl:InvokeClient(Player, Mode, Value)
  300. end)
  301. return ClientReturn
  302. end
  303.  
  304. ServerControl.OnServerInvoke = OnServerInvoke
  305. end))
  306. Sound1.Name = "Wind"
  307. Sound1.Parent = LocalScript0
  308. Sound1.Looped = true
  309. Sound1.EmitterSize = 0
  310. Sound1.MinDistance = 0
  311. Sound1.SoundId = "rbxassetid://97179333"
  312. Sound1.Volume = 4
  313. LocalScript2.Parent = LocalScript0
  314. table.insert(cors,sandbox(LocalScript2,function()
  315. --Made by Luckymaxer
  316. wait(1)
  317. function EquipWings()
  318. lboot=Instance.new('Part')
  319. lboot.Transparency=1
  320. lboot.FormFactor=Enum.FormFactor.Custom
  321. lboot.CanCollide=false
  322. lboot.Size=Vector3.new(0,0,0)
  323. lboot.CFrame=Character['Left Leg'].CFrame+Vector3.new(0,-1.2,0)
  324. f=script.Fire:Clone()
  325. f.Parent=lboot
  326. lw=Instance.new('Weld')
  327. lw.Part0=lboot
  328. lw.Part1=Character['Left Leg']
  329. lw.Parent=lboot
  330. lw.C0=lboot.CFrame:inverse()
  331. lw.C1=Character['Left Leg'].CFrame:inverse()
  332. lboot.Parent=Character
  333.  
  334. rboot=Instance.new('Part')
  335. rboot.Transparency=1
  336. rboot.FormFactor=Enum.FormFactor.Custom
  337. rboot.CanCollide=false
  338. rboot.Size=Vector3.new(0,0,0)
  339. rboot.CFrame=Character['Right Leg'].CFrame+Vector3.new(0,-1.2,0)
  340. f=script.Fire:Clone()
  341. f.Parent=rboot
  342. rw=Instance.new('Weld')
  343. rw.Part0=rboot
  344. rw.Part1=Character['Right Leg']
  345. rw.Parent=rboot
  346. rw.C0=rboot.CFrame:inverse()
  347. rw.C1=Character['Right Leg'].CFrame:inverse()
  348. rboot.Parent=Character
  349.  
  350. larm=Instance.new('Part')
  351. larm.Transparency=1
  352. larm.FormFactor=Enum.FormFactor.Custom
  353. larm.CanCollide=false
  354. larm.Size=Vector3.new(0,0,0)
  355. larm.CFrame=Character['Left Arm'].CFrame+Vector3.new(0,0,0)
  356. f=script.Fire:Clone()
  357. f.Parent=larm
  358. lw2=Instance.new('Weld')
  359. lw2.Part0=larm
  360. lw2.Part1=Character['Left Arm']
  361. lw2.Parent=larm
  362.  
  363. larm.Parent=Character
  364.  
  365. rarm=Instance.new('Part')
  366. rarm.Transparency=1
  367. rarm.FormFactor=Enum.FormFactor.Custom
  368. rarm.CanCollide=false
  369. rarm.Size=Vector3.new(0,0,0)
  370. rarm.CFrame=Character['Right Arm'].CFrame+Vector3.new(5,0,0)
  371. f=script.Fire:Clone()
  372. f.Parent=rarm
  373. rw2=Instance.new('Weld')
  374. rw2.Part0=rarm
  375. rw2.Part1=Character['Right Arm']
  376. rw2.Parent=rarm
  377.  
  378. rarm.Parent=Character
  379.  
  380.  
  381. BodyVelocity = Instance.new("BodyVelocity")
  382. BodyVelocity.P = (10 ^ 4)
  383. BodyVelocity.velocity = Vector3.new(0, 0, 0)
  384. BodyVelocity.maxForce = Vector3.new(0, 0, 0)
  385. BodyVelocity.Parent = Torso
  386. BodyGyro = Instance.new("BodyGyro")
  387. BodyGyro.P = (10 ^ 6)
  388. BodyGyro.maxTorque = Vector3.new(0, 0, 0)
  389. BodyGyro.cframe = Torso.CFrame
  390. BodyGyro.Parent = Torso
  391.  
  392. InvokeClient("DisableJump")
  393.  
  394. end
  395. Player = game.Players.LocalPlayer
  396. Character = Player.Character
  397. Humanoid = Character:FindFirstChild("Humanoid")
  398. Torso = Character:FindFirstChild("Torso")
  399.  
  400. Tool = script.Parent
  401.  
  402. Players = game:GetService("Players")
  403. Debris = game:GetService("Debris")
  404. RunService = game:GetService("RunService")
  405.  
  406. Camera = game:GetService("Workspace").CurrentCamera
  407.  
  408. Animations = {}
  409. LocalObjects = {}
  410.  
  411. Speed = {
  412. CurrentSpeed = 2,
  413. MaxSpeed = 185
  414. }
  415.  
  416. Jumping = {
  417. JumpTick = 0,
  418. Jumps = 0,
  419. JumpTime = 0.25,
  420. JumpsRequired = 2
  421. }
  422.  
  423. Controls = {
  424. Forward = {Number = 0, Numbers = {On = -1, Off = 0}, Keys = {"W", 17}},
  425. Backward = {Number = 0, Numbers = { On = 1, Off = 0}, Keys = {"S", 18}},
  426. Left = {Number = 0, Numbers = {On = -1, Off = 0}, Keys = {"A", 20}},
  427. Right = {Number = 0, Numbers = {On = 1, Off = 0}, Keys = {"D", 19}}
  428. }
  429.  
  430. UsableAnimations = {
  431. Pose = {Animation = Tool:WaitForChild("Pose"), FadeTime = nil, Weight = nil, Speed = nil},
  432. }
  433.  
  434. Sounds = {
  435. Wind = Tool:WaitForChild("Wind"),
  436. }
  437.  
  438. FlyRate = (1 / 40)
  439.  
  440. Debounce = false
  441. Flying = false
  442.  
  443. ServerControl = Tool:WaitForChild("ServerControl")
  444. ClientControl = Tool:WaitForChild("ClientControl")
  445.  
  446. function InvokeClient(Mode, Value)
  447. local ClientReturn = nil
  448. pcall(function()
  449. ClientReturn = ClientControl:InvokeClient(Player, Mode, Value)
  450. end)
  451. return ClientReturn
  452. end
  453. function SetAnimation(Mode, Value)
  454. if Mode == "PlayAnimation" and Value and Humanoid then
  455. for i, v in pairs(Animations) do
  456. if v.Animation == Value.Animation then
  457. v.AnimationTrack:Stop()
  458. table.remove(Animations, i)
  459. end
  460. end
  461. local AnimationTrack = Humanoid:LoadAnimation(Value.Animation)
  462. table.insert(Animations, {Animation = Value.Animation, AnimationTrack = AnimationTrack})
  463. AnimationTrack:Play(Value.FadeTime, Value.Weight, Value.Speed)
  464. elseif Mode == "StopAnimation" and Value then
  465. for i, v in pairs(Animations) do
  466. if v.Animation == Value.Animation then
  467. v.AnimationTrack:Stop()
  468. table.remove(Animations, i)
  469. end
  470. end
  471. end
  472. end
  473.  
  474. function DisableJump(Boolean)
  475. if PreventJump then
  476. PreventJump:disconnect()
  477. end
  478. if Boolean then
  479. PreventJump = Humanoid.Changed:connect(function(Property)
  480. if Property == "Jump" then
  481. Humanoid.Jump = false
  482. end
  483. end)
  484. end
  485. end
  486.  
  487. function Clamp(Number, Min, Max)
  488. return math.max(math.min(Max, Number), Min)
  489. end
  490.  
  491. function Fly()
  492. if Flying and Player and Torso and Humanoid and Humanoid.Health > 0 then
  493. local Momentum = Vector3.new(0, 0, 0)
  494. local LastMomentum = Vector3.new(0, 0, 0)
  495. local LastTilt = 0
  496. local LastFlap = 0
  497. local CurrentSpeed = Speed.MaxSpeed
  498. local Inertia = (1 - (Speed.CurrentSpeed / CurrentSpeed))
  499.  
  500. Momentum = (Torso.Velocity + (Torso.CFrame.lookVector * 3) + Vector3.new(0, 10, 0))
  501. Momentum = Vector3.new(Clamp(Momentum.X, -15, 15), Clamp(Momentum.Y, -15, 15), Clamp(Momentum.Z, -15, 15))
  502.  
  503. BodyVelocity.maxForce = Vector3.new(1, 1, 1) * (10 ^ 6)
  504.  
  505. BodyGyro.maxTorque = Vector3.new(BodyGyro.P, BodyGyro.P, BodyGyro.P)
  506. BodyGyro.cframe = game:GetService("Workspace").CurrentCamera.CoordinateFrame
  507.  
  508. Spawn(function()
  509. InvokeServer("Flying", {Flying = true})
  510. end)
  511.  
  512. SetAnimation("PlayAnimation", UsableAnimations.Pose)
  513.  
  514. Humanoid.AutoRotate = false
  515.  
  516. while Flying and Torso and Humanoid and Humanoid.Health > 0 do
  517.  
  518. if CurrentSpeed ~= Speed.MaxSpeed then
  519. CurrentSpeed = Speed.MaxSpeed
  520. Inertia = (1 - (Speed.CurrentSpeed / CurrentSpeed))
  521. end
  522.  
  523. local Direction = Camera.CoordinateFrame:vectorToWorldSpace(Vector3.new(Controls.Left.Number + Controls.Right.Number, math.abs(Controls.Forward.Number) * 0.2, Controls.Forward.Number + Controls.Backward.Number))
  524. local Movement = Direction * Speed.CurrentSpeed
  525.  
  526. Momentum = (Momentum * Inertia) + Movement
  527.  
  528. local TotalMomentum = Momentum.magnitude
  529.  
  530. if TotalMomentum > CurrentSpeed then
  531. TotalMomentum = CurrentSpeed
  532. end
  533.  
  534. local Tilt = ((Momentum * Vector3.new(1, 0, 1)).unit:Cross(((LastMomentum * Vector3.new(1, 0, 1)).unit))).y
  535. local StringTilt = tostring(Tilt)
  536.  
  537. if StringTilt == "-1.#IND" or StringTilt == "1.#IND" or Tilt == math.huge or Tilt == -math.huge or StringTilt == tostring(0 / 0) then
  538. Tilt = 0
  539. end
  540.  
  541. local AbsoluteTilt = math.abs(Tilt)
  542.  
  543. if AbsoluteTilt > 0.06 or AbsoluteTilt < 0.0001 then
  544. if math.abs(LastTilt) > 0.0001 then
  545. Tilt = (LastTilt * 0.9)
  546. else
  547. Tilt = 0
  548. end
  549. else
  550. Tilt = ((LastTilt * 0.77) + (Tilt * 0.25))
  551. end
  552.  
  553. LastTilt = Tilt
  554.  
  555. if TotalMomentum < 0.5 then
  556. Momentum = Vector3.new(0, 0, 0)
  557. TotalMomentum = 0
  558. BodyGyro.cframe = Camera.CoordinateFrame
  559. else
  560. BodyGyro.cframe = CFrame.new(Vector3.new(0, 0, 0), Momentum) * CFrame.Angles(0, 0, (Tilt * -20)) * CFrame.Angles((math.pi * -0.5 * (TotalMomentum / CurrentSpeed)), 0, 0)
  561. end
  562.  
  563. local GravityDelta = ((((Momentum * Vector3.new(0, 1, 0)) - Vector3.new(0, -Speed.MaxSpeed, 0)).magnitude / Speed.MaxSpeed) * 0.5)
  564. if GravityDelta > 0.45 and tick() > LastFlap then
  565. LastFlap = (tick() + 0.5)
  566. Spawn(function()
  567. if not Flying then
  568. return
  569. end
  570. if not Sounds.Wind.IsPlaying then
  571. Sounds.Wind:Play()
  572. end
  573. wait(0.25)
  574. end)
  575. elseif GravityDelta <= 0.45 then
  576. Sounds.Wind:Stop()
  577. end
  578.  
  579. BodyVelocity.velocity = Momentum
  580. LastMomentum = Momentum
  581.  
  582. wait(FlyRate)
  583.  
  584. end
  585.  
  586. Sounds.Wind:Stop()
  587.  
  588. Spawn(function()
  589. InvokeServer("Flying", {Flying = false})
  590. end)
  591.  
  592. SetAnimation("StopAnimation", UsableAnimations.Pose)
  593.  
  594. BodyVelocity.maxForce = Vector3.new(0, 0, 0)
  595. BodyGyro.maxTorque = Vector3.new(0, 0, 0)
  596.  
  597. if CheckIfAlive() then
  598. Humanoid.AutoRotate = true
  599. Humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
  600. end
  601.  
  602. end
  603. end
  604.  
  605. function StopFlying()
  606. Flying = false
  607. BodyVelocity.maxForce = Vector3.new(0, 0, 0)
  608. BodyGyro.maxTorque = Vector3.new(0, 0, 0)
  609. end
  610.  
  611. function CheckIfAlive()
  612. return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent and Player and Player.Parent) and true) or false)
  613. end
  614.  
  615. if not CheckIfAlive() then
  616. return
  617. end
  618. PlayerMouse = Player:GetMouse()
  619. PlayerMouse.Button1Down:connect(function()
  620. InvokeServer("MouseClick", {Down = true})
  621. end)
  622. PlayerMouse.Button1Up:connect(function()
  623. InvokeServer("MouseClick", {Down = false})
  624. end)
  625. PlayerMouse.KeyDown:connect(function(Key)
  626. local Key = string.lower(Key)
  627. local ByteKey = string.byte(Key)
  628. if ByteKey == string.byte(" ") and not Debounce then
  629. if Flying then
  630. StopFlying()
  631. for i, v in pairs({BodyVelocity, BodyGyro, lboot, rboot, larm, rarm}) do
  632. if v and v.Parent then
  633. v:Destroy()
  634. end
  635. end
  636. elseif not Flying then
  637. if (tick() - Jumping.JumpTick) <= Jumping.JumpTime or Jumping.JumpTick == 0 then
  638. Jumping.JumpTick = tick()
  639. Jumping.Jumps = Jumping.Jumps + 1
  640. if Jumping.Jumps >= Jumping.JumpsRequired then
  641. Debounce = true
  642. Jumping.JumpTick = 0
  643. Jumping.Jumps = 0
  644. Flying = true
  645. Spawn(EquipWings)
  646. Spawn(Fly)
  647. Debounce = false
  648. end
  649. else
  650. Jumping.JumpTick = tick()
  651. Jumping.Jumps = 1
  652. end
  653. end
  654. end
  655. for i, v in pairs(Controls) do
  656. for ii, vv in pairs(v.Keys) do
  657. v.Number = ((((string.lower(type(vv)) == string.lower("String") and Key == string.lower(vv)) or (string.lower(type(vv)) == string.lower("Number") and ByteKey == vv)) and v.Numbers.On) or v.Number)
  658. end
  659. end
  660. end)
  661. PlayerMouse.KeyUp:connect(function(Key)
  662. local Key = string.lower(Key)
  663. local ByteKey = string.byte(Key)
  664. for i, v in pairs(Controls) do
  665. for ii, vv in pairs(v.Keys) do
  666. v.Number = ((((string.lower(type(vv)) == string.lower("String") and Key == string.lower(vv)) or (string.lower(type(vv)) == string.lower("Number") and ByteKey == vv)) and v.Numbers.Off) or v.Number)
  667. end
  668. end
  669. end)
  670. while not BodyVelocity or not BodyVelocity.Parent or not BodyGyro or not BodyGyro.Parent and CheckIfAlive() do
  671. BodyVelocity = Torso:FindFirstChild("BodyVelocity")
  672. BodyGyro = Torso:FindFirstChild("BodyGyro")
  673. RunService.Stepped:wait()
  674. end
  675.  
  676. function InvokeServer(Mode, Value)
  677. pcall(function()
  678. local ServerReturn = ServerControl:InvokeServer(Mode, Value)
  679. return ServerReturn
  680. end)
  681. end
  682.  
  683. function OnClientInvoke(Mode, Value)
  684. if Mode == "PlayAnimation" and Value and Humanoid then
  685. SetAnimation("PlayAnimation", Value)
  686. elseif Mode == "StopAnimation" and Value then
  687. SetAnimation("StopAnimation", Value)
  688. elseif Mode == "PlaySound" and Value then
  689. Value:Play()
  690. elseif Mode == "StopSound" and Value then
  691. Value:Stop()
  692. elseif Mode == "MousePosition" then
  693. return PlayerMouse.Hit.p
  694. elseif Mode == "DisableJump" then
  695. DisableJump(Value)
  696. elseif Mode == "Fly" and not Flying then
  697. Flying = true
  698. Spawn(function()
  699. Fly()
  700. end)
  701. end
  702. end
  703.  
  704. function InvokeClient(Mode, Value)
  705. local ClientReturn = nil
  706. pcall(function()
  707. ClientReturn = ClientControl:InvokeClient(Player, Mode, Value)
  708. end)
  709. return ClientReturn
  710. end
  711. ClientControl.OnClientInvoke = OnClientInvoke
  712. end))
  713. ParticleEmitter3.Name = "Fire"
  714. ParticleEmitter3.Parent = LocalScript2
  715. ParticleEmitter3.Speed = NumberRange.new(-5, -5)
  716. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  717. ParticleEmitter3.LightEmission = 4
  718. ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=48229939"
  719. ParticleEmitter3.Transparency = NumberSequence.new(0.44374999403954,0.89375001192093,0.91874998807907,1)
  720. ParticleEmitter3.Size = NumberSequence.new(0.60000002384186,0.60000002384186)
  721. ParticleEmitter3.Lifetime = NumberRange.new(0.30000001192093, 0.30000001192093)
  722. ParticleEmitter3.LockedToPart = true
  723. ParticleEmitter3.Rate = 45645648
  724. Animation4.Name = "Pose"
  725. Animation4.Parent = LocalScript0
  726. Animation4.AnimationId = "http://www.roblox.com/Asset?ID=97172005"
  727. for i,v in pairs(mas:GetChildren()) do
  728. v.Parent = game:GetService("Players").LocalPlayer.Character
  729. pcall(function() v:MakeJoints() end)
  730. end
  731. mas:Destroy()
  732. for i,v in pairs(cors) do
  733. spawn(function()
  734. pcall(v)
  735. end)
  736. end
  737.  
  738. showDamage=function(Char,Dealt,du,Color)
  739. m=Instance.new("Model")
  740. m.Name=""
  741. h=Instance.new("Humanoid")
  742. h.Health=0
  743. h.MaxHealth=0
  744. h.Parent=m
  745. c=Instance.new("Part")
  746. c.Transparency=0
  747. c.Material = "Neon"
  748. c.BrickColor=bc("Bright red")
  749. c.Name="Head"
  750. c.TopSurface=0
  751. c.BottomSurface=0
  752. CV="Hot pink"
  753.  
  754. local txt = Instance.new("BillboardGui", c)
  755. txt.Adornee = c
  756. txt.Name = "_status"
  757. txt.Size = UDim2.new(2, 0, 1.2, 0)
  758. txt.StudsOffset = Vector3.new(-9, 8, 0)
  759. local text = Instance.new("TextLabel", txt)
  760. text.Size = UDim2.new(10, 0, 7, 0)
  761. text.FontSize = "Size24"
  762. text.TextScaled = true
  763. text.TextTransparency = 0
  764. text.BackgroundTransparency = 1
  765. text.TextTransparency = 0
  766. text.TextStrokeTransparency = 0
  767. text.Font = "Cartoon"
  768. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  769.  
  770. v=Instance.new("Part")
  771. v.Name = "ColorBrick"
  772. v.Parent=c
  773. v.FormFactor="Symmetric"
  774. v.Anchored=true
  775. v.CanCollide=false
  776. v.BottomSurface="Smooth"
  777. v.TopSurface="Smooth"
  778. v.Size=Vector3.new(10,5,3)
  779. v.Transparency=1
  780. v.CFrame=c.CFrame
  781. v.BrickColor=BrickColor.new(CV)
  782. v.Transparency=1
  783. text.TextColor3 = BrickColor.new("Bright red").Color
  784. v.Shape="Block"
  785. text.Text = tostring(Dealt).. "!"
  786. local tick = Instance.new("Sound",c)
  787. tick.SoundId = "rbxassetid://553325070"
  788. tick.Volume = 1.25
  789. tick.Pitch = 0.75
  790. tick:Play()
  791. c.formFactor="Plate"
  792. c.Transparency = 0.99
  793. c.Size=Vector3.new(1,.4,1)
  794. ms=Instance.new("CylinderMesh")
  795. ms.Scale=Vector3.new(.8,.8,.8)
  796. if CRIT==true then
  797. ms.Scale=Vector3.new(1,1.25,1)
  798. end
  799. ms.Parent=c
  800. c.Reflectance=0
  801. Instance.new("BodyGyro").Parent=c
  802. c.Parent=m
  803. if Char:findFirstChild("Head")~=nil then
  804. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  805. elseif Char.Parent:findFirstChild("Head")~=nil then
  806. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  807. end
  808. f=Instance.new("BodyPosition")
  809. f.P=2000
  810. f.D=100
  811. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  812. f.position=c.Position+Vector3.new(0,3,0)
  813. f.Parent=c
  814. game:GetService("Debris"):AddItem(m,.5+du)
  815. c.CanCollide=false
  816. m.Parent=workspace
  817. c.CanCollide=false
  818. end
  819.  
  820. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  821. local gui = it(GuiType)
  822. gui.Parent = parent
  823. gui.Text = text
  824. gui.BackgroundTransparency = backtrans
  825. gui.BackgroundColor3 = backcol
  826. gui.SizeConstraint = "RelativeXY"
  827. gui.TextXAlignment = "Center"
  828. gui.TextYAlignment = "Center"
  829. gui.Position = pos
  830. gui.Size = size
  831. gui.Font = "SourceSans"
  832. gui.FontSize = "Size14"
  833. gui.TextWrapped = false
  834. gui.TextStrokeTransparency = 0
  835. gui.TextColor = BrickColor.new("White")
  836. return gui
  837. end
  838.  
  839. local basgui = it("GuiMain")
  840. basgui.Parent = Player.PlayerGui
  841. basgui.Name = "CooldownsGUI"
  842. local basframe = it("Frame")
  843. basframe.Parent = basgui
  844. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  845. basframe.BackgroundTransparency = 1
  846. basframe.BorderColor3 = Color3.new(17, 17, 17)
  847. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  848. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  849. local healthgui = gui("TextLabel", basframe, "Energy: ", 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, -0.5, 0))
  850. healthgui.TextSize = 24
  851. healthgui.ZIndex = 2
  852.  
  853. local tick = Instance.new("Sound",tors)
  854. tick.SoundId = "rbxassetid://313108061"
  855. tick.Volume = 2.5
  856. tick.Looped = true
  857. tick.Pitch = 0.85
  858.  
  859. local tick2 = Instance.new("Sound",tors)
  860. tick2.SoundId = "rbxassetid://272207079"
  861. tick2.Volume = 2.5
  862. tick2.Looped = true
  863. tick2.Pitch = 0.85
  864.  
  865. local orb = Instance.new("Part")
  866. orb.Parent = char
  867. orb.Size = Vector3.new(0.2, 0.2, 0.2)
  868. orb.Archivable = true
  869. orb.Transparency = 1
  870. orb.Material = "Neon"
  871. orb.CanCollide = false
  872. local weld1 = Instance.new("Weld")
  873. weld1.Parent = tors
  874. weld1.Part0 = tors
  875. weld1.Part1 = orb
  876. weld1.C1 = CFrame.new(0, 0.01, 0)
  877. local pt1 = NumberSequenceKeypoint.new(0,5,0)
  878. local pt1a = NumberSequenceKeypoint.new(0,1,0)
  879. local pt2a = NumberSequenceKeypoint.new(1,1,1)
  880. local pt2 = NumberSequenceKeypoint.new(1,0,0)
  881. local effecto = Instance.new("ParticleEmitter",orb)
  882. effecto.LightEmission = 1
  883. effecto.LockedToPart = false
  884. effecto.Texture = "rbxassetid://242109931"
  885. effecto.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  886. effecto.Rate = 0
  887. effecto.LockedToPart = false
  888. effecto.Acceleration = Vector3.new(0,25,0)
  889. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  890. effecto.Lifetime = NumberRange.new(0.75)
  891. effecto.Size = NumberSequence.new({pt1,pt2})
  892. effecto.Speed = NumberRange.new(12.5)
  893. effecto.VelocitySpread = 100000000
  894. effecto.RotSpeed = NumberRange.new(-300,300)
  895.  
  896. function Fireball()
  897. local touched = false
  898. local delay = false
  899. local spart = Instance.new("Part",char)
  900. local tick = Instance.new("Sound",char)
  901.  
  902. tick.SoundId = "rbxasset://sounds/Launching rocket.wav"
  903. tick.Volume = 1.5
  904. tick.Pitch = 1
  905. tick:Play()
  906. spart.Size = vt(2,2,2)
  907. spart.BrickColor = BrickColor.new("Deep orange")
  908. spart.Transparency = 1
  909. spart.CanCollide = false
  910. spart.Material = "Neon"
  911. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  912. local msh = Instance.new("SpecialMesh",spart)
  913. msh.MeshType = "Sphere"
  914. msh.Scale = vt(3,3,3)
  915. local pt1e = NumberSequenceKeypoint.new(0,3.5,0)
  916. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  917. local effecto = Instance.new("ParticleEmitter",spart)
  918. effecto.Texture = "rbxassetid://242109931"
  919. effecto.LightEmission = 1
  920. effecto.LockedToPart = false
  921. effecto.Color = ColorSequence.new(Color3.new(1, 0.913726, 0.466667),Color3.new(1, 0.913726, 0.466667))effecto.Rate = 765789054219129546866688
  922. effecto.Lifetime = NumberRange.new(0.5)
  923. effecto.Size = NumberSequence.new({pt1e,pt2e})
  924. effecto.Transparency = NumberSequence.new(0,1,0)
  925. effecto.Speed = NumberRange.new(0,0)
  926. effecto.RotSpeed = NumberRange.new(0,0)
  927. local bv = Instance.new("BodyVelocity")
  928. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  929. bv.velocity = mouse.Hit.lookVector * 150
  930. bv.Parent = spart
  931. wait(0.05)
  932. spart.Touched:connect(function(hit)
  933. if touched == false then
  934. touched = true
  935. if hit.Name == "Water" then
  936. local pt1er = NumberSequenceKeypoint.new(0,5,0)
  937. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  938. local smokecolor = Color3.new(0.5,0.5,0.5)
  939. local tick = Instance.new("Sound",spart)
  940. tick.SoundId = "rbxassetid://629468689"
  941. tick.Volume = 1.5
  942. tick.Pitch = 1
  943. tick:Play()
  944. effecto.Rate = 0
  945. local effectoz = Instance.new("ParticleEmitter",spart)
  946. effectoz.Texture = "rbxassetid://59720383"
  947. effectoz.LightEmission = 0.75
  948. effectoz.Color = ColorSequence.new(smokecolor)
  949. effectoz.Lifetime = NumberRange.new(3)
  950. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  951. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  952. effectoz.Rotation = NumberRange.new(-300,300)
  953. effectoz.RotSpeed = NumberRange.new(-500,500)
  954. effectoz.Speed = NumberRange.new(10)
  955. effectoz.VelocitySpread = 25
  956. effectoz.Rate = 1000000000000
  957. spart.Anchored = true
  958. wait(1)
  959. effectoz.Rate = 0
  960. wait(2.5)
  961. spart:Destroy()
  962. end
  963. if hit.Name ~= "Water" then
  964. local saveposition = spart.CFrame
  965. spart.Anchored = true
  966. local tick = Instance.new("Sound",spart)
  967. tick.SoundId = "rbxassetid://304529688"
  968. tick.Volume = 1.5
  969. tick.Pitch = 1.25
  970. tick:Play()
  971. effecto:Destroy()
  972. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  973. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  974. local effectoz = Instance.new("ParticleEmitter",spart)
  975. effectoz.Texture = "rbxassetid://242109931"
  976. effectoz.LightEmission = 1
  977. effectoz.LockedToPart = false
  978. effectoz.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  979. effectoz.Lifetime = NumberRange.new(0.5)
  980. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  981. effectoz.Speed = NumberRange.new(0,0)
  982. effectoz.Rotation = NumberRange.new(-300,300)
  983. effectoz.RotSpeed = NumberRange.new(-500,500)
  984. effectoz.Speed = NumberRange.new(75)
  985. effectoz.VelocitySpread = 10000000
  986. effectoz.Rate = 1000000000000
  987. spart.Size = vt(1,1,1)
  988. spart.Transparency = 1
  989. spart.CFrame = saveposition
  990. Damagefunc(hit,300,550,-20,"Normal",root,.2,1)
  991. wait(0.5)
  992. effectoz.Rate = 0
  993. for i = 0, 10 do
  994. spart.Size = spart.Size + vt(0.5,0.5,0.5)
  995. spart.CFrame = saveposition
  996. wait()
  997. end
  998. spart:Destroy()
  999. end
  1000. end
  1001. end)
  1002. end
  1003.  
  1004. function Rockets()
  1005. local touched = false
  1006. local delay = false
  1007. local spart = Instance.new("Part",char)
  1008. local tick = Instance.new("Sound",char)
  1009.  
  1010. tick.SoundId = "rbxasset://sounds/Launching rocket.wav"
  1011. tick.Volume = 1.5
  1012. tick.Pitch = 1
  1013. tick:Play()
  1014. spart.Size = vt(2,2,2)
  1015. spart.BrickColor = BrickColor.new("Deep orange")
  1016. spart.Transparency = 1
  1017. spart.CanCollide = false
  1018. spart.Material = "Neon"
  1019. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1020.  
  1021. local msh = Instance.new("SpecialMesh",spart)
  1022. msh.MeshType = "Sphere"
  1023. msh.Scale = vt(3,3,3)
  1024. local pt1e = NumberSequenceKeypoint.new(0,3.5,0)
  1025. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1026. local effecto = Instance.new("ParticleEmitter",spart)
  1027. effecto.Texture = "rbxassetid://242109931"
  1028. effecto.LightEmission = 1
  1029. effecto.LockedToPart = false
  1030. effecto.Color = ColorSequence.new(Color3.new(1, 0.913726, 0.466667),Color3.new(1, 0.913726, 0.466667))effecto.Rate = 765789054219129546866688
  1031. effecto.Lifetime = NumberRange.new(0.5)
  1032. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1033. effecto.Transparency = NumberSequence.new(0,1,0)
  1034. effecto.Speed = NumberRange.new(0,0)
  1035. effecto.RotSpeed = NumberRange.new(0,0)
  1036. local bv = Instance.new("BodyVelocity")
  1037. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1038. bv.velocity = mouse.Hit.lookVector * 150
  1039. bv.Parent = spart
  1040. wait(0.05)
  1041. spart.Touched:connect(function(hit)
  1042. if touched == false then
  1043. touched = true
  1044. if hit.Name == "Water" then
  1045. local pt1er = NumberSequenceKeypoint.new(0,5,0)
  1046. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1047. local smokecolor = Color3.new(0.5,0.5,0.5)
  1048. local tick = Instance.new("Sound",spart)
  1049. tick.SoundId = "rbxassetid://629468689"
  1050. tick.Volume = 1.5
  1051. tick.Pitch = 1
  1052. tick:Play()
  1053. effecto.Rate = 0
  1054. onTouched(hit)
  1055. explosion = Instance.new("Explosion")
  1056. explosion.BlastRadius = 12
  1057. explosion.BlastPressure = 1
  1058. explosion.Position = script.Parent.Position
  1059. explosion.Parent = game.Workspace
  1060.  
  1061. local effectoz = Instance.new("ParticleEmitter",spart)
  1062. effectoz.Texture = "rbxassetid://59720383"
  1063. effectoz.LightEmission = 0.75
  1064. effectoz.Color = ColorSequence.new(smokecolor)
  1065. effectoz.Lifetime = NumberRange.new(3)
  1066. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1067. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1068. effectoz.Rotation = NumberRange.new(-300,300)
  1069. effectoz.RotSpeed = NumberRange.new(-500,500)
  1070. effectoz.Speed = NumberRange.new(10)
  1071. effectoz.VelocitySpread = 25
  1072. effectoz.Rate = 1000000000000
  1073. spart.Anchored = true
  1074. wait(1)
  1075. effectoz.Rate = 0
  1076. wait(2.5)
  1077. spart:Destroy()
  1078. end
  1079. if hit.Name ~= "Water" then
  1080. local saveposition = spart.CFrame
  1081. spart.Anchored = true
  1082. local tick = Instance.new("Sound",spart)
  1083. tick.SoundId = "rbxassetid://304529688"
  1084. tick.Volume = 1.5
  1085. tick.Pitch = 1.25
  1086. tick:Play()
  1087. effecto:Destroy()
  1088. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  1089. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1090. local effectoz = Instance.new("ParticleEmitter",spart)
  1091. effectoz.Texture = "rbxassetid://242109931"
  1092. effectoz.LightEmission = 1
  1093. effectoz.LockedToPart = false
  1094. effectoz.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  1095. effectoz.Lifetime = NumberRange.new(0.5)
  1096. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1097. effectoz.Speed = NumberRange.new(0,0)
  1098. effectoz.Rotation = NumberRange.new(-300,300)
  1099. effectoz.RotSpeed = NumberRange.new(-500,500)
  1100. effectoz.Speed = NumberRange.new(75)
  1101. effectoz.VelocitySpread = 10000000
  1102. effectoz.Rate = 1000000000000
  1103. spart.Size = vt(1,1,1)
  1104. spart.Transparency = 1
  1105. spart.CFrame = saveposition
  1106. Damagefunc(hit,300,550,-20,"Normal",root,.2,1)
  1107. wait(0.5)
  1108. effectoz.Rate = 0
  1109. for i = 0, 10 do
  1110. spart.Size = spart.Size + vt(0.5,0.5,0.5)
  1111. spart.CFrame = saveposition
  1112. wait()
  1113. end
  1114. spart:Destroy()
  1115. end
  1116. end
  1117. end)
  1118. end
  1119.  
  1120. function Firestorm()
  1121. local shur = Instance.new("Part",char)
  1122. local gahd = Instance.new("Sound",char)
  1123. char.Humanoid.WalkSpeed = 0
  1124. gahd.SoundId = "rbxassetid://313945165"
  1125. gahd.Volume = 4.5
  1126. gahd.Pitch = 0.595
  1127. gahd:Play()
  1128. shur.Transparency = 1
  1129. shur.Material = "Neon"
  1130. shur.BrickColor = bc("Bright red")
  1131. shur.Anchored = true
  1132. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1133. shur.Size = vt(1,0.2,1)
  1134. shur.CanCollide = false
  1135. local dec = Instance.new("Decal",shur)
  1136. dec.Texture = symbolimg
  1137. dec.Face = "Top"
  1138. local dec2 = dec:Clone()
  1139. dec2.Parent = shur
  1140. dec2.Face = "Bottom"
  1141. local Meshshur = Instance.new("CylinderMesh",shur)
  1142. Meshshur.Scale = vt(0,1,0)
  1143. for i = 0, 25 do
  1144. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1145. Meshshur.Scale = Meshshur.Scale + vt(2.5,0,2.5)
  1146. wait(0)
  1147. end
  1148. for i = 0, 10 do
  1149. larm.Transparency = larm.Transparency + 0.1
  1150. rarm.Transparency = rarm.Transparency + 0.1
  1151. lleg.Transparency = lleg.Transparency + 0.1
  1152. rleg.Transparency = rleg.Transparency + 0.1
  1153. tors.Transparency = tors.Transparency + 0.1
  1154. hed.Transparency = hed.Transparency + 0.1
  1155. wait()
  1156. end
  1157. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  1158. local effecton = Instance.new("ParticleEmitter",root)
  1159. effecton.LightEmission = 1
  1160. effecton.LockedToPart = false
  1161. effecton.Texture = "rbxassetid://242109931"
  1162. effecton.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  1163. effecton.Rate = 1000
  1164. effecton.Lifetime = NumberRange.new(0.75)
  1165. effecton.Size = NumberSequence.new({pt1mass,pt2})
  1166. effecton.Speed = NumberRange.new(5)
  1167. effecton.VelocitySpread = 100000000
  1168. effecton.RotSpeed = NumberRange.new(-300,300)
  1169. local ash = Instance.new("Sound",root)
  1170. ash.SoundId = "rbxassetid://181004943"
  1171. ash.Volume = 4
  1172. ash.Pitch = 0.25
  1173. ash:Play()
  1174. local sbs = Instance.new("BodyPosition", root)
  1175. sbs.P = 3000
  1176. sbs.D = 1000
  1177. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  1178. sbs.position = root.CFrame.p + Vector3.new(0, 175, 0)
  1179. wait(2.5)
  1180. for i = 0, 25 do
  1181. local touched = false
  1182. local delay = false
  1183. local spart = Instance.new("Part",char)
  1184. local tick = Instance.new("Sound",spart)
  1185. tick.SoundId = "rbxassetid://304448425"
  1186. tick.Volume = 1.5
  1187. tick.Pitch = 0.85
  1188. tick:Play()
  1189. spart.Size = vt(2,2,2)
  1190. spart.BrickColor = BrickColor.new("Deep orange")
  1191. spart.Transparency = 1
  1192. spart.CanCollide = false
  1193. spart.Material = "Neon"
  1194. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1195. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  1196. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1197. local effecto = Instance.new("ParticleEmitter",spart)
  1198. effecto.Texture = "rbxassetid://242109931"
  1199. effecto.LightEmission = 1
  1200. effecto.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1201. effecto.Rate = 10000
  1202. effecto.Lifetime = NumberRange.new(0.5)
  1203. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1204. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1205. effecto.Speed = NumberRange.new(0,0)
  1206. effecto.RotSpeed = NumberRange.new(-500,500)
  1207. local bv = Instance.new("BodyVelocity")
  1208. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1209. bv.velocity = mouse.Hit.lookVector * 150
  1210. bv.Parent = spart
  1211. wait(0.05)
  1212. spart.Touched:connect(function(hit)
  1213. if touched == false then
  1214. touched = true
  1215. if hit.Name == "Water" then
  1216. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1217. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1218. local smokecolor = Color3.new(0.5,0.5,0.5)
  1219. local tick = Instance.new("Sound",spart)
  1220. tick.SoundId = "rbxassetid://629468689"
  1221. tick.Volume = 1.5
  1222. tick.Pitch = 1
  1223. tick:Play()
  1224. effecto.Rate = 0
  1225. local effectoz = Instance.new("ParticleEmitter",spart)
  1226. effectoz.Texture = "rbxassetid://242109931"
  1227. effectoz.LightEmission = 0.75
  1228. effectoz.Color = ColorSequence.new(smokecolor)
  1229. effectoz.Lifetime = NumberRange.new(3)
  1230. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1231. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1232. effectoz.Rotation = NumberRange.new(-300,300)
  1233. effectoz.RotSpeed = NumberRange.new(-500,500)
  1234. effectoz.Speed = NumberRange.new(10)
  1235. effectoz.VelocitySpread = 75
  1236. effectoz.Rate = 1000000000000
  1237. spart.Anchored = true
  1238. wait(3)
  1239. effectoz.Rate = 0
  1240. wait(2.5)
  1241. spart:Destroy()
  1242. end
  1243. if hit.Name ~= "Water" then
  1244. local saveposition = spart.CFrame
  1245. spart.Anchored = true
  1246. local tick = Instance.new("Sound",spart)
  1247. tick.SoundId = "rbxassetid://304529688"
  1248. tick.Volume = 1.5
  1249. tick.Pitch = 0.85
  1250. tick:Play()
  1251. local tickn = Instance.new("Sound",spart)
  1252. tickn.SoundId = "rbxassetid://138186576"
  1253. tickn.Volume = 1.5
  1254. tickn.Pitch = 1
  1255. tickn:Play()
  1256. local tick2e = Instance.new("Sound",spart)
  1257. tick2e.SoundId = "rbxassetid://272207079"
  1258. tick2e.Volume = 2.5
  1259. tick2e.Looped = true
  1260. tick2e.Pitch = 0.85
  1261. tick2e:Play()
  1262. effecto:Destroy()
  1263. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1264. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  1265. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1266. local effectoz = Instance.new("ParticleEmitter",spart)
  1267. effectoz.Texture = "rbxassetid://242109931"
  1268. effectoz.LightEmission = 1
  1269. effectoz.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1270. effectoz.Lifetime = NumberRange.new(2.5)
  1271. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1272. effectoz.Speed = NumberRange.new(0,0)
  1273. effectoz.Rotation = NumberRange.new(-300,300)
  1274. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1275. effectoz.RotSpeed = NumberRange.new(-500,500)
  1276. effectoz.Speed = NumberRange.new(10)
  1277. effectoz.VelocitySpread = 10000000
  1278. effectoz.Rate = 1000000000000
  1279. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1280. effectoz2.Texture = "rbxassetid://242109931"
  1281. effectoz2.LightEmission = 1
  1282. effectoz2.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1283. effectoz2.Lifetime = NumberRange.new(0.5)
  1284. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1285. effectoz2.Speed = NumberRange.new(0,0)
  1286. effectoz2.Rotation = NumberRange.new(-300,300)
  1287. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1288. effectoz2.Speed = NumberRange.new(250)
  1289. effectoz2.VelocitySpread = 10000000
  1290. effectoz2.Rate = 1000000000000
  1291. spart.Size = vt(25,25,25)
  1292. spart.Transparency = 1
  1293. spart.CFrame = saveposition
  1294. wait(0.5)
  1295. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  1296. effectoz2.Rate = 0
  1297. wait(5)
  1298. effectoz.Rate = 0
  1299. tick2e:Stop()
  1300. wait(2.5)
  1301. spart:Destroy()
  1302. end
  1303. end
  1304. end)
  1305. wait(0.215)
  1306. end
  1307. wait(1)
  1308. effecton.Rate = 0
  1309. for i = 0, 10 do
  1310. larm.Transparency = larm.Transparency - 0.1
  1311. rarm.Transparency = rarm.Transparency - 0.1
  1312. lleg.Transparency = lleg.Transparency - 0.1
  1313. rleg.Transparency = rleg.Transparency - 0.1
  1314. tors.Transparency = tors.Transparency - 0.1
  1315. hed.Transparency = hed.Transparency - 0.1
  1316. wait()
  1317. end
  1318. sbs:Destroy()
  1319. char.Humanoid.WalkSpeed = 16
  1320. for i = 0, 25 do
  1321. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1322. Meshshur.Scale = Meshshur.Scale - vt(2.5,0,2.5)
  1323. wait(0)
  1324. end
  1325. effecton:Destroy()
  1326. shur:Destroy()
  1327. end
  1328.  
  1329.  
  1330. function SplashFire()
  1331. local shur = Instance.new("Part",char)
  1332. local gahd = Instance.new("Sound",char)
  1333. char.Humanoid.WalkSpeed = 0
  1334. gahd.SoundId = "rbxassetid://313945165"
  1335. gahd.Volume = 2.5
  1336. gahd.Pitch = 0.625
  1337. gahd:Play()
  1338. shur.Transparency = 1
  1339. shur.Material = "Neon"
  1340. shur.BrickColor = bc("Bright red")
  1341. shur.Anchored = true
  1342. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1343. shur.Size = vt(1,0.2,1)
  1344. shur.CanCollide = false
  1345. local dec = Instance.new("Decal",shur)
  1346. dec.Texture = symbolimg
  1347. dec.Face = "Top"
  1348. local dec2 = dec:Clone()
  1349. dec2.Parent = shur
  1350. dec2.Face = "Bottom"
  1351. local Meshshur = Instance.new("CylinderMesh",shur)
  1352. Meshshur.Scale = vt(0,1,0)
  1353. for i = 0, 25 do
  1354. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1355. Meshshur.Scale = Meshshur.Scale + vt(1,0,1)
  1356. wait(0)
  1357. end
  1358. for i = 0, 10 do
  1359. larm.Transparency = larm.Transparency + 0.1
  1360. rarm.Transparency = rarm.Transparency + 0.1
  1361. lleg.Transparency = lleg.Transparency + 0.1
  1362. rleg.Transparency = rleg.Transparency + 0.1
  1363. tors.Transparency = tors.Transparency + 0.1
  1364. hed.Transparency = hed.Transparency + 0.1
  1365. wait()
  1366. end
  1367. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  1368. local effecton = Instance.new("ParticleEmitter",root)
  1369. effecton.LightEmission = 1
  1370. effecton.Texture = "rbxassetid://242109931"
  1371. effecton.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1372. effecton.Rate = 1000
  1373. effecton.Lifetime = NumberRange.new(0.75)
  1374. effecton.Size = NumberSequence.new({pt1mass,pt2})
  1375. effecton.Speed = NumberRange.new(5)
  1376. effecton.VelocitySpread = 100000000
  1377. effecton.RotSpeed = NumberRange.new(-300,300)
  1378. local ash = Instance.new("Sound",root)
  1379. ash.SoundId = "rbxassetid://181004943"
  1380. ash.Volume = 4
  1381. ash.Pitch = 0.5
  1382. ash:Play()
  1383. local sbs = Instance.new("BodyPosition", root)
  1384. sbs.P = 3000
  1385. sbs.D = 1000
  1386. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  1387. sbs.position = root.CFrame.p + Vector3.new(0, 200, 0)
  1388. wait(1)
  1389. sbs.position = root.CFrame.p - Vector3.new(0, 500, 0)
  1390. wait(0.1)
  1391. sbs:Destroy()
  1392. wait(0.15)
  1393. effecton.Rate = 0
  1394. local spart = Instance.new("Part",char)
  1395. spart.Size = vt(2,2,2)
  1396. spart.BrickColor = BrickColor.new("Deep orange")
  1397. spart.Transparency = 1
  1398. spart.CanCollide = false
  1399. spart.Material = "Neon"
  1400. spart.Anchored = true
  1401. spart.CFrame = root.CFrame + Vector3.new(0,0.1,0)
  1402. local tick = Instance.new("Sound",spart)
  1403. tick.SoundId = "rbxassetid://304529688"
  1404. tick.Volume = 1.5
  1405. tick.Pitch = 0.85
  1406. tick:Play()
  1407. local tickn = Instance.new("Sound",spart)
  1408. tickn.SoundId = "rbxassetid://138186576"
  1409. tickn.Volume = 1.5
  1410. tickn.Pitch = 1
  1411. tickn:Play()
  1412. local tick2e = Instance.new("Sound",spart)
  1413. tick2e.SoundId = "rbxassetid://272207079"
  1414. tick2e.Volume = 2.5
  1415. tick2e.Looped = true
  1416. tick2e.Pitch = 0.85
  1417. tick2e:Play()
  1418. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  1419. local pt1er2 = NumberSequenceKeypoint.new(0,20,0)
  1420. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1421. local effectoz = Instance.new("ParticleEmitter",spart)
  1422. effectoz.Texture = "rbxassetid://242109931"
  1423. effectoz.LightEmission = 1
  1424. effectoz.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1425. effectoz.Lifetime = NumberRange.new(2.5)
  1426. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1427. effectoz.Speed = NumberRange.new(0,0)
  1428. effectoz.Rotation = NumberRange.new(-300,300)
  1429. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1430. effectoz.RotSpeed = NumberRange.new(-500,500)
  1431. effectoz.Speed = NumberRange.new(5)
  1432. effectoz.VelocitySpread = 10000000
  1433. effectoz.Rate = 1000000000000
  1434. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1435. effectoz2.Texture = "rbxassetid://242109931"
  1436. effectoz2.LightEmission = 1
  1437. effectoz2.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1438. effectoz2.Lifetime = NumberRange.new(0.5)
  1439. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1440. effectoz2.Speed = NumberRange.new(0,0)
  1441. effectoz2.Rotation = NumberRange.new(-300,300)
  1442. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1443. effectoz2.Speed = NumberRange.new(100)
  1444. effectoz2.VelocitySpread = 10000000
  1445. effectoz2.Rate = 1000000000000
  1446. spart.Size = vt(35,5,35)
  1447. spart.Transparency = 1
  1448. spart.CFrame = root.CFrame
  1449. wait(0.5)
  1450. spart.Touched:connect(function(hit)
  1451. Damagefunc(hit,25,30,-20,"Normal",root,.2,1)
  1452. end)
  1453. ash:Destroy()
  1454. effectoz2.Rate = 0
  1455. wait(5)
  1456. effecton:Destroy()
  1457. effectoz.Rate = 0
  1458. tick2e:Stop()
  1459. wait(2.5)
  1460. spart:Destroy()
  1461. wait(1)
  1462. for i = 0, 10 do
  1463. larm.Transparency = larm.Transparency - 0.1
  1464. rarm.Transparency = rarm.Transparency - 0.1
  1465. lleg.Transparency = lleg.Transparency - 0.1
  1466. rleg.Transparency = rleg.Transparency - 0.1
  1467. tors.Transparency = tors.Transparency - 0.1
  1468. hed.Transparency = hed.Transparency - 0.1
  1469. wait()
  1470. end
  1471. sbs:Destroy()
  1472. char.Humanoid.WalkSpeed = 16
  1473. for i = 0, 25 do
  1474. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1475. Meshshur.Scale = Meshshur.Scale - vt(1,0,1)
  1476. wait(0)
  1477. end
  1478. shur:Destroy()
  1479. end
  1480.  
  1481. function MassiveFireBall()
  1482. local shur = Instance.new("Part",char)
  1483. local gahd = Instance.new("Sound",char)
  1484. char.Humanoid.WalkSpeed = 0
  1485. gahd.SoundId = "rbxassetid://313945165"
  1486. gahd.Volume = 2.5
  1487. gahd.Pitch = 0.6
  1488. gahd:Play()
  1489. shur.Transparency = 1
  1490. shur.Material = "Neon"
  1491. shur.BrickColor = bc("Bright red")
  1492. shur.Anchored = true
  1493. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1494. shur.Size = vt(1,0.2,1)
  1495. shur.CanCollide = false
  1496. local dec = Instance.new("Decal",shur)
  1497. dec.Texture = symbolimg
  1498. dec.Face = "Top"
  1499. local dec2 = dec:Clone()
  1500. dec2.Parent = shur
  1501. dec2.Face = "Bottom"
  1502. local Meshshur = Instance.new("CylinderMesh",shur)
  1503. Meshshur.Scale = vt(0,1,0)
  1504. for i = 0, 25 do
  1505. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1506. Meshshur.Scale = Meshshur.Scale + vt(1.25,0,1.25)
  1507. wait(0)
  1508. end
  1509. local touched = false
  1510. local delay = false
  1511. local spart = Instance.new("Part",char)
  1512. local tick = Instance.new("Sound",spart)
  1513. tick.SoundId = "rbxassetid://304448425"
  1514. tick.Volume = 1.5
  1515. tick.Pitch = 0.85
  1516. tick:Play()
  1517. spart.Size = vt(2,2,2)
  1518. spart.BrickColor = BrickColor.new("Deep orange")
  1519. spart.Transparency = 1
  1520. spart.CanCollide = false
  1521. spart.Material = "Neon"
  1522. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1523. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  1524. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1525. local effecto = Instance.new("ParticleEmitter",spart)
  1526. effecto.Texture = "rbxassetid://242109931"
  1527. effecto.LightEmission = 1
  1528. effecto.LockedToPart = false
  1529. effecto.Color = ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569))
  1530. effecto.Rate = 10000
  1531. effecto.Lifetime = NumberRange.new(0.5)
  1532. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1533. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1534. effecto.Speed = NumberRange.new(0,0)
  1535. effecto.RotSpeed = NumberRange.new(-500,500)
  1536. local bv = Instance.new("BodyVelocity")
  1537. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1538. bv.velocity = mouse.Hit.lookVector * 150
  1539. bv.Parent = spart
  1540. wait(0.05)
  1541. spart.Touched:connect(function(hit)
  1542. if touched == false then
  1543. touched = true
  1544. if hit.Name == "Water" then
  1545. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1546. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1547. local smokecolor = Color3.new(0.5,0.5,0.5)
  1548. local tick = Instance.new("Sound",spart)
  1549. tick.SoundId = "rbxassetid://629468689"
  1550. tick.Volume = 1.5
  1551. tick.Pitch = 1
  1552. tick:Play()
  1553. effecto.Rate = 0
  1554. local effectoz = Instance.new("ParticleEmitter",spart)
  1555. effectoz.Texture = "rbxassetid://242109931"
  1556. effectoz.LightEmission = 0.75
  1557. effectoz.Color = ColorSequence.new(smokecolor)
  1558. effectoz.Lifetime = NumberRange.new(3)
  1559. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1560. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1561. effectoz.Rotation = NumberRange.new(-300,300)
  1562. effectoz.RotSpeed = NumberRange.new(-500,500)
  1563. effectoz.Speed = NumberRange.new(10)
  1564. effectoz.VelocitySpread = 75
  1565. effectoz.Rate = 1000000000000
  1566. spart.Anchored = true
  1567. wait(3)
  1568. effectoz.Rate = 0
  1569. wait(2.5)
  1570. spart:Destroy()
  1571. end
  1572. if hit.Name ~= "Water" then
  1573. local saveposition = spart.CFrame
  1574. spart.Anchored = true
  1575. local tick = Instance.new("Sound",spart)
  1576. tick.SoundId = "rbxassetid://304529688"
  1577. tick.Volume = 1.5
  1578. tick.Pitch = 0.85
  1579. tick:Play()
  1580. local tickn = Instance.new("Sound",spart)
  1581. tickn.SoundId = "rbxassetid://138186576"
  1582. tickn.Volume = 1.5
  1583. tickn.Pitch = 1
  1584. tickn:Play()
  1585. local tick2e = Instance.new("Sound",spart)
  1586. tick2e.SoundId = "rbxassetid://272207079"
  1587. tick2e.Volume = 2.5
  1588. tick2e.Looped = true
  1589. tick2e.Pitch = 0.85
  1590. tick2e:Play()
  1591. effecto:Destroy()
  1592. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1593. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  1594. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1595. local effectoz = Instance.new("ParticleEmitter",spart)
  1596. effectoz.Texture = "rbxassetid://242109931"
  1597. effectoz.LightEmission = 1
  1598. effectoz.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1599. effectoz.Lifetime = NumberRange.new(2.5)
  1600. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1601. effectoz.Speed = NumberRange.new(0,0)
  1602. effectoz.Rotation = NumberRange.new(-300,300)
  1603. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1604. effectoz.RotSpeed = NumberRange.new(-500,500)
  1605. effectoz.Speed = NumberRange.new(10)
  1606. effectoz.VelocitySpread = 10000000
  1607. effectoz.Rate = 1000000000000
  1608. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1609. effectoz2.Texture = "rbxassetid://242109931"
  1610. effectoz2.LightEmission = 1
  1611. effectoz2.Color = ColorSequence.new(ColorSequence.new(Color3.new(0.992157, 1, 0.67451),Color3.new(1, 0.658824, 0.321569)))
  1612. effectoz2.Lifetime = NumberRange.new(0.5)
  1613. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1614. effectoz2.Speed = NumberRange.new(0,0)
  1615. effectoz2.Rotation = NumberRange.new(-300,300)
  1616. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1617. effectoz2.Speed = NumberRange.new(250)
  1618. effectoz2.VelocitySpread = 10000000
  1619. effectoz2.Rate = 1000000000000
  1620. spart.Size = vt(25,25,25)
  1621. spart.Transparency = 1
  1622. spart.CFrame = saveposition
  1623. wait(0.5)
  1624. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  1625. effectoz2.Rate = 0
  1626. wait(5)
  1627. effectoz.Rate = 0
  1628. tick2e:Stop()
  1629. wait(2.5)
  1630. spart:Destroy()
  1631. end
  1632. end
  1633. end)
  1634. char.Humanoid.WalkSpeed = 16
  1635. wait(1)
  1636. for i = 0, 25 do
  1637. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1638. Meshshur.Scale = Meshshur.Scale - vt(1.25,0,1.25)
  1639. wait(0)
  1640. end
  1641. shur:Destroy()
  1642. end
  1643.  
  1644. mouse.KeyDown:connect(function(k)
  1645.  
  1646. k = k:lower()
  1647. if k == "q" and attacking == false then
  1648. if plr.Character and mouse.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Left Shoulder') then
  1649. shooting = true
  1650.  
  1651. local Head = plr.Character.Head
  1652. local LeftShoulder = plr.Character.Torso["Left Shoulder"]
  1653. local LeftArm = plr.Character["Left Arm"]
  1654. local MousePosition = mouse.Hit.p
  1655. local ToMouse = (MousePosition - Head.Position).unit
  1656. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1657. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (LeftArm.Size.X / 2)), ((Head.Size.Y / 2) - (LeftArm.Size.Z / 2)), 0)))
  1658. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  1659. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1660. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1661. if tostring(LateralAngle) == "-1.#IND" then
  1662. LateralAngle = 0
  1663. end
  1664. tick.SoundId = "http://www.roblox.com/asset/?id=267083313"
  1665. tick.Volume = 1.5
  1666. tick.Pitch = 1
  1667. tick:Play()
  1668. tick.Looped = false
  1669. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1670. if LateralAngle > (math.pi / 2) then
  1671. LateralAngle = (math.pi / 2)
  1672. end
  1673. if Cross.Y < 0 then
  1674. LateralAngle = -LateralAngle
  1675. end
  1676. LeftShoulder.C0 = CFrame.new(LeftShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / -2) + LateralAngle), math.pi/-2)
  1677. wait()
  1678.  
  1679. wait(1)
  1680. LeftShoulder.C0 = CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(0,math.pi/-2,0)
  1681. shooting = false
  1682. end
  1683. if energy >= 10 then
  1684. energy = energy - 10
  1685. attacking = true
  1686. Fireball()
  1687. attacking = false
  1688. end
  1689. end
  1690. if k == "r" and attacking == false then
  1691. if energy >= 50 then
  1692. energy = energy - 50
  1693. attacking = true
  1694. MassiveFireBall()
  1695. attacking = false
  1696. end
  1697. end
  1698. if k == "t" and attacking == false then
  1699. if energy >= 100 then
  1700. energy = energy - 100
  1701. attacking = true
  1702. Rockets()
  1703. attacking = false
  1704. end
  1705. end
  1706. if k == "e" and attacking == false then
  1707. if plr.Character and mouse.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Right Shoulder') then
  1708. shooting = true
  1709. local Head = plr.Character.Head
  1710. local RightShoulder = plr.Character.Torso["Right Shoulder"]
  1711. local RightArm = plr.Character["Right Arm"]
  1712. local MousePosition = mouse.Hit.p
  1713. local ToMouse = (MousePosition - Head.Position).unit
  1714. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1715. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  1716. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  1717. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1718. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1719. if tostring(LateralAngle) == "-1.#IND" then
  1720. LateralAngle = 0
  1721. end
  1722. tick.SoundId = "http://www.roblox.com/asset/?id=267083313"
  1723. tick.Volume = 1.5
  1724. tick.Pitch = 1
  1725. tick:Play()
  1726. tick.Looped = false
  1727. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1728. if LateralAngle > (math.pi / 2) then
  1729. LateralAngle = (math.pi / 2)
  1730. end
  1731. if Cross.Y < 0 then
  1732. LateralAngle = -LateralAngle
  1733. end
  1734. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  1735. wait()
  1736.  
  1737. wait(1)
  1738. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,math.pi/2,0)
  1739. shooting = false
  1740. end
  1741. if energy >= 10 then
  1742. energy = energy - 10
  1743. attacking = true
  1744. Fireball()
  1745. attacking = false
  1746. end
  1747. end
  1748. if k == "0" and attacking == false then
  1749. if charge == false then
  1750. tick:Resume()
  1751. tick2:Resume()
  1752. charge = true
  1753. attacking = true
  1754. if charge == true then
  1755. effecto.Rate = 10000
  1756. end
  1757. end
  1758. end
  1759. end)
  1760. mouse.KeyUp:connect(function(k)
  1761.  
  1762. k = k:lower()
  1763. if k == "0" then
  1764. charge = false
  1765. tick:Pause()
  1766. tick2:Pause()
  1767. attacking = false
  1768. effecto.Rate = 0
  1769. end
  1770. end)
  1771.  
  1772. while wait() do
  1773. healthgui.Text = "Energy: " ..math.floor(energy).. "/1000"
  1774. if charge == true then
  1775. while true do
  1776. healthgui.Text = "Energy: " ..math.floor(energy).. "/1000"
  1777. energy = energy + 0.75
  1778. wait()
  1779. if energy > 1000 then
  1780. energy = 1000
  1781. end
  1782. if charge == false then
  1783. break
  1784. end
  1785. end
  1786. end
  1787.  
  1788. if energy > 1000 then
  1789. energy = 1000
  1790. end
  1791. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement