Advertisement
epicboi

dragon

May 17th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.24 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. local remote = NS ([=[
  304. --------------------------This is an Official script from Duelist--------------------------
  305. ---{-------------------- -------------------}---
  306. ---{-------------------- / \ -------------------}---
  307. ---{-------------------- II -------------------}---
  308. ---{-------------------- II -------------------}---
  309. ---{-------------------- II -------------------}---
  310. ---{-------------------- A========A -------------------}---
  311. ---{-------------------- II -------------------}---
  312. ---{-------------------- II -------------------}---
  313. ---{-------------------- W -------------------}---
  314. -------------------------------------------------------------------------------------------------------------
  315. --i used stravants Beautifier so it might look a bit wonky
  316. Meshes = {
  317. Blast = '20329976',
  318. Crown = '1323306',
  319. Ring = '3270017',
  320. Claw = '10681506',
  321. Crystal = '9756362',
  322. Coil = '9753878',
  323. Cloud = '1095708',
  324. }
  325. clangsounds = {
  326. '199149119',
  327. '199149109',
  328. '199149072',
  329. '199149025',
  330. '199148971'
  331. }
  332. hitsounds = {
  333. '199149137',
  334. '199149186',
  335. '199149221',
  336. '199149235',
  337. '199149269',
  338. '199149297'
  339. }
  340. blocksounds = {
  341. '199148933',
  342. '199148947'
  343. }
  344. armorsounds = {
  345. '199149321',
  346. '199149338',
  347. '199149367',
  348. '199149409',
  349. '199149452'
  350. }
  351. woosh = {
  352. Heavy1 = '320557353',
  353. Heavy2 = '320557382',
  354. Heavy3 = '320557453',
  355. Heavy4 = '199144226',
  356. Heavy5 = '203691447',
  357. Heavy6 = '203691467',
  358. Heavy7 = '203691492',
  359. Light1 = '320557413',
  360. Light2 = '320557487',
  361. Light3 = '199145095',
  362. Light4 = '199145146',
  363. Light5 = '199145887',
  364. Light6 = '199145913',
  365. Light7 = '199145841',
  366. Medium1 = '320557518',
  367. Medium2 = '320557537',
  368. Medium3 = '320557563',
  369. Medium4 = '199145204'
  370. }
  371. music = {--i like music a lot
  372. Breaking = '179281636',
  373. FinalReckoning = '357375770',
  374. NotDeadYet = '346175829',
  375. Intense = '151514610',
  376. JumpP1 = '160536628',
  377. JumpP2 = '60536666',
  378. SonsOfWar = '158929777',
  379. WrathOfSea = '165520893',
  380. ProtecTorsofEarth = '160542922',
  381. SkyTitans = '179282324',
  382. ArchAngel = '144043274',
  383. Anticipation = '168614529',
  384. TheMartyred = '186849544',
  385. AwakeP1 = '335631255',
  386. AwakeP2 = '335631297',
  387. ReadyAimFireP1 = '342455387',
  388. ReadyAimFireP2 = '342455399',
  389. DarkLordP1 = '209567483',
  390. DarkLordP2 = '209567529',
  391. BloodDrainP1 = '162914123',
  392. BloodDrainP2 = '162914203',
  393. DanceOfSwords = '320473062',
  394. Opal = '286415112',
  395. Calamity = '190454307',
  396. Hypnotica = '155968128',
  397. Nemisis = '160453802',
  398. Breathe = '276963903',
  399. GateToTheRift = '270655227',
  400. InfernalBeserking = '244143404',
  401. Trust = '246184492',
  402. AwakeningTheProject = '245121821',
  403. BloodPain = '242545577',
  404. Chaos = '247241693',
  405. NightmareFictionHighStake = '248062278',
  406. TheWhiteWeapon = '247236446',
  407. Gale = '256851659',
  408. ImperialCode = '256848383',
  409. Blitzkrieg = '306431437',
  410. RhapsodyRage = '348690251',
  411. TheGodFist = '348541501',
  412. BattleForSoul = '321185592',
  413. TheDarkColossus = '305976780',
  414. EmpireOfAngels = '302580452',
  415. Kronos = '302205297',
  416. Exorcist = '299796054',
  417. CrimsonFlames = '297799220',
  418. UltimatePower = '295753229',
  419. DrivingInTheDark = '295753229',
  420. AscendToPower = '293860654',
  421. GodOfTheSun = '293612495',
  422. DarkRider = '293861765',
  423. Vengeance = '293375555',
  424. SoundOfWar = '293376196',
  425. HellsCrusaders = '293012202',
  426. Legend = '293011823',
  427. RisingSouls = '290524959'
  428. }
  429. misc = {
  430. GroundSlam = '199145477',
  431. LaserSlash = '199145497',
  432. RailGunFire = '199145534',
  433. Charge1 = '199145659',
  434. Charge2 = '169380469',
  435. Charge3 = '169380479',
  436. EmptyGun = '203691822',
  437. GunShoot = '203691837',
  438. Stomp1 = '200632875',
  439. Stomp2 = '200632561',
  440. TelsaCannonCharge = '169445572',
  441. TelsaCannonShoot = '169445602',
  442. AncientHymm = '245313442'
  443. }
  444. wait(1 / 60)
  445. local Player = owner
  446. local Character = Player.Character
  447. local Humanoid = Character.Humanoid
  448. local m = Instance.new('Model', Character)
  449. m.Name = "WeaponModel"
  450. local LeftArm = Character["Left Arm"]
  451. local RightArm = Character["Right Arm"]
  452. local LeftLeg = Character["Left Leg"]
  453. local RightLeg = Character["Right Leg"]
  454. local Head = Character.Head
  455. local Torso = Character.Torso
  456. local cam = game.Workspace.CurrentCamera
  457. local RootPart = Character.HumanoidRootPart
  458. local RootJoint = RootPart.RootJoint
  459. --cam.CameraSubject = Head
  460. local equipped = false
  461. local attack = false
  462. local Anim = 'Idle'
  463. local idle = 0
  464. local sprint = false
  465. local battlestance = false
  466. local attacktype = 1
  467. local state = 'none'
  468. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  469. local velocity = RootPart.Velocity.y
  470. local sine = 0
  471. local change = 1
  472. local on = false
  473. local grabbed = false
  474. local skill1 = false
  475. local skill2 = false
  476. local skill3 = false
  477. local skill4 = false
  478. local cooldown1 = 0
  479. local cooldown2 = 0
  480. local cooldown3 = 0
  481. local cooldown4 = 0
  482. local co1 = 10--how long it will take for skill to cooldown
  483. local co2 = 15
  484. local co3 = 15
  485. local co4 = 25
  486. local inputserv = game:GetService('UserInputService')
  487. local typing = false
  488. local crit = false
  489. local critchance = 2--critical chance percentage
  490. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  491. local critdamageaddmax = 7--maximum amount
  492. local maxstamina = 100--max amount of stamina
  493. local stamina = 0--stamina you start out with
  494. local skill1stam = 10--how much stamina is needed for a skill
  495. local skill2stam = 10
  496. local skill3stam = 20
  497. local skill4stam = 30
  498. local recovermana = 3--how much mana per second
  499. local defensevalue = 1--how much defense this character has
  500. local speedvalue = 1--how much speed this character has
  501. --speed is 16*speedvalue
  502. local mindamage = 5--self explanatory
  503. local maxdamage = 7--self explanatory
  504. local damagevalue = 1--how much damage this character has
  505. --damage is math.random(mindamage,maxdamage)*damagevalue
  506. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  507. --asd
  508. local cn = CFrame.new-- make things easier :)
  509. local mr = math.rad
  510. local angles = CFrame.Angles
  511. local ud = UDim2.new
  512. local c3 = Color3.new
  513. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  514. --asd
  515. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  516. Humanoid.Animator:Destroy()
  517.  
  518. --Angles For RootJoint `~`
  519. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  520. --Save Shoulders/Hips
  521. RSH, LSH = nil, nil
  522. RHS, LHS = nil, nil
  523. --Shoulders
  524. RW = Instance.new("Weld")
  525. LW = Instance.new("Weld")
  526. --Hips
  527. RH = Instance.new("Weld")
  528. LH = Instance.new("Weld")
  529. --
  530. Player = Player
  531. ch = Character
  532. LHS = Torso["Left Hip"]
  533. RHS = Torso["Right Hip"]
  534. RSH = ch.Torso["Right Shoulder"]
  535. LSH = ch.Torso["Left Shoulder"]
  536. --
  537. RSH.Parent = nil
  538. LSH.Parent = nil
  539. --
  540. LHS.Parent = nil
  541. RHS.Parent = nil
  542. --
  543. RW.Name = "RW"
  544. RW.Part0 = ch.Torso
  545. RW.C0 = cn(1.5, 0.5, 0)
  546. RW.C1 = cn(0, 0.5, 0)
  547. RW.Part1 = ch["Right Arm"]
  548. RW.Parent = ch.Torso
  549. --
  550. LW.Name = "LW"
  551. LW.Part0 = ch.Torso
  552. LW.C0 = cn(-1.5, 0.5, 0)
  553. LW.C1 = cn(0, 0.5, 0)
  554. LW.Part1 = ch["Left Arm"]
  555. LW.Parent = ch.Torso
  556. --
  557. LH.Name = "LH"
  558. LH.Part0 = ch.Torso
  559. LH.C0 = cn(-0.5, -2, 0)
  560. LH.Part1 = ch["Left Leg"]
  561. LH.Parent = ch.Torso
  562. --
  563. RH.Name = "RH"
  564. RH.Part0 = ch.Torso
  565. RH.C0 = cn(0.5, -2, 0)
  566. RH.Part1 = ch["Right Leg"]
  567. RH.Parent = ch.Torso
  568.  
  569. local Flying = false
  570.  
  571. owner.Character.Humanoid.Changed:connect(function(jump)
  572. if Flying == true then
  573. if jump == "Jump" then
  574. Humanoid.Jump = false
  575. end
  576. end
  577. end)
  578.  
  579. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  580.  
  581. Torso.Transparency = 1
  582. Head.Transparency = 1
  583. LeftLeg.Transparency = 1
  584. RightLeg.Transparency = 1
  585. LeftArm.Transparency = 1
  586. RightArm.Transparency = 1
  587.  
  588. for i,v in pairs (Character:GetChildren()) do
  589. if v.ClassName == "Hat" or v.ClassName == "Accessory"
  590. then v:Destroy()
  591. end
  592. end
  593.  
  594. for i,v in pairs (Character.Head:GetChildren()) do
  595. if v.ClassName == "Decal"
  596. then v:Destroy()
  597. end
  598. end
  599.  
  600. Character.Animate:Destroy()
  601.  
  602. local scrn = Instance.new('ScreenGui')
  603. scrn.Parent = nil
  604.  
  605. function makeframe(par, trans, pos, size, color)
  606. local frame = Instance.new('Frame', par)
  607. frame.BackgroundTransparency = trans
  608. frame.BorderSizePixel = 0
  609. frame.Position = pos
  610. frame.Size = size
  611. frame.BackgroundColor3 = color
  612. return frame
  613. end
  614. function makelabel(par, text)
  615. local label = Instance.new('TextLabel', par)
  616. label.BackgroundTransparency = 1
  617. label.Size = ud(1, 0, 1, 0)
  618. label.Position = ud(0, 0, 0, 0)
  619. label.TextColor3 = c3(255, 255, 255)
  620. label.TextStrokeTransparency = 0
  621. label.FontSize = Enum.FontSize.Size32
  622. label.Font = Enum.Font.SourceSansBold
  623. label.BorderSizePixel = 0
  624. label.TextScaled = true
  625. label.Text = text
  626. end
  627. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  628. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  629. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  630. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  631. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  632. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  633. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  634. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  635. text1 = makelabel(framesk1, '[3] Skill3')
  636. text2 = makelabel(framesk2, '[4] Skill4')
  637. text3 = makelabel(framesk3, "[2] Skill2")
  638. text4 = makelabel(framesk4, '[1] Skill1')
  639. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  640. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  641. staminatext = makelabel(staminabar, 'Mana')
  642. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  643. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  644. healthtext = makelabel(healthbar, 'Health')
  645.  
  646. local stats = Instance.new('Folder', Character)
  647. stats.Name = 'Stats'
  648. local block = Instance.new('BoolValue', stats)
  649. block.Name = 'Block'
  650. block.Value = false
  651. local stun = Instance.new('BoolValue', stats)
  652. stun.Name = 'Stun'
  653. stun.Value = false
  654. local defense = Instance.new('NumberValue', stats)
  655. defense.Name = 'Defence'
  656. defense.Value = defensevalue
  657. local speed = Instance.new('NumberValue', stats)
  658. speed.Name = 'Speed'
  659. speed.Value = speedvalue
  660. local damagea = Instance.new('NumberValue', stats)
  661. damagea.Name = 'Damage'
  662. damagea.Value = damagevalue
  663.  
  664. function atktype(s, e)
  665. coroutine.resume(coroutine.create(function()
  666. attacktype = e
  667. wait(1.5)
  668. attacktype = s
  669. end))
  670. end
  671.  
  672. function turncrit()
  673. coroutine.resume(coroutine.create(function()
  674. print'CRITICAL!'
  675. crit = true
  676. wait(.25)
  677. crit = false
  678. end))
  679. end
  680.  
  681. function subtractstamina(k)
  682. if stamina >= k then
  683. stamina = stamina - k
  684. end
  685. end
  686.  
  687. function clerp(a, b, t)
  688. return a:lerp(b, t)
  689. end
  690.  
  691. function randomizer(percent)
  692. local randomized = math.random(0, 100)
  693. if randomized <= percent then
  694. return true
  695. elseif randomized >= percent then
  696. return false
  697. end
  698. end
  699.  
  700. local RbxUtility = LoadLibrary("RbxUtility")
  701. local Create = RbxUtility.Create
  702.  
  703. function RemoveOutlines(part)
  704. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  705. end
  706.  
  707. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  708. local Part = Create("Part"){
  709. formFactor = FormFactor,
  710. Parent = Parent,
  711. Reflectance = Reflectance,
  712. Transparency = Transparency,
  713. CanCollide = false,
  714. Locked = true,
  715. BrickColor = BrickColor.new(tostring(BColor)),
  716. Name = Name,
  717. Size = Size,
  718. Material = Material,
  719. }
  720. RemoveOutlines(Part)
  721. return Part
  722. end
  723.  
  724. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  725. local Msh = Create(Mesh){
  726. Parent = Part,
  727. Offset = OffSet,
  728. Scale = Scale,
  729. }
  730. if Mesh == "SpecialMesh" then
  731. Msh.MeshType = MeshType
  732. Msh.MeshId = MeshId
  733. end
  734. return Msh
  735. end
  736.  
  737. function CreateWeld(Parent, Part0, Part1, C0, C1)
  738. local Weld = Create("Weld"){
  739. Parent = Parent,
  740. Part0 = Part0,
  741. Part1 = Part1,
  742. C0 = C0,
  743. C1 = C1,
  744. }
  745. return Weld
  746. end
  747.  
  748. function rayCast(pos, dir, maxl, ignore)
  749. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  750. end
  751. --Effects
  752. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  753. local p = Instance.new('Part', par or workspace)
  754. p.CFrame = pos1
  755. p.Anchored = true
  756. p.Material = 'SmoothPlastic'
  757. p.CanCollide = false
  758. p.TopSurface = 0
  759. p.Size = Vector3.new(1, 1, 1)
  760. p.BottomSurface = 0
  761. p.Transparency = trans
  762. p.FormFactor = 'Custom'
  763. RemoveOutlines(p)
  764. local mesh = Instance.new('SpecialMesh', p)
  765. mesh.Scale = size
  766. if id ~= nil and type == nil then
  767. mesh.MeshId = 'rbxassetid://'..id
  768. elseif id == nil and type ~= nil then
  769. mesh.MeshType = type
  770. elseif id == nil and type == nil then
  771. mesh.MeshType = 'Brick'
  772. end
  773. coroutine.wrap(function()
  774. for i = 0, delay1, .1 do
  775. wait(1 / 60)
  776. p.CFrame = p.CFrame
  777. mesh.Scale = mesh.Scale + howmuch
  778. p.Transparency = p.Transparency + trans1
  779. end
  780. p:Destroy()
  781. end)()
  782. return p
  783. end
  784. function clangy(cframe)
  785. wait(1 / 60)
  786. local clang = {}
  787. local dis = 0
  788. local part = Instance.new('Part', nil)
  789. part.CFrame = cframe
  790. part.Anchored = true
  791. part.CanCollide = false
  792. part.BrickColor = BrickColor.new('New Yeller')
  793. part.FormFactor = 'Custom'
  794. part.Name = 'clanger'
  795. part.Size = Vector3.new(.2, .2, .2)
  796. part.TopSurface = 10
  797. part.BottomSurface = 10
  798. part.RightSurface = 10
  799. part.LeftSurface = 10
  800. part.BackSurface = 10
  801. part.FrontSurface = 10
  802. --part.Material='Neon'
  803. part:BreakJoints()
  804. local mesh = Instance.new('BlockMesh', part)
  805. coroutine.wrap(function()
  806. for i = 1, 7 do
  807. wait(1 / 60)
  808. dis = dis + .2
  809. local partc = part:clone()
  810. partc.Parent = workspace
  811. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  812. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  813. table.insert(clang, partc)
  814. end
  815. for i, v in pairs(clang) do
  816. coroutine.wrap(function()
  817. for i = 1, 10 do
  818. wait(.01)
  819. v.Transparency = v.Transparency + .1
  820. end
  821. v:destroy()
  822. end)()
  823. end
  824. end)()
  825. end
  826. --damage effects
  827. function circle(color, pos1)
  828. local p = Instance.new('Part', m)
  829. p.BrickColor = BrickColor.new(color)
  830. p.CFrame = pos1
  831. p.Anchored = true
  832. p.Material = 'Plastic'
  833. p.CanCollide = false
  834. p.TopSurface = 0
  835. p.Size = Vector3.new(1, 1, 1)
  836. p.BottomSurface = 0
  837. p.Transparency = 0.35
  838. p.FormFactor = 'Custom'
  839. local mesh = Instance.new('CylinderMesh', p)
  840. mesh.Scale = Vector3.new(0, 0, 0)
  841. coroutine.wrap(function()
  842. for i = 0, 5, .1 do
  843. wait(1 / 60)
  844. p.CFrame = p.CFrame
  845. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  846. p.Transparency = p.Transparency + .025
  847. end
  848. p:Destroy()
  849. end)()
  850. end
  851. function firespaz1(color, pos1)
  852. local p = Instance.new('Part', m)
  853. p.BrickColor = BrickColor.new(color)
  854. p.CFrame = pos1
  855. p.Anchored = true
  856. p.Material = 'Plastic'
  857. p.CanCollide = false
  858. p.TopSurface = 0
  859. p.Size = Vector3.new(1, 1, 1)
  860. p.BottomSurface = 0
  861. p.Transparency = 0.5
  862. p.FormFactor = 'Custom'
  863. local mesh = Instance.new('BlockMesh', p)
  864. mesh.Scale = Vector3.new(1, 1, 1)
  865. coroutine.wrap(function()
  866. for i = 0, 15, .1 do
  867. wait(1 / 30)
  868. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  869. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  870. p.Transparency = p.Transparency + .025
  871. end
  872. p:Destroy()
  873. end)()
  874. end
  875.  
  876. function pickrandom(tablesa)
  877. local randomized = tablesa[math.random(1, #tablesa)]
  878. return randomized
  879. end
  880. function sound(id, pitch, volume, par, last)
  881. local s = Instance.new('Sound', par or Torso)
  882. s.SoundId = 'rbxassetid://'..id
  883. s.Pitch = pitch or 1
  884. s.Volume = volume or 1
  885. wait()
  886. s:play()
  887. game.Debris:AddItem(s, last or 120)
  888. end
  889. function clangy(cframe)
  890. wait(1 / 60)
  891. local clang = {}
  892. local dis = 0
  893. local part = Instance.new('Part', nil)
  894. part.CFrame = cframe
  895. part.Anchored = true
  896. part.CanCollide = false
  897. part.BrickColor = BrickColor.new('New Yeller')
  898. part.FormFactor = 'Custom'
  899. part.Name = 'clanger'
  900. part.Size = Vector3.new(.2, .2, .2)
  901. part.TopSurface = 10
  902. part.BottomSurface = 10
  903. part.RightSurface = 10
  904. part.LeftSurface = 10
  905. part.BackSurface = 10
  906. part.FrontSurface = 10
  907. --part.Material='Neon'
  908. part:BreakJoints()
  909. local mesh = Instance.new('BlockMesh', part)
  910. coroutine.wrap(function()
  911. for i = 1, 7 do
  912. wait(1 / 60)
  913. dis = dis + .2
  914. local partc = part:clone()
  915. partc.Parent = workspace
  916. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  917. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  918. table.insert(clang, partc)
  919. end
  920. for i, v in pairs(clang) do
  921. coroutine.wrap(function()
  922. for i = 1, 10 do
  923. wait(.01)
  924. v.Transparency = v.Transparency + .1
  925. end
  926. v:destroy()
  927. end)()
  928. end
  929. end)()
  930. end
  931. --damage effects
  932. --Effects
  933. so = function(id, par, vol, pit)
  934. coroutine.resume(coroutine.create(function()
  935. local sou = Instance.new("Sound", par or workspace)
  936. sou.Volume = vol
  937. sou.Pitch = pit or 1
  938. sou.SoundId = id
  939. wait()
  940. sou:play()
  941. game:GetService("Debris"):AddItem(sou, 6)
  942. end))
  943. end
  944.  
  945. local function getclosest(obj, distance)
  946. local last, lastx = distance + 1
  947. for i, v in pairs(workspace:GetChildren()) do
  948. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  949. local t = v.Torso
  950. local dist = (t.Position - obj.Position).magnitude
  951. if dist <= distance then
  952. if dist < last then
  953. last = dist
  954. lastx = v
  955. end
  956. end
  957. end
  958. end
  959. return lastx
  960. end
  961.  
  962. function makegui(cframe, text)
  963. local a = math.random(-10, 10) / 100
  964. local c = Instance.new("Part")
  965. c.Transparency = 1
  966. Instance.new("BodyGyro").Parent = c
  967. c.Parent = m
  968. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  969. local f = Instance.new("BodyPosition")
  970. f.P = 2000
  971. f.D = 100
  972. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  973. f.position = c.Position + Vector3.new(0, 3, 0)
  974. f.Parent = c
  975. game:GetService("Debris"):AddItem(c, .5 + 6)
  976. c.CanCollide = false
  977. m.Parent = workspace
  978. c.CanCollide = false
  979. local bg = Instance.new('BillboardGui', m)
  980. bg.Adornee = c
  981. bg.Size = UDim2.new(1, 0, 1, 0)
  982. bg.StudsOffset = Vector3.new(0, 0, 0)
  983. bg.AlwaysOnTop = false
  984. local tl = Instance.new('TextLabel', bg)
  985. tl.BackgroundTransparency = 1
  986. tl.Size = UDim2.new(1, 0, 1, 0)
  987. tl.Text = text
  988. tl.Font = 'SourceSansBold'
  989. tl.FontSize = 'Size42'
  990. if crit == true then
  991. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  992. else
  993. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  994. end
  995. tl.TextStrokeTransparency = 0
  996. tl.TextScaled = true
  997. tl.TextWrapped = true
  998. coroutine.wrap(function()
  999. wait(2)
  1000. for i = 1, 10 do
  1001. wait()
  1002. tl.TextTransparency = tl.TextTransparency + .1
  1003. end
  1004. end)()
  1005. end
  1006.  
  1007. function tag(hum, Player)
  1008. local creator = Instance.new('ObjectValue', hum)
  1009. creator.Value = Player
  1010. creator.Name = 'creator'
  1011. end
  1012. function untag(hum)
  1013. if hum ~= nil then
  1014. local tag = hum:findFirstChild("creator")
  1015. if tag ~= nil then
  1016. tag.Parent = nil
  1017. end
  1018. end
  1019. end
  1020.  
  1021. function tagPlayer(h)
  1022. coroutine.wrap(function()
  1023. tag(h, Player)
  1024. wait(1)
  1025. untag(h)
  1026. end)()
  1027. end
  1028. function damage(hit, mind, maxd, knock, type, prop)
  1029. --[[
  1030. to apply it to a Player directly, make the first arg go to the Players Torso
  1031. 1 - normal type(damage and knockback)
  1032. 2 - drain type(damage no knockback)
  1033. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  1034. 4 - heal(heals target)
  1035. 5 - subtracts enemies defense
  1036. 6 - subtracts enemies speed
  1037. 7 -
  1038. ]]
  1039. if hit.Name:lower() == 'Hitbox' then
  1040. local pos = CFrame.new(0, 1, -1)
  1041. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  1042. coroutine.wrap(function()
  1043. for i = 1, 4 do
  1044. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  1045. end
  1046. end)()
  1047. end
  1048. if hit.Parent == nil then
  1049. return
  1050. end
  1051. local h = hit.Parent:FindFirstChild("Humanoid")
  1052. for i, v in pairs(hit.Parent:children()) do
  1053. if v:IsA("Humanoid") then
  1054. h = v
  1055. end
  1056. end
  1057. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  1058. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  1059. end
  1060. if hit.Parent:IsA('Hat') then
  1061. hit = hit.Parent.Parent:findFirstChild('Head')
  1062. end
  1063. local D = math.random(mind, maxd) * damagea.Value
  1064. if h.Parent:FindFirstChild('Stats') then
  1065. D = D / h.Parent:FindFirstChild('Stats').Defence.Value
  1066. elseif not h.Parent:FindFirstChild('Stats') then
  1067. D = D
  1068. end
  1069. if h then
  1070. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
  1071. end
  1072. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1073. if type == 1 then
  1074. tagPlayer(h)
  1075. local asd = randomizer(critchance)
  1076. if asd == true then
  1077. turncrit()
  1078. end
  1079. if crit == false then
  1080. h.Health = h.Health - D
  1081. else
  1082. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1083. end
  1084. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  1085. local vp = Instance.new('BodyVelocity')
  1086. vp.P = 500
  1087. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1088. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  1089. if knock > 0 then
  1090. vp.Parent = hit.Parent.Torso
  1091. end
  1092. game:GetService("Debris"):AddItem(vp, .5)
  1093. elseif type == 2 then
  1094. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  1095. local asd = randomizer(critchance)
  1096. if asd == true then
  1097. turncrit()
  1098. end
  1099. if crit == false then
  1100. h.Health = h.Health - D
  1101. else
  1102. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1103. end
  1104. tagPlayer(h)
  1105. elseif type == 3 then
  1106. tagPlayer(h)
  1107. local asd = randomizer(critchance)
  1108. if asd == true then
  1109. turncrit()
  1110. end
  1111. if crit == false then
  1112. h.Health = h.Health - D
  1113. else
  1114. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1115. end
  1116. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  1117. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  1118. for i = 1, 10 do
  1119. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  1120. end
  1121. elseif type == 4 then
  1122. h.Health = h.Health + D
  1123. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  1124. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  1125. end
  1126. end
  1127. end
  1128.  
  1129. function subtrackstamina(k)
  1130. if stamina >= k then
  1131. stamina = stamina - k
  1132. end
  1133. end
  1134.  
  1135. Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
  1136. Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006))
  1137. CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1138. LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1139. LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945))
  1140. CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1141. LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1142. LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588))
  1143. CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1144. NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  1145. NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1146. CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1147. RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1148. RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199))
  1149. CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1150. RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1151. RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441))
  1152. CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1153. TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  1154. TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1155. CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1156. Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
  1157. Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0))
  1158. CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093))
  1159. HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  1160. HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847))
  1161. CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1162. HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
  1163. HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
  1164. CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1165. BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
  1166. BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992))
  1167. CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1168. BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
  1169. BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686))
  1170. CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1171. Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Head",Vector3.new(1.59999979, 1, 1.19999993))
  1172. Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1))
  1173. CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1174. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  1175. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422))
  1176. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1177. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  1178. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958))
  1179. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1180. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
  1181. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051))
  1182. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1183. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
  1184. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031))
  1185. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1186. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  1187. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1))
  1188. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1189. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
  1190. Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1))
  1191. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1192. LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1193. LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
  1194. CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1195. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  1196. Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
  1197. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1198. LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1199. LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
  1200. CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1201. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  1202. Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
  1203. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1204. RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1205. RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
  1206. CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1207. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  1208. Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
  1209. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1210. RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
  1211. RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
  1212. CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1213. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
  1214. Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
  1215. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1216. NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  1217. NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1218. CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1219. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
  1220. Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1221. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1222. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 1, 1.39999998))
  1223. Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847))
  1224. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1225. TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
  1226. TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1227. CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1228. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
  1229. Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
  1230. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1231. Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  1232. Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622))
  1233. CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1234. Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
  1235. Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
  1236. CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1237. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
  1238. Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
  1239. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1240. Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  1241. Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942))
  1242. CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1243. Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
  1244. Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  1245. CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1246. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
  1247. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  1248. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1249. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  1250. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1))
  1251. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1252. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
  1253. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907))
  1254. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1255. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
  1256. Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
  1257. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1258.  
  1259.  
  1260.  
  1261. function updateskills()
  1262. if cooldown1 <= co1 then
  1263. cooldown1 = cooldown1 + 1 / 30
  1264. end
  1265. if cooldown2 <= co2 then
  1266. cooldown2 = cooldown2 + 1 / 30
  1267. end
  1268. if cooldown3 <= co3 then
  1269. cooldown3 = cooldown3 + 1 / 30
  1270. end
  1271. if cooldown4 <= co4 then
  1272. cooldown4 = cooldown4 + 1 / 30
  1273. end
  1274. if stamina <= maxstamina then
  1275. stamina = stamina + recovermana / 30
  1276. end
  1277. end
  1278.  
  1279. coroutine.resume(coroutine.create(function(Part,Weld)
  1280. while Part.Parent~=nil do
  1281. wait(5)
  1282. for i=0,1,0.2 do
  1283. wait()
  1284. BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1285. end
  1286. for i=0,1,0.2 do
  1287. wait()
  1288. BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1289. end
  1290. end
  1291. end),BlinkPartR,BlinkPartRweld)
  1292.  
  1293. coroutine.resume(coroutine.create(function(Part,Weld)
  1294. while Part.Parent~=nil do
  1295. wait(5)
  1296. for i=0,1,0.2 do
  1297. wait()
  1298. BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
  1299. end
  1300. for i=0,1,0.2 do
  1301. wait()
  1302. BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
  1303. end
  1304. end
  1305. end),BlinkPartL,BlinkPartLweld)
  1306.  
  1307. game:GetService'RunService'.Heartbeat:connect(function()
  1308. updateskills()
  1309. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1310. velocity = RootPart.Velocity.y
  1311. sine = sine + change
  1312. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1313. if equipped == true or equipped == false then
  1314. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1315. Anim = "Jump"
  1316. if attack == false then
  1317. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1318. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1319. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1320. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1321. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1322. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1323. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1324. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1325. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1326. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1327. end
  1328. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1329. Anim = "Fall"
  1330. if attack == false then
  1331. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1332. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
  1333. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1334. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1335. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1336. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1337. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1338. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1339. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1340. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1341. end
  1342. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1343. Anim = "Idle"
  1344. if attack == false and Flying == false then
  1345. change = 1
  1346. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1347. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3)
  1348. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3)
  1349. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1350. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1351. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1352. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
  1353. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3)
  1354. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3)
  1355. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3)
  1356. elseif attack == false and Flying == true then
  1357. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  1358. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3)
  1359. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3)
  1360. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1361. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1362. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1363. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1364. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3)
  1365. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3)
  1366. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3)
  1367. end
  1368. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1369. Anim = "Walk"
  1370. if attack == false and Flying == false then
  1371. change = 1
  1372. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  1373. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
  1374. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3)
  1375. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
  1376. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1377. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
  1378. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
  1379. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1380. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
  1381. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
  1382. elseif attack == false and Flying == true then
  1383. change = 1
  1384. Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1385. NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3)
  1386. HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3)
  1387. LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1388. LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1389. RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
  1390. RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
  1391. TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3)
  1392. Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
  1393. Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3)
  1394. end
  1395. end
  1396. end
  1397. end)
  1398.  
  1399. remote = Instance.new 'RemoteFunction';
  1400. remote.Parent = script;
  1401. remote.OnServerInvoke = function (player, request, ...)
  1402. if (player ~= owner) then
  1403. return error ('You cannot invoke this remote', 0);
  1404. end;
  1405.  
  1406. if (request == 1) then
  1407. local k = ...;
  1408.  
  1409. if k == "f" and attack == false and Flying == false then
  1410. Humanoid.CameraOffset = Vector3.new(0, -1, 0)
  1411. Humanoid.WalkSpeed = 25
  1412. Flying = true
  1413. elseif k == "f" and attack == false and Flying == true then
  1414. Humanoid.CameraOffset = Vector3.new(0, -2, 0)
  1415. Humanoid.WalkSpeed = 16
  1416. Flying = false
  1417. end
  1418. end;
  1419.  
  1420.  
  1421. end;
  1422. remote.Name = 'ServerRemote';
  1423. ]=], owner.Character):WaitForChild 'ServerRemote';
  1424.  
  1425. local mouse = owner:GetMouse();
  1426. mouse.Button1Down:connect(function()
  1427. end)
  1428.  
  1429. mouse.KeyDown:connect(function(k)
  1430. k = k:lower()
  1431.  
  1432. remote:InvokeServer (1, k);
  1433. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement