Advertisement
Freightus2

Elemental Master Void Script Builder Leak

May 6th, 2019
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.12 KB | None | 0 0
  1. 925 Looks, I'm so proud of how far I have come on this. And it's all thanks to you! Anyways, it's time for the next script.
  2. Here, enjoy the Elemental Master script!
  3. repeat wait() until script:WaitForChild'Owner'.Value
  4. local Player = script:WaitForChild'Owner'.Value
  5. script.Owner:destroy()
  6. local FakeMouse = script.FakeMouse:Clone();
  7. FakeMouse.Parent = Player.Character;
  8. script.FakeMouse:Destroy()
  9. do
  10. local GUID = {}
  11. do
  12. GUID.IDs = {};
  13. function GUID:new(len)
  14. local id;
  15. if(not len)then
  16. id = (tostring(function() end))
  17. id = id:gsub("function: ","")
  18. else
  19. local function genID(len)
  20. local newID = ""
  21. for i = 1,len do
  22. newID = newID..string.char(math.random(48,90))
  23. end
  24. return newID
  25. end
  26. repeat id = genID(len) until not GUID.IDs[id]
  27. local oid = id;
  28. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  29. GUID.IDs[oid]=true;
  30. end
  31. return id
  32. end
  33. end
  34.  
  35. local AHB = Instance.new("BindableEvent")
  36.  
  37. local FPS = 30
  38.  
  39. local TimeFrame = 0
  40.  
  41. local LastFrame = tick()
  42. local Frame = 1/FPS
  43.  
  44. game:service'RunService'.Heartbeat:connect(function(s,p)
  45. TimeFrame = TimeFrame + s
  46. if(TimeFrame >= Frame)then
  47. for i = 1,math.floor(TimeFrame/Frame) do
  48. AHB:Fire()
  49. end
  50. LastFrame=tick()
  51. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  52. end
  53. end)
  54.  
  55.  
  56. function swait(dur)
  57. if(dur == 0 or typeof(dur) ~= 'number')then
  58. AHB.Event:wait()
  59. else
  60. for i = 1, dur*FPS do
  61. AHB.Event:wait()
  62. end
  63. end
  64. end
  65.  
  66. local oPlayer = Player
  67. local Player = oPlayer
  68.  
  69. local loudnesses={}
  70. script.Parent = Player.Character
  71. local CoAS = {Actions={}}
  72. local Event = Instance.new("RemoteEvent")
  73. Event.Name = "UserInputEvent"
  74. Event.Parent = Player.Character
  75. local Func = Instance.new("RemoteFunction")
  76. Func.Name = "GetClientProperty"
  77. Func.Parent = Player.Character
  78. local fakeEvent = function()
  79. local t = {_fakeEvent=true,Waited={}}
  80. t.Connect = function(self,f)self.Function=f; for id,_ in next, t.Waited do t.Waited[id] = true end end
  81. t.connect = t.Connect
  82. t.Wait = function()
  83. local guid = GUID:new(25)
  84. local waitingId = guid:Get()
  85. t.Waited[waitingId]=false
  86. repeat swait() until t.Waited[waitingId]==true
  87. t.Waited[waitingId]=nil;
  88. guid:Trash()
  89. end
  90. t.wait = t.Wait
  91. return t
  92. end
  93. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  94. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  95. local Run = {RenderStepped=fakeEvent()}
  96.  
  97. function CoAS:BindAction(name,fun,touch,...)
  98. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  99. end
  100. function CoAS:UnbindAction(name)
  101. CoAS.Actions[name] = nil
  102. end
  103. local function te(self,ev,...)
  104. local t = self[ev]
  105. if t and t._fakeEvent and t.Function then
  106. t.Function(...)
  107. end
  108. end
  109. m.TrigEvent = te
  110. UsIS.TrigEvent = te
  111. Run.TrigEvent = te
  112. Event.OnServerEvent:Connect(function(plr,io)
  113. if plr~=Player then return end
  114. --[[table.foreach(io,print)
  115. print'---']]
  116. if io.Mouse then
  117. m.Target = io.Target
  118. m.Hit = io.Hit
  119. elseif io.KeyEvent then
  120. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  121. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  122. if io.UserInputState == Enum.UserInputState.Begin then
  123. m:TrigEvent("Button1Down")
  124. else
  125. m:TrigEvent("Button1Up")
  126. end
  127. end
  128. if(not io.KeyEvent and not io.Mouse)then
  129.  
  130. for n,t in pairs(CoAS.Actions) do
  131. for _,k in pairs(t.Keys) do
  132. if k==io.KeyCode then
  133. t.Function(t.Name,io.UserInputState,io)
  134. end
  135. end
  136. end
  137. if io.UserInputState == Enum.UserInputState.Begin then
  138. UsIS:TrigEvent("InputBegan",io,false)
  139. else
  140. UsIS:TrigEvent("InputEnded",io,false)
  141. end
  142. end
  143. end)
  144.  
  145. Func.OnServerInvoke = function(plr,inst,play)
  146. if plr~=Player then return end
  147. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  148. loudnesses[inst]=play
  149. end
  150. end
  151.  
  152. function GetClientProperty(inst,prop)
  153. --if(script:IsA'LocalScript' or game:service'RunService':IsStudio())then return prop[inst] end
  154. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  155. return loudnesses[inst]
  156. elseif(prop == 'PlaybackLoudness')then
  157. return Func:InvokeClient(Player,'RegSound',inst)
  158. end
  159. return Func:InvokeClient(Player,inst,prop)
  160. end
  161.  
  162.  
  163. local oldGame = game;
  164. local function GetService(s,i)
  165. local service = s:GetService(i)
  166. if(i == 'Players')then
  167. local oldService = service;
  168. local fakeService = newproxy(true)
  169. getmetatable(fakeService).__index = function(s,i)
  170. if(s == fakeService)then s=oldService end
  171. if(i == 'LocalPlayer' or i == 'localPlayer')then
  172. local oldPlayer = Player;
  173. local fakePlayer = newproxy(true)
  174. getmetatable(fakePlayer).__index = function(s,i)
  175. if(i == 'GetMouse')then
  176. return function() return m; end
  177. end
  178. return Player[i]
  179. end
  180. getmetatable(fakePlayer).__newindex = function(s,i,v)
  181. Player[i]=v
  182. end
  183. getmetatable(fakePlayer).__call=function(self,...)
  184. if(self == fakePlayer)then self = Player end
  185. local wh = {...}
  186. local name = table.remove(wh,1)
  187. for i,v in next, wh do
  188. wh[i]=v
  189. end
  190. if(name == 'GetMouse')then
  191. return m;
  192. end
  193. return self(name,unpack(wh))
  194. end
  195. getmetatable(fakePlayer).__namecall=function(self,...)
  196. if(self == fakePlayer)then self = Player end
  197. local tuple={...}
  198. local name = table.remove(tuple,#tuple)
  199.  
  200. if(name == 'GetMouse')then
  201. return m;
  202. else
  203. return self[name](self,unpack(tuple))
  204. end
  205. end
  206.  
  207. return fakePlayer
  208. elseif(i == 'oPlayer')then
  209. return oPlayer
  210. else
  211. return s[i]
  212. end
  213. end
  214. getmetatable(fakeService).__newindex = function(s,i,v)
  215. if(s == fakeService)then s=oldService end
  216. s[i]=v
  217. end
  218. getmetatable(fakeService).__call=function(self,...)
  219. if(self == fakeService)then self = oldService end
  220. local wh = {...}
  221. local name = table.remove(wh,1)
  222. for i,v in next, wh do
  223. wh[i]=v
  224. end
  225. return self(name,unpack(wh))
  226. end
  227. getmetatable(fakeService).__namecall=function(self,...)
  228. if(self == fakeService)then self = oldService end
  229. local tuple={...}
  230. local name = table.remove(tuple,#tuple)
  231.  
  232. return self[name](self,unpack(tuple))
  233. end
  234. getmetatable(fakeService).__metatable = 'gay'
  235. return fakeService
  236. elseif(i == 'RunService')then
  237. local oldService = service;
  238. local fakeService = newproxy(true)
  239. getmetatable(fakeService).__index = function(s,i)
  240. if(s == fakeService)then s=oldService end
  241. return Run[i] or s[i]
  242. end
  243. getmetatable(fakeService).__newindex = function(s,i,v)
  244. if(s == fakeService)then s=oldService end
  245. s[i]=v
  246. end
  247. getmetatable(fakeService).__call=function(self,...)
  248. if(self == fakeService)then self = oldService end
  249. local wh = {...}
  250. local name = table.remove(wh,1)
  251. for i,v in next, wh do
  252. wh[i]=v
  253. end
  254. return self(name,unpack(wh))
  255. end
  256. getmetatable(fakeService).__namecall=function(self,...)
  257. if(self == fakeService)then self = oldService end
  258. local tuple={...}
  259. local name = table.remove(tuple,#tuple)
  260.  
  261. return self[name](self,unpack(tuple))
  262. end
  263. getmetatable(fakeService).__metatable = 'gay'
  264. return fakeService
  265. elseif(i == 'UserInputService')then
  266. return UsIS
  267. elseif(i == 'ContextActionService')then
  268. return CoAS;
  269. else
  270. return service
  271. end
  272. end
  273. local serviceFunctions={
  274. service=true,
  275. GetService=true,
  276. }
  277. local fakeGame = newproxy(true)
  278. getmetatable(fakeGame).__index = function(s,i)
  279. if(s == fakeGame)then s=oldGame end
  280. local serv = GetService(oldGame,i)
  281. if serviceFunctions[i] then
  282. return GetService
  283. elseif(serv)then
  284. return serv
  285. else
  286. return s[i]
  287. end
  288. end
  289. getmetatable(fakeGame).__newindex = function(s,i,v)
  290. if(s == fakeGame)then s=oldGame end
  291. s[i]=v
  292. end
  293. getmetatable(fakeGame).__call=function(self,...)
  294. if(self == fakeGame)then self = oldGame end
  295. local wh = {...}
  296. local name = table.remove(wh,1)
  297. for i,v in next, wh do
  298. if(v == fakeGame)then v = oldGame end
  299. wh[i]=v
  300. end
  301. if serviceFunctions[name] then
  302. return GetService(self,unpack(wh))
  303. else
  304. return self(name,unpack(wh))
  305. end
  306. end
  307. getmetatable(fakeGame). __namecall=function(self,...)
  308. if(self == fakeGame)then self = oldGame end
  309. local tuple={...}
  310. local name = table.remove(tuple,#tuple)
  311.  
  312. local funcToCall=self[name]
  313.  
  314. if serviceFunctions[name] then
  315. return GetService(self,unpack(tuple))
  316. else
  317. return self[name](self,unpack(tuple))
  318. end
  319. end
  320. getmetatable(fakeGame).__metatable = 'gay'
  321.  
  322. coroutine.wrap(function()
  323. while true do
  324. Run:TrigEvent('RenderStepped')
  325. swait()
  326. end
  327. end)()
  328. game=fakeGame
  329. UserInputService,ContextActionService = UsIS,CoAS
  330. end
  331.  
  332. -- Created by Nebula_Zorua --
  333. -- Elemental Master --
  334. -- Combines elements for combat --
  335. -- Discord: Nebula the Zorua#6969
  336. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  337.  
  338. wait(1/60)
  339.  
  340. --// Shortcut Variables \\--
  341. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  342. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  343. local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  344. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  345. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  346. local R3 = {N=Region3.new}
  347. local De = S.Debris
  348. local WS = workspace
  349. local Lght = S.Lighting
  350. local RepS = S.ReplicatedStorage
  351. local IN = Instance.new
  352. local Plrs = S.Players
  353.  
  354. --// Initializing \\--
  355. local Plr = Plrs.LocalPlayer
  356. local Char = Plr.Character
  357. local Hum = Char:FindFirstChildOfClass'Humanoid'
  358. local RArm = Char["Right Arm"]
  359. local LArm = Char["Left Arm"]
  360. local RLeg = Char["Right Leg"]
  361. local LLeg = Char["Left Leg"]
  362. local Root = Char:FindFirstChild'HumanoidRootPart'
  363. local Morph = script:FindFirstChild'Morph'
  364. local Torso = Char.Torso
  365. local Head = Char.Head
  366. local NeutralAnims = true
  367. local Attack = false
  368. local Debounces = {Debounces={}}
  369. local Mouse = Plr:GetMouse()
  370. local Hit = {}
  371. local Sine = 0
  372. local Change = 1
  373. local BloodPuddles = {}
  374. local Stunned = {}
  375. local FXFolder = script:FindFirstChild'Effects'
  376. FXFolder.Parent = nil
  377. local Circle = FXFolder:WaitForChild'MagicCircle':Clone()
  378. local Fireball = FXFolder:WaitForChild'Fireball':Clone()
  379. local FireburstPart = FXFolder:WaitForChild'Fireburst':Clone()
  380. local Fist = FXFolder:WaitForChild'Fist':Clone()
  381. local AttackNo = 0
  382.  
  383. local Keydown = {}
  384. local Effects = IN("Folder",Char)
  385. Effects.Name = "Effects"
  386.  
  387. --// Debounce System \\--
  388.  
  389.  
  390. function Debounces:New(name,cooldown)
  391. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  392. setmetatable(aaaaa,{__index = Debounces})
  393. Debounces.Debounces[name] = aaaaa
  394. return aaaaa
  395. end
  396.  
  397. function Debounces:Use(overrideUsable)
  398. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  399. if(self.Usable or overrideUsable)then
  400. self.Usable = false
  401. self.CoolingDown = true
  402. local LastUse = time()
  403. self.LastUse = LastUse
  404. delay(self.Cooldown or 2,function()
  405. if(self.LastUse == LastUse)then
  406. self.CoolingDown = false
  407. self.Usable = true
  408. end
  409. end)
  410. end
  411. end
  412.  
  413. function Debounces:Get(name)
  414. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  415. for i,v in next, Debounces.Debounces do
  416. if(i == name)then
  417. return v;
  418. end
  419. end
  420. end
  421.  
  422. function Debounces:GetProgressPercentage()
  423. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  424. if(self.CoolingDown and not self.Usable)then
  425. return math.max(
  426. math.floor(
  427. (
  428. (time()-self.LastUse)/self.Cooldown or 2
  429. )*100
  430. )
  431. )
  432. else
  433. return 100
  434. end
  435. end
  436.  
  437. --// Instance Creation Functions \\--
  438. local baseSound = IN("Sound")
  439. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  440. local Sound = baseSound:Clone()
  441. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  442. Sound.Pitch = pitch or 1
  443. Sound.Volume = volume or 1
  444. Sound.Looped = looped or false
  445. if(autoPlay)then
  446. coroutine.wrap(function()
  447. repeat wait() until Sound.IsLoaded
  448. Sound.Playing = autoPlay or false
  449. end)()
  450. end
  451. if(not looped and effect)then
  452. Sound.Stopped:connect(function()
  453. Sound.Volume = 0
  454. Sound:destroy()
  455. end)
  456. elseif(effect)then
  457. warn("Sound can't be looped and a sound effect!")
  458. end
  459. Sound.Parent =parent or Torso
  460. return Sound
  461. end
  462. function Part(parent,color,material,size,cframe,anchored,cancollide)
  463. local part = IN("Part")
  464. part.Parent = parent or Char
  465. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  466. part.Material = material or Enum.Material.SmoothPlastic
  467. part.TopSurface,part.BottomSurface=10,10
  468. part.Size = size or V3.N(1,1,1)
  469. part.CFrame = cframe or CF.N(0,0,0)
  470. part.CanCollide = cancollide or false
  471. part.Anchored = anchored or false
  472. return part
  473. end
  474.  
  475. function Weld(part0,part1,c0,c1)
  476. local weld = IN("Weld")
  477. weld.Parent = part0
  478. weld.Part0 = part0
  479. weld.Part1 = part1
  480. weld.C0 = c0 or CF.N()
  481. weld.C1 = c1 or CF.N()
  482. return weld
  483. end
  484.  
  485. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  486. local part = IN("SpecialMesh")
  487. part.MeshId = meshid or ""
  488. part.TextureId = textid or ""
  489. part.Scale = scale or V3.N(1,1,1)
  490. part.Offset = offset or V3.N(0,0,0)
  491. part.MeshType = meshtype or Enum.MeshType.Sphere
  492. part.Parent = parent
  493. return part
  494. end
  495.  
  496. NewInstance = function(instance,parent,properties)
  497. local inst = Instance.new(instance)
  498. inst.Parent = parent
  499. if(properties)then
  500. for i,v in next, properties do
  501. pcall(function() inst[i] = v end)
  502. end
  503. end
  504. return inst;
  505. end
  506.  
  507. function Clone(instance,parent,properties)
  508. local inst = instance:Clone()
  509. inst.Parent = parent
  510. if(properties)then
  511. for i,v in next, properties do
  512. pcall(function() inst[i] = v end)
  513. end
  514. end
  515. return inst;
  516. end
  517.  
  518. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  519. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  520. local Sound = IN("Sound")
  521. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  522. Sound.Pitch = pitch or 1
  523. Sound.Volume = volume or 1
  524. Sound.Looped = looped or false
  525. if(autoPlay)then
  526. coroutine.wrap(function()
  527. repeat wait() until Sound.IsLoaded
  528. Sound.Playing = autoPlay or false
  529. end)()
  530. end
  531. if(not looped and effect)then
  532. Sound.Stopped:connect(function()
  533. Sound.Volume = 0
  534. soundPart:destroy()
  535. end)
  536. elseif(effect)then
  537. warn("Sound can't be looped and a sound effect!")
  538. end
  539. Sound.Parent = soundPart
  540. return Sound
  541. end
  542.  
  543.  
  544. --// Extended ROBLOX tables \\--
  545. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  546. --// Require stuff \\--
  547. function CamShake(who,times,intense,origin)
  548. coroutine.wrap(function()
  549. if(FXFolder:FindFirstChild'CamShake')then
  550. local cam = FXFolder.CamShake:Clone()
  551. cam:WaitForChild'intensity'.Value = intense
  552. cam:WaitForChild'times'.Value = times
  553.  
  554. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  555. cam.Parent = who
  556. wait()
  557. cam.Disabled = false
  558. end
  559. end)()
  560. end
  561.  
  562.  
  563. function CamShakeAll(times,intense,origin)
  564. for _,v in next, Plrs:players() do
  565. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  566. end
  567. end
  568.  
  569. function ServerScript(code)
  570. if(script:FindFirstChild'Loadstring')then
  571. local load = script.Loadstring:Clone()
  572. load:WaitForChild'Sauce'.Value = code
  573. load.Disabled = false
  574. load.Parent = workspace
  575. elseif(NS and typeof(NS) == 'function')then
  576. NS(code,workspace)
  577. else
  578. warn("no serverscripts lol")
  579. end
  580. end
  581.  
  582. function LocalOnPlayer(who,code)
  583. ServerScript([[
  584. wait()
  585. script.Parent=nil
  586. if(not _G.Http)then _G.Http = game:service'HttpService' end
  587.  
  588. local Http = _G.Http or game:service'HttpService'
  589.  
  590. local source = ]].."[["..code.."]]"..[[
  591. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  592. local asd = Http:PostAsync(link,source)
  593. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  594. local ID = Http:JSONDecode(asd).Result.Require_ID
  595. local vs = require(ID).VORTH_SCRIPT
  596. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  597. ]])
  598. end
  599.  
  600. function Nametag(color,tag)
  601. local r,g,b = C3.tRGB(color)
  602. local c3 = C3.RGB(r/2,g/2,b/2)
  603. local name = script:FindFirstChild'Nametag' and script.Nametag:Clone();
  604. if(not name)then
  605. name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
  606. NewInstance("TextLabel",name,{Name='PlayerName',BackgroundTransparency=1,Size=UDim2.new(1,0,1,0),Text=Plr.Name,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextSize=14,TextScaled=true,TextWrapped=true,})
  607. NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,.9,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
  608. end
  609. name.Title.Text = tag
  610. name.Title.TextColor3 = color
  611. name.Title.TextStrokeColor3 = c3
  612.  
  613. name.PlayerName.Text = Plr.Name
  614. name.PlayerName.TextColor3 = color
  615. name.PlayerName.TextStrokeColor3 = c3
  616.  
  617. name.Parent = Char
  618. name.Adornee = Head
  619. name.PlayerToHideFrom = Plr
  620.  
  621. return name
  622. end
  623.  
  624. --// Customization \\--
  625.  
  626. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  627. local Remove_Hats = false
  628. local Remove_Clothing = false
  629. local PlayerSize = 1
  630. local DamageColor = BrickColor.new'White'
  631. local MusicID = 157460916
  632. local God = false
  633. local Muted = false
  634.  
  635. local WalkSpeed = 24
  636.  
  637. --// Weapon and GUI creation, and Character Customization \\--
  638.  
  639. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  640. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  641.  
  642. if(PlayerSize ~= 1)then
  643. for _,v in next, Char:GetDescendants() do
  644. if(v:IsA'BasePart' and not v:IsDescendantOf(script))then
  645. v.Size = v.Size*PlayerSize
  646. end
  647. end
  648. end
  649.  
  650. local Music = Sound(Char,MusicID,1,3,true,false,true)
  651. Music.Name = 'Music'
  652.  
  653. --// Stop animations \\--
  654. for _,v in next, Hum:GetPlayingAnimationTracks() do
  655. v:Stop();
  656. end
  657.  
  658. pcall(game.Destroy,Char:FindFirstChild'Animate')
  659. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  660.  
  661. --// Joints \\--
  662.  
  663. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  664. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  665. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  666. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  667. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  668. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  669. local LSC0 = LS.C0
  670. local RSC0 = RS.C0
  671. local NKC0 = NK.C0
  672. local LHC0 = LH.C0
  673. local RHC0 = RH.C0
  674. local RJC0 = RJ.C0
  675.  
  676. --// Morph \\--
  677.  
  678. if(Morph)then
  679. for _,c in next, Char:children() do
  680. local p = Morph:FindFirstChild(c.Name)
  681. if(p)then
  682. print(p.Name)
  683. p.Parent = Char
  684. c.Transparency = 1
  685. p:SetPrimaryPartCFrame(c.CFrame)
  686. for _,e in next, p:GetDescendants() do
  687. if(e:IsA'BasePart')then
  688. e.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  689. e.Anchored=false
  690. Weld(c,e,c.CFrame:inverse()*e.CFrame)
  691. e.CanCollide=false
  692. e.Locked=true
  693. end
  694. end
  695. end
  696. end
  697. end
  698.  
  699. --// Artificial HB \\--
  700.  
  701. local ArtificialHB = IN("BindableEvent", script)
  702. ArtificialHB.Name = "Heartbeat"
  703.  
  704. script:WaitForChild("Heartbeat")
  705.  
  706. local tf = 0
  707. local allowframeloss = false
  708. local tossremainder = false
  709. local lastframe = tick()
  710. local frame = 1/Frame_Speed
  711. ArtificialHB:Fire()
  712.  
  713. game:GetService("RunService").Heartbeat:connect(function(s, p)
  714. tf = tf + s
  715. if tf >= frame then
  716. if allowframeloss then
  717. script.Heartbeat:Fire()
  718. lastframe = tick()
  719. else
  720. for i = 1, math.floor(tf / frame) do
  721. ArtificialHB:Fire()
  722. end
  723. lastframe = tick()
  724. end
  725. if tossremainder then
  726. tf = 0
  727. else
  728. tf = tf - frame * math.floor(tf / frame)
  729. end
  730. end
  731. end)
  732.  
  733. function swait(num)
  734. if num == 0 or num == nil then
  735. ArtificialHB.Event:wait()
  736. else
  737. for i = 0, num do
  738. ArtificialHB.Event:wait()
  739. end
  740. end
  741. end
  742.  
  743.  
  744. --// Effect Function(s) \\--
  745.  
  746. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  747. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  748. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  749. local Scale = 1
  750. local speeder = Speed
  751. if(Type == "Multiply")then
  752. Scale = 1*Inc
  753. elseif(Type == "Divide")then
  754. Scale = 1/Inc
  755. end
  756. coroutine.wrap(function()
  757. for i = 0,10/Lifetime,.1 do
  758.  
  759. if(Type == "Multiply")then
  760. Scale = Scale - 0.01*Inc/Lifetime
  761. elseif(Type == "Divide")then
  762. Scale = Scale - 0.01/Inc*Lifetime
  763. end
  764. speeder = speeder - 0.01*Speed*Lifetime
  765. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  766. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  767. if(Axis == 'x')then
  768. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  769. elseif(Axis == 'y')then
  770. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  771. elseif(Axis == 'z')then
  772. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  773. elseif(Axis == 'xyz')then
  774. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  775. elseif(Axis == 'yz')then
  776. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  777. elseif(Axis == 'xz')then
  778. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  779. else
  780. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  781. end
  782. if(fxP.Transparency >= 1)then break end
  783. swait()
  784. end
  785. fxP:destroy()
  786. end)()
  787. return fxP
  788. end
  789.  
  790. function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId)
  791. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false)
  792. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  793.  
  794. local Scale = 1
  795. if(Type == "Multiply")then
  796. Scale = 1*Inc
  797. elseif(Type == "Divide")then
  798. Scale = 1/Inc
  799. end
  800. coroutine.wrap(function()
  801. for i = 0,10/Lifetime,.1 do
  802.  
  803. if(Type == "Multiply")then
  804. Scale = Scale - 0.01*Inc/Lifetime
  805. elseif(Type == "Divide")then
  806. Scale = Scale - 0.01/Inc*Lifetime
  807. end
  808. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  809. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  810. swait()
  811. end
  812. fxP:destroy()
  813. end)()
  814. end
  815.  
  816. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  817. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  818. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  819. local Scale = 1
  820. local speeder = Speed
  821. if(Type == "Multiply")then
  822. Scale = 1*Inc
  823. elseif(Type == "Divide")then
  824. Scale = 1/Inc
  825. end
  826. coroutine.wrap(function()
  827. for i = 0,10/Lifetime,.1 do
  828. if(Type == "Multiply")then
  829. Scale = Scale - 0.01*Inc/Lifetime
  830. elseif(Type == "Divide")then
  831. Scale = Scale - 0.01/Inc*Lifetime
  832. end
  833. if(Fade)then
  834. fxP.Transparency = i/(10/Lifetime)
  835. end
  836. speeder = speeder - 0.01*Speed*Lifetime/10
  837. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  838. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  839. swait()
  840. end
  841. fxP:destroy()
  842. end)()
  843. end
  844.  
  845. function Bezier(startpos, pos2, pos3, endpos, t)
  846. local A = startpos:lerp(pos2, t)
  847. local B = pos2:lerp(pos3, t)
  848. local C = pos3:lerp(endpos, t)
  849. local lerp1 = A:lerp(B, t)
  850. local lerp2 = B:lerp(C, t)
  851. local cubic = lerp1:lerp(lerp2, t)
  852. return cubic
  853. end
  854. function Puddle(hit,pos,norm,data)
  855. local material = data.Material or Enum.Material.SmoothPlastic
  856. local color = data.Color or BrickColor.new'Crimson'
  857. local size = data.Size or 1
  858.  
  859. if(hit.Name ~= 'BloodPuddle')then
  860. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  861. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  862. BloodPuddles[Puddle] = 0
  863. else
  864. local cyl = hit:FindFirstChild'CylinderMesh'
  865. if(cyl)then
  866. BloodPuddles[hit] = 0
  867. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  868. hit.Transparency = 0
  869. end
  870. end
  871. end
  872.  
  873. function Droplet(data)
  874. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  875. local Size = data.Size or 1
  876. local Color = data.Color or BrickColor.new'Crimson'
  877. local StudsPerFrame = data.Speed or 1
  878. local Shape = data.Shape or 'Ball'
  879. local Frames = (data.Frames or 160)+1
  880. local Pos = data.Origin or Root.CFrame
  881. local Direction = data.Direction or Root.CFrame.lookVector*100000
  882. local Material = data.Material or Enum.Material.SmoothPlastic
  883. local Drop = data.Drop or .05
  884. local Ignorelist = data.Ignorelist or nil
  885.  
  886. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  887. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  888. if(Shape == 'Ball')then
  889. BMesh.MeshType = Enum.MeshType.Sphere
  890. elseif(Shape == 'Head')then
  891. BMesh.MeshType = Enum.MeshType.Head
  892. elseif(Shape == 'Cylinder')then
  893. BMesh.MeshType = Enum.MeshType.Cylinder
  894. end
  895.  
  896. coroutine.wrap(function()
  897. for i = 1, Frames do
  898. Pos = Pos * CF.N(0,-(Drop*i),0)
  899. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  900. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  901. Puddle(hit,pos,norm,data)
  902. break;
  903. else
  904. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  905. end
  906. swait()
  907. end
  908. Bullet:destroy()
  909. end)()
  910. end
  911.  
  912. function SphereFX(duration,color,scale,pos,endScale,increment)
  913. return Effect{
  914. Effect='ResizeAndFade',
  915. Color=color,
  916. Size=scale,
  917. Mesh={MeshType=Enum.MeshType.Sphere},
  918. CFrame=pos,
  919. FXSettings={
  920. EndSize=endScale,
  921. EndIsIncrement=increment
  922. }
  923. }
  924. end
  925.  
  926. function BlastFX(duration,color,scale,pos,endScale,increment)
  927. return Effect{
  928. Effect='ResizeAndFade',
  929. Color=color,
  930. Size=scale,
  931. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  932. CFrame=pos,
  933. FXSettings={
  934. EndSize=endScale,
  935. EndIsIncrement=increment
  936. }
  937. }
  938. end
  939.  
  940. function BlockFX(duration,color,scale,pos,endScale,increment)
  941. return Effect{
  942. Effect='ResizeAndFade',
  943. Color=color,
  944. Size=scale,
  945. CFrame=pos,
  946. FXSettings={
  947. EndSize=endScale,
  948. EndIsIncrement=increment
  949. }
  950. }
  951. end
  952.  
  953. function ShootBullet(data)
  954. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  955. local Size = data.Size or V3.N(2,2,2)
  956. local Color = data.Color or BrickColor.new'Crimson'
  957. local StudsPerFrame = data.Speed or 10
  958. local Shape = data.Shape or 'Ball'
  959. local Frames = data.Frames or 160
  960. local Pos = data.Origin or Torso.CFrame
  961. local Direction = data.Direction or Mouse.Hit
  962. local Material = data.Material or Enum.Material.Neon
  963. local OnHit = data.HitFunction or function(hit,pos)
  964. Effect{
  965. Effect='ResizeAndFade',
  966. Color=Color,
  967. Size=V3.N(10,10,10),
  968. Mesh={MeshType=Enum.MeshType.Sphere},
  969. CFrame=CF.N(pos),
  970. FXSettings={
  971. EndSize=V3.N(.05,.05,.05),
  972. EndIsIncrement=true
  973. }
  974. }
  975. for i = 1, 5 do
  976. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  977. Effect{
  978. Effect='Fade',
  979. Frames=65,
  980. Size=V3.N(5,5,10),
  981. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  982. Mesh = {MeshType=Enum.MeshType.Sphere},
  983. Material=Enum.Material.Neon,
  984. Color=Color,
  985. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  986. }
  987. end
  988. end
  989.  
  990. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  991. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  992. if(Shape == 'Ball')then
  993. BMesh.MeshType = Enum.MeshType.Sphere
  994. elseif(Shape == 'Head')then
  995. BMesh.MeshType = Enum.MeshType.Head
  996. elseif(Shape == 'Cylinder')then
  997. BMesh.MeshType = Enum.MeshType.Cylinder
  998. end
  999.  
  1000. coroutine.wrap(function()
  1001. for i = 1, Frames+1 do
  1002. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  1003. if(hit)then
  1004. OnHit(hit,pos,norm,dist)
  1005. break;
  1006. else
  1007. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  1008. end
  1009. swait()
  1010. end
  1011. Bullet:destroy()
  1012. end)()
  1013.  
  1014. end
  1015.  
  1016.  
  1017. function Zap(data)
  1018. local sCF,eCF = data.StartCFrame,data.EndCFrame
  1019. assert(sCF,"You need a start CFrame!")
  1020. assert(eCF,"You need an end CFrame!")
  1021. local parts = data.PartCount or 15
  1022. local zapRot = data.ZapRotation or {-5,5}
  1023. local startThick = data.StartSize or 3;
  1024. local endThick = data.EndSize or startThick/2;
  1025. local color = data.Color or BrickColor.new'Electric blue'
  1026. local delay = data.Delay or 35
  1027. local delayInc = data.DelayInc or 0
  1028. local lastLightning;
  1029. local MagZ = (sCF.p - eCF.p).magnitude
  1030. local thick = startThick
  1031. local inc = (startThick/parts)-(endThick/parts)
  1032.  
  1033. for i = 1, parts do
  1034. local pos = sCF.p
  1035. if(lastLightning)then
  1036. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  1037. end
  1038. delay = delay + delayInc
  1039. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  1040. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  1041. if(parts == i)then
  1042. local MagZ = (pos-eCF.p).magnitude
  1043. zapPart.Size = V3.N(endThick,endThick,MagZ)
  1044. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  1045. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  1046. else
  1047. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  1048. end
  1049.  
  1050. lastLightning = zapPart
  1051. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  1052.  
  1053. thick=thick-inc
  1054.  
  1055. end
  1056. end
  1057.  
  1058. function Zap2(data)
  1059. local Color = data.Color or BrickColor.new'Electric blue'
  1060. local StartPos = data.Start or Torso.Position
  1061. local EndPos = data.End or Mouse.Hit.p
  1062. local SegLength = data.SegL or 2
  1063. local Thicc = data.Thickness or 0.5
  1064. local Fades = data.Fade or 45
  1065. local Parent = data.Parent or Effects
  1066. local MaxD = data.MaxDist or 200
  1067. local Branch = data.Branches or false
  1068. local Material = data.Material or Enum.Material.Neon
  1069. local Raycasts = data.Raycasts or false
  1070. local Offset = data.Offset or {0,360}
  1071. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  1072. if((StartPos-EndPos).magnitude > MaxD)then
  1073. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  1074. end
  1075. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  1076. if(Raycasts)then
  1077. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  1078. end
  1079. local segments = dist/SegLength
  1080. local model = IN("Model",Parent)
  1081. model.Name = 'Lightning'
  1082. local Last;
  1083. for i = 1, segments do
  1084. local size = (segments-i)/25
  1085. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  1086. if(AddMesh)then IN("CylinderMesh",prt) end
  1087. if(Last and math.floor(segments) == i)then
  1088. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  1089. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  1090. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  1091. elseif(not Last)then
  1092. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1093. else
  1094. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1095. end
  1096. Last = prt
  1097. if(Branch)then
  1098. local choice = M.RNG(1,7+((segments-i)*2))
  1099. if(choice == 1)then
  1100. local LastB;
  1101. for i2 = 1,M.RNG(2,5) do
  1102. local size2 = ((segments-i)/35)/i2
  1103. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  1104. if(AddMesh)then IN("CylinderMesh",prt) end
  1105. if(not LastB)then
  1106. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1107. else
  1108. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1109. end
  1110. LastB = prt
  1111. end
  1112. end
  1113. end
  1114. end
  1115. if(Fades > 0)then
  1116. coroutine.wrap(function()
  1117. for i = 1, Fades do
  1118. for _,v in next, model:children() do
  1119. if(v:IsA'BasePart')then
  1120. v.Transparency = (i/Fades)
  1121. end
  1122. end
  1123. swait()
  1124. end
  1125. model:destroy()
  1126. end)()
  1127. else
  1128. S.Debris:AddItem(model,.01)
  1129. end
  1130. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  1131. end
  1132.  
  1133. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1134. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1135. local tween = S.TweenService:Create(obj, info, props)
  1136.  
  1137. tween:Play()
  1138. end
  1139.  
  1140. function Effect(data)
  1141. local Color = data.Color or C3.N(0,0,0)
  1142. local Material = data.Material or Enum.Material.Neon;
  1143. local MeshD = data.Mesh or {};
  1144. local SoundD = data.Sound or nil;
  1145. local Shape = data.Shape or Enum.PartType.Block;
  1146. local Size = data.StartSize or V3.N(.1,.1,.1);
  1147. local ESize = data.EndSize or V3.N(6,6,6);
  1148. local Direction = data.Direction or nil;
  1149. local Speed = data.Speed or .1; -- studs per second
  1150. local Boomerang = data.Boomerang or {Enabled=false,SizeBoomerang=0,MoveBoomerang=0};
  1151. local Pos = data.CFrame or Torso.CFrame;
  1152. local Frames = data.Frames or 60;
  1153. local RotInc = data.RotInc or {0,0,0}
  1154. local StartTrans = data.TransStart or 0;
  1155. local EndTrans = data.TransEnd or 1;
  1156. local KeepOrientation = data.KeepOrien or false;
  1157.  
  1158. if(typeof(RotInc) == 'number')then RotInc = {RotInc,RotInc,RotInc}; end
  1159. local S,PM,P;
  1160.  
  1161. coroutine.wrap(function()
  1162. P = Part(Effects,Color,Material,V3.N(1,1,1),Pos,true,false)
  1163.  
  1164. if(MeshD == "Blast")then
  1165. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',Size,V3.N(0,0,-Size.X/8))
  1166. elseif(MeshD == 'Ring')then
  1167. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',Size,V3.N(0,0,0))
  1168. elseif(MeshD == 'Slash1')then
  1169. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',V3.N(Size.X/10,.001,Size.Z/10),V3.N(0,0,0))
  1170. elseif(MeshD == 'Slash2')then
  1171. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',V3.N(Size.X/1000,Size.Y/100,Size.Z/100),V3.N(0,0,0))
  1172. elseif(MeshD == 'Tornado1')then
  1173. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',Size/10,V3.N(0,0,0))
  1174. elseif(MeshD == 'Tornado2')then
  1175. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',Size/4,V3.N(0,0,0))
  1176. elseif(MeshD == 'Skull')then
  1177. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size*2,V3.N(0,0,0))
  1178. elseif(MeshD == 'Crystal')then
  1179. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',Size,V3.N(0,0,0))
  1180. elseif(MeshD == 'Cloud')then
  1181. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',Size,V3.N(0,0,0))
  1182. elseif(typeof(MeshD) == 'table')then
  1183. local Type = MeshD.Type or Enum.MeshType.Brick
  1184. local ID = MeshD.ID or '';
  1185. local Tex = MeshD.Texture or '';
  1186. local Offset = MeshD.Offset or V3.N(0,0,0)
  1187. PM = Mesh(P,Type,ID,Tex,Size,Offset)
  1188. else
  1189. PM = Mesh(P,Enum.MeshType.Brick,'','',Size)
  1190. end
  1191.  
  1192. if(typeof(SoundD) == 'table' and SoundD.ID and SoundD.ID ~= '')then
  1193. local ID = SoundD.ID or '';
  1194. local Pitch = SoundD.Pitch or 1;
  1195. local Volume = SoundD.Volume or 1;
  1196. S = Sound(P,ID,Pitch,Volume,false,true,true)
  1197. elseif(typeof(SoundD) == 'string' or typeof(SoundD) == 'number')then
  1198. S = Sound(P,SoundD,1,1,false,true,true)
  1199. end
  1200. local grow = (Size - ESize)
  1201. local SizeBoomer = 1+Boomerang.SizeBoomerang/50
  1202. local MoveBoomer = 1+Boomerang.MoveBoomerang/50
  1203. if(Boomerang and Boomerang.Enabled)then
  1204. grow = (Size - ESize)*(SizeBoomer+1)
  1205. end
  1206. local TransChange = StartTrans - EndTrans
  1207. for i = 0, Frames do
  1208. local MoveSpeed = -Speed
  1209. local scaleGay = grow/Frames
  1210. if(Boomerang and Boomerang.Enabled)then -- thanks shack
  1211. MoveSpeed = -(Speed)*((1-(i/Frames)*MoveBoomer))
  1212. scaleGay = (V3.N((grow.X)*((1 - (i/Frames)*SizeBoomer)),(grow.Y)*((1 - (i/Frames)*SizeBoomer)),(grow.Z)*((1 - (i/Frames)*SizeBoomer)))*SizeBoomer)/Frames
  1213. end
  1214. PM.Scale = PM.Scale - scaleGay
  1215. if(PM.MeshId == 'rbxassetid://20329976')then
  1216. PM.Offset = V3.N(0,0,-PM.Scale.Z/8)
  1217. elseif(PM.MeshId == 'rbxassetid://4770583')then
  1218. scaleGay = scaleGay*2
  1219. elseif(PM.MeshId == 'rbxassetid://168892432')then
  1220. scaleGay = scaleGay/4
  1221. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1222. scaleGay = scaleGay/10
  1223. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1224. scaleGay = scaleGay/10
  1225. end
  1226. P.Transparency = P.Transparency - TransChange/Frames
  1227. if(RotInc == 'random')then
  1228. P.CFrame=P.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1229. elseif(typeof(RotInc) == 'table')then
  1230. P.CFrame=P.CFrame*CF.A(unpack(RotInc))
  1231. end
  1232.  
  1233.  
  1234. if(Direction and Speed)then
  1235. local Orientation = P.Orientation
  1236. P.CFrame = CF.N(P.Position,P.Position+Direction)*CF.N(0,0,MoveSpeed)
  1237. if(KeepOrientation)then P.Orientation = Orientation end
  1238. end
  1239. swait()
  1240. end
  1241.  
  1242. P.Transparency = 1
  1243. if(S and S.Playing)then
  1244. repeat swait() until not S.Parent or not S.Playing
  1245. end
  1246. if(S and S.Parent)then
  1247. S:destroy()
  1248. end
  1249. P:destroy()
  1250. end)()
  1251.  
  1252.  
  1253. end
  1254.  
  1255. --// Other Functions \\ --
  1256.  
  1257. function CastRay(startPos,endPos,range,ignoreList)
  1258. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1259. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1260. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1261. end
  1262.  
  1263. function getRegion(point,range,ignore)
  1264. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1265. end
  1266.  
  1267. function clerp(startCF,endCF,alpha)
  1268. return startCF:lerp(endCF, alpha)
  1269. end
  1270.  
  1271. function GetTorso(char)
  1272. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1273. end
  1274.  
  1275.  
  1276. function ShowDamage(Pos, Text, Time, Color)
  1277. coroutine.wrap(function()
  1278. local Rate = (1 / Frame_Speed)
  1279. local Pos = (Pos or Vector3.new(0, 0, 0))
  1280. local Text = (Text or "")
  1281. local Time = (Time or 2)
  1282. local Color = (Color or Color3.new(1, 0, 1))
  1283. local EffectPart = NewInstance("Part",Effects,{
  1284. Material=Enum.Material.SmoothPlastic,
  1285. Reflectance = 0,
  1286. Transparency = 1,
  1287. BrickColor = BrickColor.new(Color),
  1288. Name = "Effect",
  1289. Size = Vector3.new(0,0,0),
  1290. Anchored = true,
  1291. CFrame = CF.N(Pos)
  1292. })
  1293. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1294. Size = UDim2.new(1.25, 0, 1.25, 0),
  1295. Adornee = EffectPart,
  1296. })
  1297. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1298. BackgroundTransparency = 1,
  1299. Size = UDim2.new(1, 0, 1, 0),
  1300. Text = Text,
  1301. Font = "Bodoni",
  1302. TextColor3 = Color,
  1303. TextStrokeColor3 = Color3.new(0,0,0),
  1304. TextStrokeTransparency=0,
  1305. TextScaled = true,
  1306. })
  1307. S.Debris:AddItem(EffectPart, (Time))
  1308. EffectPart.Parent = workspace
  1309. delay(0, function()
  1310. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1311. local Frames = (Time / Rate)
  1312. for Frame = 1, Frames do
  1313. swait()
  1314. local Percent = (Frame / Frames)
  1315. TextLabel.TextTransparency = Percent
  1316. TextLabel.TextStrokeTransparency = Percent
  1317. end
  1318. if EffectPart and EffectPart.Parent then
  1319. EffectPart:Destroy()
  1320. end
  1321. end) end)()
  1322. end
  1323.  
  1324. function DealDamage(data)
  1325. local Who = data.Who;
  1326. local MinDam = data.MinimumDamage or 15;
  1327. local MaxDam = data.MaximumDamage or 30;
  1328. local MaxHP = data.MaxHP or 1e5;
  1329.  
  1330. local DB = data.Debounce or .2;
  1331.  
  1332. local CritData = data.Crit or {}
  1333. local CritChance = CritData.Chance or 0;
  1334. local CritMultiplier = CritData.Multiplier or 1;
  1335.  
  1336. local DamageEffects = data.DamageFX or {}
  1337. local DamageType = DamageEffects.Type or "Normal"
  1338. local DeathFunction = DamageEffects.DeathFunction
  1339.  
  1340. assert(Who,"Specify someone to damage!")
  1341.  
  1342. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1343. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1344.  
  1345. local canHit = true
  1346. if(Humanoid)then
  1347. for _, p in pairs(Hit) do
  1348. if p[1] == Humanoid then
  1349. if(time() - p[2] <= DB) then
  1350. canHit = false
  1351. else
  1352. Hit[_] = nil
  1353. end
  1354. end
  1355. end
  1356. if(canHit)then
  1357. table.insert(Hit,{Humanoid,time()})
  1358. local HitTorso = GetTorso(Who)
  1359. local player = S.Players:GetPlayerFromCharacter(Who)
  1360. CamShake(Who,2,150,HitTorso.Position)
  1361. if(not player or player.UserId ~= 5719877 and player.UserId ~= 19081129)then
  1362. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1363. print'Got kill'
  1364. Humanoid.Health = 0;
  1365. Who:BreakJoints();
  1366. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1367. else
  1368. local c = Instance.new("ObjectValue",Hum)
  1369. c.Name = "creator"
  1370. c.Value = Plrs.oPlayer
  1371. S.Debris:AddItem(c,0.35)
  1372. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1373. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
  1374. end
  1375. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1376. Humanoid.Health = Humanoid.Health - DoneDamage
  1377.  
  1378. if(DamageType == 'Knockback' and HitTorso)then
  1379. local up = DamageEffects.KnockUp or 25
  1380. local back = DamageEffects.KnockBack or 25
  1381. local origin = DamageEffects.Origin or Root
  1382. local decay = DamageEffects.Decay or .5;
  1383.  
  1384. local bfos = Instance.new("BodyVelocity",HitTorso)
  1385. bfos.P = 20000
  1386. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1387. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1388. S.Debris:AddItem(bfos,decay)
  1389. elseif(DamageType == 'StunKnock' and HitTorso)then
  1390. local up = DamageEffects.KnockUp or 25
  1391. local back = DamageEffects.KnockBack or 25
  1392. local origin = DamageEffects.Origin or Root
  1393. local decay = DamageEffects.Decay or .5;
  1394. local lookVector = origin;
  1395. if(typeof(origin) == 'Instance')then
  1396. lookVector = origin.CFrame.lookVector
  1397. elseif(typeof(origin) == 'CFrame')then
  1398. lookVector = origin.lookVector
  1399. end
  1400. local bfos = Instance.new("BodyVelocity",HitTorso)
  1401. bfos.P = 20000
  1402. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1403. bfos.Velocity = Vector3.new(0,up,0) + (lookVector * back)
  1404. S.Debris:AddItem(bfos,decay)
  1405. if(not Stunned[Who] and player)then
  1406. local stunScr=FXFolder:FindFirstChild'Stunner' and FXFolder:FindFirstChild'Stunner':Clone()
  1407. local t = {0,M.RNG(time()+3,time()+5),nil}
  1408. if(stunScr)then
  1409. stunScr.Disabled=false
  1410. stunScr.Parent=Who
  1411. local stunEmit = FXFolder:FindFirstChild'AttEffects' and FXFolder.AttEffects:FindFirstChild'Stun'
  1412. local hed = Who:FindFirstChild'Head'
  1413. if(stunEmit)then
  1414. local e = stunEmit:Clone()
  1415. e.Name='StunEmitter'
  1416. e.Parent=hed
  1417. Weld(e,hed)
  1418. t[3]=e
  1419. end
  1420. end
  1421. Stunned[Who] = t
  1422. end
  1423. elseif(DamageType == 'Stun' and HitTorso and not Stunned[Who] and player)then
  1424. local stunScr=FXFolder:FindFirstChild'Stunner' and FXFolder:FindFirstChild'Stunner':Clone()
  1425. local t = {0,M.RNG(time()+3,time()+5),nil}
  1426. if(stunScr)then
  1427. stunScr.Disabled=false
  1428. stunScr.Parent=Who
  1429. local stunEmit = FXFolder:FindFirstChild'AttEffects' and FXFolder.AttEffects:FindFirstChild'Stun'
  1430. local hed = Who:FindFirstChild'Head'
  1431. if(stunEmit)then
  1432. local e = stunEmit:Clone()
  1433. e.Name='StunEmitter'
  1434. e.Parent=hed
  1435. Weld(e,hed)
  1436. t[3]=e
  1437. end
  1438. end
  1439. Stunned[Who] = t
  1440. end
  1441. end
  1442. end
  1443. end
  1444. end
  1445. end
  1446.  
  1447. function AOEDamage(where,range,options)
  1448. local hit = {}
  1449. for _,v in next, getRegion(where,range,{Char}) do
  1450. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1451. local callTable = {Who=v.Parent}
  1452. hit[v.Parent] = true
  1453. for _,v in next, options do callTable[_] = v end
  1454. DealDamage(callTable)
  1455. end
  1456. end
  1457. return hit
  1458. end
  1459.  
  1460. function AOEBurn(where,range,options)
  1461. local hit = {}
  1462. for _,v in next, getRegion(where,range,{Char}) do
  1463. if(v:IsA'BasePart' and (v.Material == Enum.Material.Wood or v.Material == Enum.Material.WoodPlanks))then
  1464. -- TODO: Burn shit
  1465. end
  1466. end
  1467. return hit
  1468. end
  1469.  
  1470. function AOEHeal(where,range,amount)
  1471. local healed = {}
  1472. for _,v in next, getRegion(where,range,{Char}) do
  1473. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1474. if(hum and not healed[hum])then
  1475. hum.Health = hum.Health + amount
  1476. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1477. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  1478. end
  1479. end
  1480. end
  1481. end
  1482.  
  1483. function FireBurst(hit,pos,damage,silent)
  1484. local explosion = FireburstPart:Clone()
  1485. explosion.CFrame = pos
  1486. explosion.Particles.Enabled=true
  1487. explosion.PointLight.Range=20
  1488. explosion.Parent = Effects
  1489. if(not silent)then Sound(explosion,304529688,1.25,1,false,true,true) end
  1490. delay(.2,function()
  1491. explosion.Particles.Enabled=false
  1492. wait(.3)
  1493. explosion.PointLight.Enabled=false
  1494. end)
  1495. if(damage>0)then
  1496. AOEDamage(explosion.Position,22.5,{
  1497. MinimumDamage=damage,
  1498. MaximumDamage=damage,
  1499. })
  1500. end
  1501.  
  1502.  
  1503. delay(2,function()
  1504. explosion:destroy()
  1505. end)
  1506. end
  1507.  
  1508. function FireballSpell()
  1509. Attack = true
  1510. NeutralAnims = false
  1511. Root.Anchored=true
  1512. WalkSpeed=0
  1513. local Charge = 0;
  1514. local magicCircle = Circle:Clone();
  1515. magicCircle.Parent = Effects
  1516. magicCircle.Anchored=false
  1517. magicCircle.Shine:Emit(10)
  1518. Sound(magicCircle,313945165,1.25,2,false,true,true)
  1519. local weld = Weld(magicCircle,RArm,CF.N(0,0,2)*CF.A(M.R(90),0,0))
  1520.  
  1521. for i = 0, 1, 0.1 do
  1522. swait()
  1523. local Alpha = .3
  1524. magicCircle.Mesh.Scale=magicCircle.Mesh.Scale+Vector3.new(.7,.7,0)
  1525. Root.CFrame = CF.N(Root.CFrame.p,Mouse.Hit.p)
  1526. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.00613903953, 0.00628685951, 0.00286255172, 0.684637189, 0, 0.728884161, 0, 1, 0, -0.728884161, 0, 0.684637189),Alpha)
  1527. LH.C0 = LH.C0:lerp(CFrame.new(-0.477180183, -0.989661753, 0.00763072772, 0.997303426, 0.0733890384, -4.17232513e-07, -0.073389031, 0.997303426, 5.92281481e-07, 4.76837158e-07, -5.58793545e-07, 1.00000012),Alpha)
  1528. RH.C0 = RH.C0:lerp(CFrame.new(0.49552381, -0.98963362, 0.0170124341, 0.99842298, -0.056141004, 5.66244125e-07, 0.0561410002, 0.998422921, 1.16993164e-07, -5.66244125e-07, -8.38190317e-08, 1.00000012),Alpha)
  1529. LS.C0 = LS.C0:lerp(CFrame.new(-1.52261209, 0.626422524, 0.000381739461, 0.971170783, 0.238385111, -9.23871994e-07, -0.238385096, 0.971170723, 3.82314255e-07, 9.83476639e-07, -1.49011612e-07, 1.00000024),Alpha)
  1530. RS.C0 = RS.C0:lerp(CFrame.new(1.39878774, 0.493852645, 0.0957473963, 0.684637129, -0.72888422, 3.18605409e-08, 0, -4.37113883e-08, -1, 0.72888422, 0.684637129, -2.992644e-08),Alpha)
  1531. NK.C0 = NK.C0:lerp(CFrame.new(0.00997409597, 1.49900126, -0.000828668475, 0.684637189, 0, -0.728884161, 0, 1, 0, 0.728884161, 0, 0.684637189),Alpha)
  1532. end
  1533. repeat swait()
  1534. Root.CFrame = CF.N(Root.CFrame.p,Mouse.Hit.p)
  1535. if(Charge<60)then
  1536. Charge=Charge+.5
  1537. magicCircle.Mesh.Scale=magicCircle.Mesh.Scale+Vector3.new(.033,.033,0)
  1538. end
  1539. until not Keydown.z
  1540. for i = 1, Charge/12+6 do
  1541. local projectile = Fireball:Clone();
  1542. projectile.CFrame = magicCircle.CFrame
  1543. projectile.Parent = Effects
  1544. Sound(projectile,304448425,1.25,1,false,true,true)
  1545. Root.CFrame = CF.N(Root.CFrame.p,Mouse.Hit.p)
  1546. coroutine.wrap(function()
  1547. local velocity = Mouse.Hit
  1548. for i = 1, 600 do
  1549. velocity=velocity*CFrame.new(0,0,-1)
  1550. local hit,pos,norm,dist = CastRay(projectile.CFrame.p,CF.N(projectile.CFrame.p,velocity.p)*CF.N(0,0,-5).p,7)
  1551. if(hit)then
  1552. projectile.Particles.Enabled=false
  1553. FireBurst(hit,CF.N(pos),10+Charge/2)
  1554. projectile.PointLight.Enabled=false
  1555. wait(1)
  1556. break
  1557. else
  1558. projectile.CFrame = CF.N(projectile.CFrame.p,velocity.p)*CF.N(0,0,-5)
  1559. end
  1560. swait()
  1561. end
  1562. projectile:destroy()
  1563. end)()
  1564. wait(.1)
  1565. end
  1566. coroutine.wrap(function()
  1567. local start = magicCircle.Mesh.Scale
  1568. weld:destroy()
  1569. magicCircle.Anchored=true
  1570. wait(.5)
  1571. for i = 0, 1, .05 do
  1572. magicCircle.Mesh.Scale=start:lerp(Vector3.new(0,0,0),i)
  1573. magicCircle.Back.Transparency = i
  1574. magicCircle.Front.Transparency = i
  1575. swait()
  1576. end
  1577. magicCircle:destroy()
  1578. end)()
  1579. WalkSpeed = 24
  1580. Root.Anchored=false
  1581. Attack = false
  1582. NeutralAnims = true
  1583. end
  1584.  
  1585. function FirePunch()
  1586. Attack = true
  1587. NeutralAnims = false
  1588. --WalkSpeed = 0
  1589. local magicCircle = Circle:Clone();
  1590. magicCircle.Parent = Effects
  1591. magicCircle.Anchored=false
  1592. local weld = Weld(magicCircle,RArm,CF.N(0,0,2)*CF.A(M.R(90),0,0))
  1593. for i = 0, 1, 0.1 do
  1594. swait()
  1595. local Alpha = .3
  1596. RJ.C0 = RJ.C0:lerp(CFrame.new(0.00876712799, 0.00628685951, 0.00824260712, 0, 0, -1, 0, 1, 0, 1, 0, 0),Alpha)
  1597. LH.C0 = LH.C0:lerp(CFrame.new(-0.47773385, -1.05271745, 0.00763320923, 0.984459341, 0.175613061, 0, -0.175613061, 0.984459341, 0, 0, 0, 1),Alpha)
  1598. RH.C0 = RH.C0:lerp(CFrame.new(0.487425029, -1.00636411, 0.0170097351, 0.984691381, -0.174307063, 0, 0.174307063, 0.984691381, 0, 0, 0, 1),Alpha)
  1599. LS.C0 = LS.C0:lerp(CFrame.new(-1.49135685, 0.501278877, 0.000385284424, 0, 1, 0, 0, 0, -1, -1, 0, 0),Alpha)
  1600. RS.C0 = RS.C0:lerp(CFrame.new(0.798054039, 0.410905868, -0.42839992, 0.335944802, 0.941881657, 1.46846153e-08, 4.37113883e-08, 1.91068547e-15, -1, -0.941881657, 0.335944802, -4.11709564e-08),Alpha)
  1601. NK.C0 = NK.C0:lerp(CFrame.new(-0.0132169724, 1.49900126, 0.0086812973, 0, 0, 1, 0, 1, 0, -1, 0, 0),Alpha)
  1602. end
  1603. magicCircle.Shine:Emit(10)
  1604. Sound(magicCircle,313945165,1.25,2,false,true,true)
  1605. for i = 0, .7, 0.1 do
  1606. swait()
  1607. magicCircle.Mesh.Scale=magicCircle.Mesh.Scale+Vector3.new(.7,.7,0)
  1608. local Alpha = .3
  1609. RJ.C0 = RJ.C0:lerp(CFrame.new(0.0846859813, 0.00628685951, -1.30178809, 0.666946054, 0, 0.745106041, 0, 1, 0, -0.745106041, 0, 0.666946054),Alpha)
  1610. LH.C0 = LH.C0:lerp(CFrame.new(-0.602384865, -0.990931034, 0.0419017226, 0.971215248, 0, 0.238203585, 0, 1, 0, -0.238203615, 0, 0.971215308),Alpha)
  1611. RH.C0 = RH.C0:lerp(CFrame.new(0.533700585, -1.00146437, -0.0745356157, 0.622861147, 0.131178856, -0.771256208, -0.0987099782, 0.991140902, 0.0888603702, 0.776080191, 0.0207830146, 0.63029182),Alpha)
  1612. LS.C0 = LS.C0:lerp(CFrame.new(-1.35173285, 0.608601332, 0.000362926279, 0.912227154, 0.409684956, 1.22487545e-05, -0.409684986, 0.912227094, 2.32488328e-05, -1.66893005e-06, -2.62260437e-05, 1),Alpha)
  1613. RS.C0 = RS.C0:lerp(CFrame.new(1.37284052, 0.474084795, -0.319298357, 0.856939018, -0.515390158, -0.00534040015, 0.00142899936, 0.012737005, -0.999917865, 0.515415847, 0.856861055, 0.0116513278),Alpha)
  1614. NK.C0 = NK.C0:lerp(CFrame.new(-0.125598311, 1.49900126, -0.00111817941, 0.666946054, 0, -0.745106041, 0, 1, 0, 0.745106041, 0, 0.666946054),Alpha)
  1615. end
  1616. local fist = Fist:Clone();
  1617. fist.CFrame = magicCircle.CFrame*CF.N(0,0,-2)*CF.A(M.R(90),0,0)
  1618. fist.Parent = Effects
  1619. AOEDamage(fist.CFrame.p,10,{
  1620. MinimumDamage=5,
  1621. MaximumDamage=15,
  1622. DamageFX={
  1623. Type='Knockback',
  1624. KnockBack=45,
  1625. KnockUp=15,
  1626. Origin=Root,
  1627. Decay=.5;
  1628. }
  1629. })
  1630. FireBurst(nil,fist.CFrame,0)
  1631. magicCircle.Anchored = true
  1632. weld:destroy()
  1633. coroutine.wrap(function()
  1634. local start = magicCircle.Mesh.Scale
  1635. local start2 = fist.Size
  1636. local start3 = fist.Transparency
  1637. wait(1)
  1638. for i = 0, 1, .05 do
  1639. magicCircle.Mesh.Scale=start:lerp(Vector3.new(0,0,0),i)
  1640. fist.Size = start2:lerp(Vector3.new(0,0,0),i)
  1641. fist.Transparency = start3+(1-start3)*i
  1642. magicCircle.Back.Transparency = i
  1643. magicCircle.Front.Transparency = i
  1644. swait()
  1645. end
  1646. fist:destroy()
  1647. magicCircle:destroy()
  1648. end)()
  1649. --WalkSpeed = 24
  1650. Attack = false
  1651. NeutralAnims = true
  1652. end
  1653. function WaterSlap()
  1654. Attack = true
  1655. NeutralAnims = false
  1656. local magicCircle = Circle:Clone();
  1657. magicCircle:WaitForChild'Front'.Texture = 'rbxassetid://408441353'
  1658. magicCircle:WaitForChild'Back'.Texture = 'rbxassetid://408441330'
  1659. magicCircle.Shine.Color = ColorSequence.new(Color3.fromRGB(255,255,0),Color3.fromRGB(0,0,255))
  1660. magicCircle.Parent = Effects
  1661. magicCircle.Anchored=false
  1662. local weld = Weld(magicCircle,LArm,CF.N(0,0,2)*CF.A(M.R(90),0,0))
  1663. for i = 0, 1, 0.1 do
  1664. swait()
  1665. local Alpha = .3
  1666. RJ.C0 = RJ.C0:lerp(CFrame.new(0.0253826827, 0.00812374055, -0.257290602, 0.78052628, -2.55876301e-07, 0.625122964, -0.243553087, 0.920980513, 0.304099888, -0.575726151, -0.389608592, 0.718849421),Alpha)
  1667. LH.C0 = LH.C0:lerp(CFrame.new(-0.496665955, -0.990922153, 0.0076207961, 1, 1.49011612e-08, 2.98023224e-08, 1.49011612e-08, 0.99999994, 0, 2.98023224e-08, 0, 0.99999994),Alpha)
  1668. RH.C0 = RH.C0:lerp(CFrame.new(0.543252945, -0.935092628, 0.00204178691, 0.95470798, -0.243553087, -0.170922846, 0.172396973, 0.920980513, -0.349391133, 0.242511868, 0.304099888, 0.921255291),Alpha)
  1669. LS.C0 = LS.C0:lerp(CFrame.new(-1.23207033, 0.493078738, 0.160156831, 1.40070915e-06, 0.905741692, 0.423830271, -1, 2.20537186e-06, -1.32620335e-06, -2.14576721e-06, -0.423830301, 0.905741692),Alpha)
  1670. RS.C0 = RS.C0:lerp(CFrame.new(1.37682283, 0.701343179, -0.220273614, 0.886153698, -0.39422518, 0.243553117, 0.0838617459, -0.380476147, -0.920980513, 0.455739856, 0.836555004, -0.304099917),Alpha)
  1671. NK.C0 = NK.C0:lerp(CFrame.new(0.00605266914, 1.49898243, -0.00365240639, 0.896775424, 7.4505806e-07, -0.442486018, -5.73694706e-07, 1, 5.06639481e-07, 0.442486048, -2.08616257e-07, 0.896775365),Alpha)
  1672. end
  1673. magicCircle.Shine:Emit(10)
  1674. Sound(magicCircle,170264196,1.25,2,false,true,true)
  1675. for i = 0, .8, 0.1 do
  1676. swait()
  1677. local Alpha = .3
  1678. magicCircle.Mesh.Scale=magicCircle.Mesh.Scale+Vector3.new(.7,.7,0)
  1679. RJ.C0 = RJ.C0:lerp(CFrame.new(0.00494207442, -0.146138459, -0.214696676, 0.595462084, -5.32384412e-08, -0.80338341, 0.41565606, 0.855754614, 0.308081269, 0.687499046, -0.517381907, 0.509569407),Alpha)
  1680. LH.C0 = LH.C0:lerp(CFrame.new(-0.650362015, -0.625687957, -0.106279731, 0.906900465, 0.41565606, -0.0690051019, -0.415656239, 0.855754614, -0.30808112, -0.0690043569, 0.308081269, 0.948854208),Alpha)
  1681. RH.C0 = RH.C0:lerp(CFrame.new(0.502297759, -1.03493989, 0.0170234144, 0.940928638, -0.338604957, 1.08480453e-05, 0.338604987, 0.940928698, -1.64806843e-05, -4.67896461e-06, 1.92224979e-05, 1),Alpha)
  1682. LS.C0 = LS.C0:lerp(CFrame.new(-1.33072042, 0.712415516, -0.104047954, -0.524101377, -0.430475205, -0.734853029, -0.786817193, -0.0854822248, 0.611237764, -0.325939536, 0.898545504, -0.293903857),Alpha)
  1683. RS.C0 = RS.C0:lerp(CFrame.new(1.32530236, 0.468288094, 0.000397048425, 0.936763644, -0.349962771, 1.57952309e-06, 0.349962771, 0.936763525, -5.36441803e-06, 3.27825546e-07, 5.60283661e-06, 1),Alpha)
  1684. NK.C0 = NK.C0:lerp(CFrame.new(8.87950882e-05, 1.49899459, -0.00496737426, 0.858393252, 1.51991844e-06, 0.512992144, -1.22189522e-06, 1, -8.64267349e-07, -0.512992203, 1.49011612e-07, 0.858393192),Alpha)
  1685. end
  1686. magicCircle.Anchored = true
  1687. weld:destroy()
  1688. coroutine.wrap(function()
  1689. local start = magicCircle.Mesh.Scale
  1690. wait(1.5)
  1691. for i = 0, 1, .05 do
  1692. magicCircle.Mesh.Scale=start:lerp(Vector3.new(0,0,0),i)
  1693. magicCircle.Back.Transparency = i
  1694. magicCircle.Front.Transparency = i
  1695. swait()
  1696. end
  1697. magicCircle:destroy()
  1698. end)()
  1699. Attack = false
  1700. NeutralAnims = true
  1701. end
  1702. --// Wrap it all up \\--
  1703.  
  1704. Mouse.KeyDown:connect(function(k)
  1705. if(k=='m')then
  1706. Muted = not Muted
  1707. end
  1708. Keydown[k]=true
  1709. if(Attack)then return end
  1710. if(k == 'z')then
  1711. FireballSpell()
  1712. end
  1713. end)
  1714.  
  1715. Mouse.KeyUp:connect(function(k)
  1716. Keydown[k]=false
  1717. end)
  1718.  
  1719. Mouse.Button1Down:connect(function()
  1720. if(Attack)then return end
  1721. AttackNo=AttackNo+1
  1722. if(AttackNo>2)then AttackNo=1 end
  1723. if(AttackNo==1)then
  1724. FirePunch()
  1725. elseif(AttackNo==2)then
  1726. WaterSlap()
  1727. end
  1728. end)
  1729. coroutine.resume(coroutine.create(function() -- Stun Damage Loop
  1730. while true do
  1731. swait()
  1732. for who,data in next, Stunned do
  1733. local lastBurn, burnMaxTime, emitter = unpack(data)
  1734. if(time()-lastBurn >= .5)then
  1735. data[1] = time()
  1736. for _,v in next, who:children() do if(v.Name == 'Health' and v:IsA'Script')then v.Disabled = true end end
  1737. local hum = who:FindFirstChildOfClass'Humanoid'
  1738. local tors = GetTorso(who)
  1739. if(time() >= burnMaxTime or hum and hum.Health <= 0)then
  1740. local f=Instance.new("BoolValue")
  1741. f.Name = 'ResumeControl'
  1742. f.Parent = who
  1743. if(emitter)then
  1744. emitter:destroy()
  1745. end
  1746. Stunned[who] = nil;
  1747. for _,v in next, who:children() do if(v.Name == 'Health' and v:IsA'Script')then v.Disabled = false end end
  1748. end
  1749. end
  1750. end
  1751. end
  1752. end))
  1753.  
  1754. while true do
  1755. swait()
  1756. Sine = Sine + Change
  1757. if(not Music or not Music.Parent)then
  1758. local tp = (Music and Music.TimePosition)
  1759. Music = Sound(Char,MusicID,1,10,true,false,true)
  1760. Music.Name = 'Music'
  1761. Music.TimePosition = tp
  1762. end
  1763. Music.SoundId = "rbxassetid://"..MusicID
  1764. Music.Parent = Torso
  1765. Music.Pitch = 1
  1766. Music.Volume = 3
  1767. if(not Muted)then
  1768. Music:Resume()
  1769. else
  1770. Music:Pause()
  1771. end
  1772.  
  1773.  
  1774. if(God)then
  1775. Hum.MaxHealth = 1e100
  1776. Hum.Health = 1e100
  1777. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1778. Hum.Name = M.RNG()*100
  1779. end
  1780.  
  1781. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1782.  
  1783. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1784. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
  1785. if(not Effects or not Effects.Parent)then
  1786. Effects = IN("Model",Char)
  1787. Effects.Name = "Effects"
  1788. end
  1789. if(State == 'Run')then
  1790. local wsVal = 9 / (Hum.WalkSpeed/16)
  1791. local Alpha = math.min(.4 * (Hum.WalkSpeed/16),1)
  1792. Change = 1
  1793. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.25*M.C(Sine/wsVal)/2)*CF.A(M.R(5-45*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1794. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.25*M.C(Sine/wsVal)/2)*CF.A(M.R(5+45*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1795. elseif(State == 'Walk')then
  1796. local wsVal = 7 / (Hum.WalkSpeed/16)
  1797. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1798. Change = 1
  1799. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-25*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1800. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+25*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1801. else
  1802. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1803. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1804. end
  1805. Hum.WalkSpeed = WalkSpeed
  1806. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1807. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1808.  
  1809. if(NeutralAnims)then
  1810. if(State == 'Idle')then
  1811. local Alpha = .1
  1812. Change=1
  1813. RJ.C0 = RJ.C0:lerp(CFrame.new(0.00245178537, -.1+.1*M.C(Sine/32), 0.000279115717, 0.957476616, 0, -0.288511187, 0, 1, 0, 0.288511187, 0, 0.957476616),Alpha)
  1814. LH.C0 = LH.C0:lerp(CFrame.new(-0.496666014, -0.990931034-.1*M.C(Sine/32), 0.00763559435, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CF.A(0,0,M.R(-4+2*M.C(Sine/38))),Alpha)
  1815. RH.C0 = RH.C0:lerp(CFrame.new(0.498346388, -0.991055012-.1*M.C(Sine/32), 0.0170083065, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CF.A(0,0,M.R(4-2*M.C(Sine/38))),Alpha)
  1816. --[[LS.C0 = LS.C0:lerp(CFrame.new(-0.516406953, 0.464706182+.05*M.S(Sine/42), -0.534985006, 0.197841793, -0.980234087, 1.69277191e-05, 0.77649945, 0.156711236, -0.610319853, 0.598253667, 0.120759889, 0.792155206)*CF.A(M.R(0+5*M.S(Sine/42)),0,0),Alpha)
  1817. RS.C0 = RS.C0:lerp(CFrame.new(0.706458271, 0.499285042+.05*M.S(Sine/42), -0.363079935, 0.42256853, 0.851608455, -0.310159862, -0.729046047, 0.116078667, -0.674550056, -0.538449585, 0.511164367, 0.669912934)*CF.A(M.R(0+5*M.S(Sine/42)),0,0),Alpha)
  1818. ]]
  1819. LS.C0 = LS.C0:lerp(CFrame.new(-0.917338252, 0.411551744, -0.575931072, -0.0951177329, -0.995466232, 1.58846378e-05, 0.788562357, -0.0753576159, -0.610320091, 0.607554078, -0.0580397546, 0.792155027)*CF.A(M.R(0+5*M.S(Sine/42)),M.R(0+1.9*M.S(Sine/51)),M.R(0-3*M.S(Sine/61))),Alpha)
  1820. RS.C0 = RS.C0:lerp(CFrame.new(0.820931792, 0.388566852, -0.421563238, 0.37996459, 0.916040719, -0.128439352, -0.268703103, -0.0235590898, -0.962934971, -0.885113418, 0.400393188, 0.237191349)*CF.A(M.R(0-5*M.S(Sine/42)),M.R(0-1.5*M.S(Sine/49)),M.R(0-3*M.S(Sine/57))),Alpha)
  1821. NK.C0 = NK.C0:lerp(CFrame.new(-0.00378017989, 1.49900126, -0.00434756465, 0.957476616, 0, 0.288511187, 0, 1, 0, -0.288511187, 0, 0.957476616)*CF.A(M.R(0+2*M.C(Sine/32)),0,0),Alpha)
  1822. -- idle
  1823. elseif(State == 'Run')then
  1824. local wsVal = 9 / (Hum.WalkSpeed/16)
  1825. local Alpha = math.min(.4 * (Hum.WalkSpeed/16),1)
  1826. RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.05*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1827. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1828. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.C(Sine/wsVal))*CF.A(M.R(0+45*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  1829. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.C(Sine/wsVal))*CF.A(M.R(0-45*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  1830. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1831. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1832. elseif(State == 'Walk')then
  1833. local wsVal = 7 / (Hum.WalkSpeed/16)
  1834. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1835. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1836. RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  1837. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1838. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  1839. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  1840. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1841. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1842. elseif(State == 'Jump')then
  1843. local Alpha = .1
  1844. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1845. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1846. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1847. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1848. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1849. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1850. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1851. elseif(State == 'Fall')then
  1852. local Alpha = .1
  1853. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1854. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1855. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1856. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1857. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1858. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1859. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1860. elseif(State == 'Paralyzed')then
  1861. -- paralyzed
  1862. elseif(State == 'Sit')then
  1863. -- sit
  1864. end
  1865. end
  1866.  
  1867. for i,v in next, BloodPuddles do
  1868. local mesh = i:FindFirstChild'CylinderMesh'
  1869. BloodPuddles[i] = v + 1
  1870. if(not mesh or i.Transparency >= 1)then
  1871. i:destroy()
  1872. BloodPuddles[i] = nil
  1873. elseif(v >= Frame_Speed*4)then
  1874. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1875. i.Transparency = trans
  1876. if(mesh.Scale.Z > 0)then
  1877. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1878. end
  1879. else
  1880. i.Transparency = 0
  1881. end
  1882. end
  1883. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement