Advertisement
wamandnj

Untitled

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