Advertisement
epicboi

Untitled

Apr 5th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.66 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303. -----------------------
  304. --[[ Name : God ]]--
  305. -------------------------------------------------------
  306. --A script By makhail07
  307.  
  308. --Discord Creterisk#2958
  309.  
  310. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  311. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  312. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  313. --YOU FUCKING SKIDS,
  314. --For Those who log/decompile this, If you sell or trade this,
  315. --and I find out who you are, i will take massive action.
  316.  
  317. -------------------------------------------------------
  318.  
  319. local FavIDs = {
  320. 340106355, --Nefl Crystals
  321. 927529620, --Dimension
  322. 876981900, --Fantasy
  323. 398987889, --Ordinary Days
  324. 1117396305, --Oh wait, it's you.
  325. 885996042, --Action Winter Journey
  326. 919231299, --Sprawling Idiot Effigy
  327. 743466274, --Good Day Sunshine
  328. 727411183, --Knife Fight
  329. 1402748531, --The Earth Is Counting On You!
  330. 595230126 --Robot Language
  331. }
  332.  
  333.  
  334.  
  335. --The reality of my life isn't real but a Universe -makhail07
  336. wait()
  337. local plr = game:service'Players'.LocalPlayer
  338. print('Local User is '..plr.Name)
  339. print('God Loaded')
  340. print('hahahAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
  341. local char = plr.Character
  342. local hum = char.Humanoid
  343. local hed = char.Head
  344. local root = char.HumanoidRootPart
  345. local rootj = root.RootJoint
  346. local tors = char.Torso
  347. local ra = char["Right Arm"]
  348. local la = char["Left Arm"]
  349. local rl = char["Right Leg"]
  350. local ll = char["Left Leg"]
  351. local neck = tors["Neck"]
  352. local mouse = plr:GetMouse()
  353. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  354. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  355. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  356. local maincolor = BrickColor.new("Institutional white")
  357.  
  358.  
  359. -------------------------------------------------------
  360. --Start Good Stuff--
  361. -------------------------------------------------------
  362. cam = game.Workspace.CurrentCamera
  363. CF = CFrame.new
  364. angles = CFrame.Angles
  365. attack = false
  366. Euler = CFrame.fromEulerAnglesXYZ
  367. Rad = math.rad
  368. IT = Instance.new
  369. BrickC = BrickColor.new
  370. Cos = math.cos
  371. Acos = math.acos
  372. Sin = math.sin
  373. Asin = math.asin
  374. Abs = math.abs
  375. Mrandom = math.random
  376. Floor = math.floor
  377. -------------------------------------------------------
  378. --End Good Stuff--
  379. -------------------------------------------------------
  380. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  381. RSH, LSH = nil, nil
  382. RW = Instance.new("Weld")
  383. LW = Instance.new("Weld")
  384. RH = tors["Right Hip"]
  385. LH = tors["Left Hip"]
  386. RSH = tors["Right Shoulder"]
  387. LSH = tors["Left Shoulder"]
  388. RSH.Parent = nil
  389. LSH.Parent = nil
  390. RW.Name = "RW"
  391. RW.Part0 = tors
  392. RW.C0 = CF(1.5, 0.5, 0)
  393. RW.C1 = CF(0, 0.5, 0)
  394. RW.Part1 = ra
  395. RW.Parent = tors
  396. LW.Name = "LW"
  397. LW.Part0 = tors
  398. LW.C0 = CF(-1.5, 0.5, 0)
  399. LW.C1 = CF(0, 0.5, 0)
  400. LW.Part1 = la
  401. LW.Parent = tors
  402. Effects = {}
  403. -------------------------------------------------------
  404. --Start HeartBeat--
  405. -------------------------------------------------------
  406. ArtificialHB = Instance.new("BindableEvent", script)
  407. ArtificialHB.Name = "Heartbeat"
  408. script:WaitForChild("Heartbeat")
  409.  
  410. frame = 1 / 60
  411. tf = 0
  412. allowframeloss = false
  413. tossremainder = false
  414.  
  415.  
  416. lastframe = tick()
  417. script.Heartbeat:Fire()
  418.  
  419.  
  420. game:GetService("RunService").Heartbeat:connect(function(s, p)
  421. tf = tf + s
  422. if tf >= frame then
  423. if allowframeloss then
  424. script.Heartbeat:Fire()
  425. lastframe = tick()
  426. else
  427. for i = 1, math.floor(tf / frame) do
  428. script.Heartbeat:Fire()
  429. end
  430. lastframe = tick()
  431. end
  432. if tossremainder then
  433. tf = 0
  434. else
  435. tf = tf - frame * math.floor(tf / frame)
  436. end
  437. end
  438. end)
  439. -------------------------------------------------------
  440. --End HeartBeat--
  441. -------------------------------------------------------
  442.  
  443. -------------------------------------------------------
  444. --Start Important Functions--
  445. -------------------------------------------------------
  446. function swait(num)
  447. if num == 0 or num == nil then
  448. game:service("RunService").Stepped:wait(0)
  449. else
  450. for i = 0, num do
  451. game:service("RunService").Stepped:wait(0)
  452. end
  453. end
  454. end
  455. function thread(f)
  456. coroutine.resume(coroutine.create(f))
  457. end
  458. function clerp(a, b, t)
  459. local qa = {
  460. QuaternionFromCFrame(a)
  461. }
  462. local qb = {
  463. QuaternionFromCFrame(b)
  464. }
  465. local ax, ay, az = a.x, a.y, a.z
  466. local bx, by, bz = b.x, b.y, b.z
  467. local _t = 1 - t
  468. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  469. end
  470. function QuaternionFromCFrame(cf)
  471. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  472. local trace = m00 + m11 + m22
  473. if trace > 0 then
  474. local s = math.sqrt(1 + trace)
  475. local recip = 0.5 / s
  476. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  477. else
  478. local i = 0
  479. if m00 < m11 then
  480. i = 1
  481. end
  482. if m22 > (i == 0 and m00 or m11) then
  483. i = 2
  484. end
  485. if i == 0 then
  486. local s = math.sqrt(m00 - m11 - m22 + 1)
  487. local recip = 0.5 / s
  488. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  489. elseif i == 1 then
  490. local s = math.sqrt(m11 - m22 - m00 + 1)
  491. local recip = 0.5 / s
  492. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  493. elseif i == 2 then
  494. local s = math.sqrt(m22 - m00 - m11 + 1)
  495. local recip = 0.5 / s
  496. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  497. end
  498. end
  499. end
  500. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  501. local xs, ys, zs = x + x, y + y, z + z
  502. local wx, wy, wz = w * xs, w * ys, w * zs
  503. local xx = x * xs
  504. local xy = x * ys
  505. local xz = x * zs
  506. local yy = y * ys
  507. local yz = y * zs
  508. local zz = z * zs
  509. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  510. end
  511. function QuaternionSlerp(a, b, t)
  512. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  513. local startInterp, finishInterp
  514. if cosTheta >= 1.0E-4 then
  515. if 1 - cosTheta > 1.0E-4 then
  516. local theta = math.acos(cosTheta)
  517. local invSinTheta = 1 / Sin(theta)
  518. startInterp = Sin((1 - t) * theta) * invSinTheta
  519. finishInterp = Sin(t * theta) * invSinTheta
  520. else
  521. startInterp = 1 - t
  522. finishInterp = t
  523. end
  524. elseif 1 + cosTheta > 1.0E-4 then
  525. local theta = math.acos(-cosTheta)
  526. local invSinTheta = 1 / Sin(theta)
  527. startInterp = Sin((t - 1) * theta) * invSinTheta
  528. finishInterp = Sin(t * theta) * invSinTheta
  529. else
  530. startInterp = t - 1
  531. finishInterp = t
  532. end
  533. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  534. end
  535. function rayCast(Position, Direction, Range, Ignore)
  536. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  537. end
  538. local RbxUtility = LoadLibrary("RbxUtility")
  539. local Create = RbxUtility.Create
  540.  
  541. -------------------------------------------------------
  542. --Start Damage Function--
  543. -------------------------------------------------------
  544. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  545. if hit.Parent == nil then
  546. return
  547. end
  548. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  549. for _, v in pairs(hit.Parent:children()) do
  550. if v:IsA("Humanoid") then
  551. h = v
  552. end
  553. end
  554. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  555.  
  556. hit.Parent:FindFirstChild("Head"):BreakJoints()
  557. end
  558.  
  559. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  560. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  561. if hit.Parent.DebounceHit.Value == true then
  562. return
  563. end
  564. end
  565. if insta == true then
  566. hit.Parent:FindFirstChild("Head"):BreakJoints()
  567. end
  568. local c = Create("ObjectValue"){
  569. Name = "creator",
  570. Value = game:service("Players").LocalPlayer,
  571. Parent = h,
  572. }
  573. game:GetService("Debris"):AddItem(c, .5)
  574. if HitSound ~= nil and HitPitch ~= nil then
  575. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  576. end
  577. local Damage = math.random(minim, maxim)
  578. local blocked = false
  579. local block = hit.Parent:findFirstChild("Block")
  580. if block ~= nil then
  581. if block.className == "IntValue" then
  582. if block.Value > 0 then
  583. blocked = true
  584. block.Value = block.Value - 1
  585. print(block.Value)
  586. end
  587. end
  588. end
  589. if blocked == false then
  590. h.Health = h.Health - Damage
  591. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  592. else
  593. h.Health = h.Health - (Damage / 2)
  594. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  595. end
  596. if Type == "Knockdown" then
  597. local hum = hit.Parent.Humanoid
  598. hum.PlatformStand = true
  599. coroutine.resume(coroutine.create(function(HHumanoid)
  600. swait(1)
  601. HHumanoid.PlatformStand = false
  602. end), hum)
  603. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  604. local bodvol = Create("BodyVelocity"){
  605. velocity = angle * knockback,
  606. P = 5000,
  607. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  608. Parent = hit,
  609. }
  610. local rl = Create("BodyAngularVelocity"){
  611. P = 3000,
  612. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  613. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  614. Parent = hit,
  615. }
  616. game:GetService("Debris"):AddItem(bodvol, .5)
  617. game:GetService("Debris"):AddItem(rl, .5)
  618. elseif Type == "Normal" then
  619. local vp = Create("BodyVelocity"){
  620. P = 500,
  621. maxForce = Vector3.new(math.huge, 0, math.huge),
  622. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  623. }
  624. if knockback > 0 then
  625. vp.Parent = hit.Parent.Torso
  626. end
  627. game:GetService("Debris"):AddItem(vp, .5)
  628. elseif Type == "Up" then
  629. local bodyVelocity = Create("BodyVelocity"){
  630. velocity = Vector3.new(0, 20, 0),
  631. P = 5000,
  632. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  633. Parent = hit,
  634. }
  635. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  636. elseif Type == "DarkUp" then
  637. coroutine.resume(coroutine.create(function()
  638. for i = 0, 1, 0.1 do
  639. swait()
  640. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  641. end
  642. end))
  643. local bodyVelocity = Create("BodyVelocity"){
  644. velocity = Vector3.new(0, 20, 0),
  645. P = 5000,
  646. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  647. Parent = hit,
  648. }
  649. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  650. elseif Type == "Snare" then
  651. local bp = Create("BodyPosition"){
  652. P = 2000,
  653. D = 100,
  654. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  655. position = hit.Parent.Torso.Position,
  656. Parent = hit.Parent.Torso,
  657. }
  658. game:GetService("Debris"):AddItem(bp, 1)
  659. elseif Type == "Freeze" then
  660. local BodPos = Create("BodyPosition"){
  661. P = 50000,
  662. D = 1000,
  663. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  664. position = hit.Parent.Torso.Position,
  665. Parent = hit.Parent.Torso,
  666. }
  667. local BodGy = Create("BodyGyro") {
  668. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  669. P = 20e+003,
  670. Parent = hit.Parent.Torso,
  671. cframe = hit.Parent.Torso.CFrame,
  672. }
  673. hit.Parent.Torso.Anchored = true
  674. coroutine.resume(coroutine.create(function(Part)
  675. swait(1.5)
  676. Part.Anchored = false
  677. end), hit.Parent.Torso)
  678. game:GetService("Debris"):AddItem(BodPos, 3)
  679. game:GetService("Debris"):AddItem(BodGy, 3)
  680. end
  681. local debounce = Create("BoolValue"){
  682. Name = "DebounceHit",
  683. Parent = hit.Parent,
  684. Value = true,
  685. }
  686. game:GetService("Debris"):AddItem(debounce, Delay)
  687. c = Create("ObjectValue"){
  688. Name = "creator",
  689. Value = Player,
  690. Parent = h,
  691. }
  692. game:GetService("Debris"):AddItem(c, .5)
  693. end
  694. end
  695. -------------------------------------------------------
  696. --End Damage Function--
  697. -------------------------------------------------------
  698.  
  699. -------------------------------------------------------
  700. --Start Damage Function Customization--
  701. -------------------------------------------------------
  702. function ShowDamage(Pos, Text, Time, Color)
  703. local Rate = (1 / 30)
  704. local Pos = (Pos or Vector3.new(0, 0, 0))
  705. local Text = (Text or "")
  706. local Time = (Time or 2)
  707. local Color = (Color or Color3.new(1, 0, 1))
  708. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  709. EffectPart.Anchored = true
  710. local BillboardGui = Create("BillboardGui"){
  711. Size = UDim2.new(3, 0, 3, 0),
  712. Adornee = EffectPart,
  713. Parent = EffectPart,
  714. }
  715. local TextLabel = Create("TextLabel"){
  716. BackgroundTransparency = 1,
  717. Size = UDim2.new(1, 0, 1, 0),
  718. Text = Text,
  719. Font = "Bodoni",
  720. TextColor3 = Color,
  721. TextScaled = true,
  722. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  723. Parent = BillboardGui,
  724. }
  725. game.Debris:AddItem(EffectPart, (Time))
  726. EffectPart.Parent = game:GetService("Workspace")
  727. delay(0, function()
  728. local Frames = (Time / Rate)
  729. for Frame = 1, Frames do
  730. wait(Rate)
  731. local Percent = (Frame / Frames)
  732. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  733. TextLabel.TextTransparency = Percent
  734. end
  735. if EffectPart and EffectPart.Parent then
  736. EffectPart:Destroy()
  737. end
  738. end)
  739. end
  740. -------------------------------------------------------
  741. --End Damage Function Customization--
  742. -------------------------------------------------------
  743.  
  744. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  745. for _, c in pairs(workspace:children()) do
  746. local hum = c:findFirstChild("Humanoid")
  747. if hum ~= nil then
  748. local head = c:findFirstChild("Head")
  749. if head ~= nil then
  750. local targ = head.Position - Part.Position
  751. local mag = targ.magnitude
  752. if magni >= mag and c.Name ~= plr.Name then
  753. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  754. end
  755. end
  756. end
  757. end
  758. end
  759.  
  760.  
  761. CFuncs = {
  762. Part = {
  763. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  764. local Part = Create("Part")({
  765. Parent = Parent,
  766. Reflectance = Reflectance,
  767. Transparency = Transparency,
  768. CanCollide = false,
  769. Locked = true,
  770. BrickColor = BrickColor.new(tostring(BColor)),
  771. Name = Name,
  772. Size = Size,
  773. Material = Material
  774. })
  775. RemoveOutlines(Part)
  776. return Part
  777. end
  778. },
  779. Mesh = {
  780. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  781. local Msh = Create(Mesh)({
  782. Parent = Part,
  783. Offset = OffSet,
  784. Scale = Scale
  785. })
  786. if Mesh == "SpecialMesh" then
  787. Msh.MeshType = MeshType
  788. Msh.MeshId = MeshId
  789. end
  790. return Msh
  791. end
  792. },
  793. Mesh = {
  794. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  795. local Msh = Create(Mesh)({
  796. Parent = Part,
  797. Offset = OffSet,
  798. Scale = Scale
  799. })
  800. if Mesh == "SpecialMesh" then
  801. Msh.MeshType = MeshType
  802. Msh.MeshId = MeshId
  803. end
  804. return Msh
  805. end
  806. },
  807. Weld = {
  808. Create = function(Parent, Part0, Part1, C0, C1)
  809. local Weld = Create("Weld")({
  810. Parent = Parent,
  811. Part0 = Part0,
  812. Part1 = Part1,
  813. C0 = C0,
  814. C1 = C1
  815. })
  816. return Weld
  817. end
  818. },
  819. Sound = {
  820. Create = function(id, par, vol, pit)
  821. coroutine.resume(coroutine.create(function()
  822. local S = Create("Sound")({
  823. Volume = vol,
  824. Pitch = pit or 1,
  825. SoundId = id,
  826. Parent = par or workspace
  827. })
  828. wait()
  829. S:play()
  830. game:GetService("Debris"):AddItem(S, 6)
  831. end))
  832. end
  833. },
  834. ParticleEmitter = {
  835. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  836. local fp = Create("ParticleEmitter")({
  837. Parent = Parent,
  838. Color = ColorSequence.new(Color1, Color2),
  839. LightEmission = LightEmission,
  840. Size = Size,
  841. Texture = Texture,
  842. Transparency = Transparency,
  843. ZOffset = ZOffset,
  844. Acceleration = Accel,
  845. Drag = Drag,
  846. LockedToPart = LockedToPart,
  847. VelocityInheritance = VelocityInheritance,
  848. EmissionDirection = EmissionDirection,
  849. Enabled = Enabled,
  850. Lifetime = LifeTime,
  851. Rate = Rate,
  852. Rotation = Rotation,
  853. RotSpeed = RotSpeed,
  854. Speed = Speed,
  855. VelocitySpread = VelocitySpread
  856. })
  857. return fp
  858. end
  859. }
  860. }
  861. function RemoveOutlines(part)
  862. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  863. end
  864. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  865. local Part = Create("Part")({
  866. formFactor = FormFactor,
  867. Parent = Parent,
  868. Reflectance = Reflectance,
  869. Transparency = Transparency,
  870. CanCollide = false,
  871. Locked = true,
  872. BrickColor = BrickColor.new(tostring(BColor)),
  873. Name = Name,
  874. Size = Size,
  875. Material = Material
  876. })
  877. RemoveOutlines(Part)
  878. return Part
  879. end
  880. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  881. local Msh = Create(Mesh)({
  882. Parent = Part,
  883. Offset = OffSet,
  884. Scale = Scale
  885. })
  886. if Mesh == "SpecialMesh" then
  887. Msh.MeshType = MeshType
  888. Msh.MeshId = MeshId
  889. end
  890. return Msh
  891. end
  892. function CreateWeld(Parent, Part0, Part1, C0, C1)
  893. local Weld = Create("Weld")({
  894. Parent = Parent,
  895. Part0 = Part0,
  896. Part1 = Part1,
  897. C0 = C0,
  898. C1 = C1
  899. })
  900. return Weld
  901. end
  902.  
  903.  
  904. -------------------------------------------------------
  905. --Start Effect Function--
  906. -------------------------------------------------------
  907. EffectModel = Instance.new("Model", char)
  908. Effects = {
  909. Block = {
  910. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  911. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  912. prt.Anchored = true
  913. prt.CFrame = cframe
  914. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  915. game:GetService("Debris"):AddItem(prt, 10)
  916. if Type == 1 or Type == nil then
  917. table.insert(Effects, {
  918. prt,
  919. "Block1",
  920. delay,
  921. x3,
  922. y3,
  923. z3,
  924. msh
  925. })
  926. elseif Type == 2 then
  927. table.insert(Effects, {
  928. prt,
  929. "Block2",
  930. delay,
  931. x3,
  932. y3,
  933. z3,
  934. msh
  935. })
  936. else
  937. table.insert(Effects, {
  938. prt,
  939. "Block3",
  940. delay,
  941. x3,
  942. y3,
  943. z3,
  944. msh
  945. })
  946. end
  947. end
  948. },
  949. Sphere = {
  950. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  951. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  952. prt.Anchored = true
  953. prt.CFrame = cframe
  954. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  955. game:GetService("Debris"):AddItem(prt, 10)
  956. table.insert(Effects, {
  957. prt,
  958. "Cylinder",
  959. delay,
  960. x3,
  961. y3,
  962. z3,
  963. msh
  964. })
  965. end
  966. },
  967. Cylinder = {
  968. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  969. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  970. prt.Anchored = true
  971. prt.CFrame = cframe
  972. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  973. game:GetService("Debris"):AddItem(prt, 10)
  974. table.insert(Effects, {
  975. prt,
  976. "Cylinder",
  977. delay,
  978. x3,
  979. y3,
  980. z3,
  981. msh
  982. })
  983. end
  984. },
  985. Wave = {
  986. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  987. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  988. prt.Anchored = true
  989. prt.CFrame = cframe
  990. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  991. game:GetService("Debris"):AddItem(prt, 10)
  992. table.insert(Effects, {
  993. prt,
  994. "Cylinder",
  995. delay,
  996. x3 / 60,
  997. y3 / 60,
  998. z3 / 60,
  999. msh
  1000. })
  1001. end
  1002. },
  1003. Ring = {
  1004. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1005. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1006. prt.Anchored = true
  1007. prt.CFrame = cframe
  1008. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1009. game:GetService("Debris"):AddItem(prt, 10)
  1010. table.insert(Effects, {
  1011. prt,
  1012. "Cylinder",
  1013. delay,
  1014. x3,
  1015. y3,
  1016. z3,
  1017. msh
  1018. })
  1019. end
  1020. },
  1021. Break = {
  1022. Create = function(brickcolor, cframe, x1, y1, z1)
  1023. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1024. prt.Anchored = true
  1025. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1026. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1027. local num = math.random(10, 50) / 1000
  1028. game:GetService("Debris"):AddItem(prt, 10)
  1029. table.insert(Effects, {
  1030. prt,
  1031. "Shatter",
  1032. num,
  1033. prt.CFrame,
  1034. math.random() - math.random(),
  1035. 0,
  1036. math.random(50, 100) / 100
  1037. })
  1038. end
  1039. },
  1040. Spiral = {
  1041. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1042. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1043. prt.Anchored = true
  1044. prt.CFrame = cframe
  1045. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1046. game:GetService("Debris"):AddItem(prt, 10)
  1047. table.insert(Effects, {
  1048. prt,
  1049. "Cylinder",
  1050. delay,
  1051. x3,
  1052. y3,
  1053. z3,
  1054. msh
  1055. })
  1056. end
  1057. },
  1058. Push = {
  1059. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1060. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1061. prt.Anchored = true
  1062. prt.CFrame = cframe
  1063. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1064. game:GetService("Debris"):AddItem(prt, 10)
  1065. table.insert(Effects, {
  1066. prt,
  1067. "Cylinder",
  1068. delay,
  1069. x3,
  1070. y3,
  1071. z3,
  1072. msh
  1073. })
  1074. end
  1075. }
  1076. }
  1077. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1078. local fp = IT("Part")
  1079. fp.formFactor = formfactor
  1080. fp.Parent = parent
  1081. fp.Reflectance = reflectance
  1082. fp.Transparency = transparency
  1083. fp.CanCollide = false
  1084. fp.Locked = true
  1085. fp.BrickColor = brickcolor
  1086. fp.Name = name
  1087. fp.Size = size
  1088. fp.Position = tors.Position
  1089. RemoveOutlines(fp)
  1090. fp.Material = "SmoothPlastic"
  1091. fp:BreakJoints()
  1092. return fp
  1093. end
  1094.  
  1095. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1096. local mesh = IT(Mesh)
  1097. mesh.Parent = part
  1098. if Mesh == "SpecialMesh" then
  1099. mesh.MeshType = meshtype
  1100. if meshid ~= "nil" then
  1101. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1102. end
  1103. end
  1104. mesh.Offset = offset
  1105. mesh.Scale = scale
  1106. return mesh
  1107. end
  1108.  
  1109. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1110. local type = type
  1111. local rng = Instance.new("Part", char)
  1112. rng.Anchored = true
  1113. rng.BrickColor = color
  1114. rng.CanCollide = false
  1115. rng.FormFactor = 3
  1116. rng.Name = "Ring"
  1117. rng.Material = "Neon"
  1118. rng.Size = Vector3.new(1, 1, 1)
  1119. rng.Transparency = 0
  1120. rng.TopSurface = 0
  1121. rng.BottomSurface = 0
  1122. rng.CFrame = pos
  1123. local rngm = Instance.new("SpecialMesh", rng)
  1124. rngm.MeshType = MType
  1125. rngm.Scale = scale
  1126. local scaler2 = 1
  1127. if type == "Add" then
  1128. scaler2 = 1 * value
  1129. elseif type == "Divide" then
  1130. scaler2 = 1 / value
  1131. end
  1132. coroutine.resume(coroutine.create(function()
  1133. for i = 0, 10 / bonuspeed, 0.1 do
  1134. swait()
  1135. if type == "Add" then
  1136. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1137. elseif type == "Divide" then
  1138. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1139. end
  1140. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1141. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1142. end
  1143. rng:Destroy()
  1144. end))
  1145. end
  1146.  
  1147. function Eviscerate(dude)
  1148. if dude.Name ~= char then
  1149. local bgf = IT("BodyGyro", dude.Head)
  1150. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1151. local val = IT("BoolValue", dude)
  1152. val.Name = "IsHit"
  1153. local ds = coroutine.wrap(function()
  1154. dude:WaitForChild("Head"):BreakJoints()
  1155. wait(0.5)
  1156. target = nil
  1157. coroutine.resume(coroutine.create(function()
  1158. for i, v in pairs(dude:GetChildren()) do
  1159. if v:IsA("Accessory") then
  1160. v:Destroy()
  1161. end
  1162. if v:IsA("Humanoid") then
  1163. v:Destroy()
  1164. end
  1165. if v:IsA("CharacterMesh") then
  1166. v:Destroy()
  1167. end
  1168. if v:IsA("Model") then
  1169. v:Destroy()
  1170. end
  1171. if v:IsA("Part") or v:IsA("MeshPart") then
  1172. for x, o in pairs(v:GetChildren()) do
  1173. if o:IsA("Decal") then
  1174. o:Destroy()
  1175. end
  1176. end
  1177. coroutine.resume(coroutine.create(function()
  1178. v.Material = "Neon"
  1179. v.CanCollide = false
  1180. local PartEmmit1 = IT("ParticleEmitter", v)
  1181. PartEmmit1.LightEmission = 1
  1182. PartEmmit1.Texture = "rbxassetid://284205403"
  1183. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1184. PartEmmit1.Rate = 150
  1185. PartEmmit1.Lifetime = NumberRange.new(1)
  1186. PartEmmit1.Size = NumberSequence.new({
  1187. NumberSequenceKeypoint.new(0, 0.75, 0),
  1188. NumberSequenceKeypoint.new(1, 0, 0)
  1189. })
  1190. PartEmmit1.Transparency = NumberSequence.new({
  1191. NumberSequenceKeypoint.new(0, 0, 0),
  1192. NumberSequenceKeypoint.new(1, 1, 0)
  1193. })
  1194. PartEmmit1.Speed = NumberRange.new(0, 0)
  1195. PartEmmit1.VelocitySpread = 30000
  1196. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1197. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1198. local BodPoss = IT("BodyPosition", v)
  1199. BodPoss.P = 3000
  1200. BodPoss.D = 1000
  1201. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1202. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1203. v.Color = maincolor.Color
  1204. coroutine.resume(coroutine.create(function()
  1205. for i = 0, 49 do
  1206. swait(1)
  1207. v.Transparency = v.Transparency + 0.08
  1208. end
  1209. wait(0.5)
  1210. PartEmmit1.Enabled = false
  1211. wait(3)
  1212. v:Destroy()
  1213. dude:Destroy()
  1214. end))
  1215. end))
  1216. end
  1217. end
  1218. end))
  1219. end)
  1220. ds()
  1221. end
  1222. end
  1223.  
  1224. function FindNearestHead(Position, Distance, SinglePlayer)
  1225. if SinglePlayer then
  1226. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1227. end
  1228. local List = {}
  1229. for i, v in pairs(workspace:GetChildren()) do
  1230. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1231. table.insert(List, v)
  1232. end
  1233. end
  1234. return List
  1235. end
  1236.  
  1237. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1238. local type = type
  1239. local rng = Instance.new("Part", char)
  1240. rng.Anchored = true
  1241. rng.BrickColor = color
  1242. rng.CanCollide = false
  1243. rng.FormFactor = 3
  1244. rng.Name = "Ring"
  1245. rng.Material = "Neon"
  1246. rng.Size = Vector3.new(1, 1, 1)
  1247. rng.Transparency = 0
  1248. rng.TopSurface = 0
  1249. rng.BottomSurface = 0
  1250. rng.CFrame = pos
  1251. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1252. local rngm = Instance.new("SpecialMesh", rng)
  1253. rngm.MeshType = MType
  1254. rngm.Scale = Vector3.new(x1, y1, z1)
  1255. local scaler2 = 1
  1256. local speeder = FastSpeed
  1257. if type == "Add" then
  1258. scaler2 = 1 * value
  1259. elseif type == "Divide" then
  1260. scaler2 = 1 / value
  1261. end
  1262. coroutine.resume(coroutine.create(function()
  1263. for i = 0, 10 / bonuspeed, 0.1 do
  1264. swait()
  1265. if type == "Add" then
  1266. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1267. elseif type == "Divide" then
  1268. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1269. end
  1270. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1271. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1272. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1273. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1274. end
  1275. rng:Destroy()
  1276. end))
  1277. end
  1278.  
  1279. function SoulSteal(dude)
  1280. if dude.Name ~= char then
  1281. local bgf = IT("BodyGyro", dude.Head)
  1282. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1283. local val = IT("BoolValue", dude)
  1284. val.Name = "IsHit"
  1285. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1286. local soulst = coroutine.wrap(function()
  1287. local soul = Instance.new("Part",dude)
  1288. soul.Size = Vector3.new(1,1,1)
  1289. soul.CanCollide = false
  1290. soul.Anchored = false
  1291. soul.Position = torso.Position
  1292. soul.Transparency = 1
  1293. local PartEmmit1 = IT("ParticleEmitter", soul)
  1294. PartEmmit1.LightEmission = 1
  1295. PartEmmit1.Texture = "rbxassetid://569507414"
  1296. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1297. PartEmmit1.Rate = 250
  1298. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1299. PartEmmit1.Size = NumberSequence.new({
  1300. NumberSequenceKeypoint.new(0, 1, 0),
  1301. NumberSequenceKeypoint.new(1, 0, 0)
  1302. })
  1303. PartEmmit1.Transparency = NumberSequence.new({
  1304. NumberSequenceKeypoint.new(0, 0, 0),
  1305. NumberSequenceKeypoint.new(1, 1, 0)
  1306. })
  1307. PartEmmit1.Speed = NumberRange.new(0, 0)
  1308. PartEmmit1.VelocitySpread = 30000
  1309. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1310. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1311. local BodPoss = IT("BodyPosition", soul)
  1312. BodPoss.P = 3000
  1313. BodPoss.D = 1000
  1314. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1315. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1316. wait(1.6)
  1317. soul.Touched:connect(function(hit)
  1318. if hit.Parent == char then
  1319. soul:Destroy()
  1320. end
  1321. end)
  1322. wait(1.2)
  1323. while soul do
  1324. swait()
  1325. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1326. BodPoss.Position = tors.Position
  1327. end
  1328. end)
  1329. soulst()
  1330. end
  1331. end
  1332. function FaceMouse()
  1333. local Cam = workspace.CurrentCamera
  1334. return {
  1335. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1336. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1337. }
  1338. end
  1339. -------------------------------------------------------
  1340. --End Effect Function--
  1341. -------------------------------------------------------
  1342. function Cso(ID, PARENT, VOLUME, PITCH)
  1343. local NSound = nil
  1344. coroutine.resume(coroutine.create(function()
  1345. NSound = IT("Sound", PARENT)
  1346. NSound.Volume = VOLUME
  1347. NSound.Pitch = PITCH
  1348. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1349. swait()
  1350. NSound:play()
  1351. game:GetService("Debris"):AddItem(NSound, 10)
  1352. end))
  1353. return NSound
  1354. end
  1355. function CameraEnshaking(Length, Intensity)
  1356. coroutine.resume(coroutine.create(function()
  1357. local intensity = 1 * Intensity
  1358. local rotM = 0.01 * Intensity
  1359. for i = 0, Length, 0.1 do
  1360. swait()
  1361. intensity = intensity - 0.05 * Intensity / Length
  1362. rotM = rotM - 5.0E-4 * Intensity / Length
  1363. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1364. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1365. end
  1366. hum.CameraOffset = Vector3.new(0, 0, 0)
  1367. end))
  1368. end
  1369. function chatfunc(text, color)
  1370. local chat = coroutine.wrap(function()
  1371. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1372. char:FindFirstChild("TalkingBillBoard"):destroy()
  1373. end
  1374. local naeeym2 = Instance.new("BillboardGui", char)
  1375. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1376. naeeym2.StudsOffset = Vector3.new(0, 5, 0)
  1377. naeeym2.Adornee = hed
  1378. naeeym2.Name = "TalkingBillBoard"
  1379. local tecks2 = Instance.new("TextLabel", naeeym2)
  1380. tecks2.BackgroundTransparency = 1
  1381. tecks2.BorderSizePixel = 0
  1382. tecks2.Text = ""
  1383. tecks2.Font = "SciFi"
  1384. tecks2.TextSize = 30
  1385. tecks2.TextStrokeTransparency = 0
  1386. tecks2.TextColor3 = color
  1387. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1388. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1389. coroutine.resume(coroutine.create(function()
  1390. while true do
  1391. swait(1)
  1392. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1393. tecks2.Rotation = math.random(-5, 5)
  1394. end
  1395. end))
  1396. for i = 1, string.len(text) do
  1397. CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
  1398. tecks2.Text = string.sub(text, 1, i)
  1399. swait(1)
  1400. end
  1401. wait(1)
  1402. naeeym2:Destroy()
  1403. end)
  1404. chat()
  1405. end
  1406. -------------------------------------------------------
  1407. --End Important Functions--
  1408. -------------------------------------------------------
  1409.  
  1410.  
  1411. -------------------------------------------------------
  1412. --Start Customization--
  1413. -------------------------------------------------------
  1414. local Player_Size = 1
  1415. if Player_Size ~= 1 then
  1416. root.Size = root.Size * Player_Size
  1417. tors.Size = tors.Size * Player_Size
  1418. hed.Size = hed.Size * Player_Size
  1419. ra.Size = ra.Size * Player_Size
  1420. la.Size = la.Size * Player_Size
  1421. rl.Size = rl.Size * Player_Size
  1422. ll.Size = ll.Size * Player_Size
  1423. ----------------------------------------------------------------------------------
  1424. rootj.Parent = root
  1425. neck.Parent = tors
  1426. RW.Parent = tors
  1427. LW.Parent = tors
  1428. RH.Parent = tors
  1429. LH.Parent = tors
  1430. ----------------------------------------------------------------------------------
  1431. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1432. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1433. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1434. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1435. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1436. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1437. ----------------------------------------------------------------------------------
  1438. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1439. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1440. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1441. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1442. --hat.Parent = Character
  1443. end
  1444. ----------------------------------------------------------------------------------
  1445. local SONG = 703597239
  1446. local SONG2 = 853707984
  1447. local Music = Instance.new("Sound",tors)
  1448. Music.Volume = 2.5
  1449. Music.Looped = true
  1450. Music.Pitch = 1 --Pitcher
  1451. ----------------------------------------------------------------------------------
  1452. local equipped = false
  1453. local idle = 0
  1454. local change = 1
  1455. local val = 0
  1456. local toim = 0
  1457. local idleanim = 0.4
  1458. local sine = 0
  1459. local Sit = 1
  1460. ----------------------------------------------------------------------------------
  1461. hum.WalkSpeed = 16
  1462. hum.JumpPower = 57
  1463. hum.Animator.Parent = nil
  1464. ----------------------------------------------------------------------------------
  1465. local Blobby = Instance.new("Part", char)
  1466. Blobby.Name = "Blob"
  1467. Blobby.CanCollide = false
  1468. Blobby.BrickColor = BrickColor.new("Really black")
  1469. Blobby.Transparency = 0
  1470. Blobby.Material = "Plastic"
  1471. Blobby.Size = Vector3.new(1, 1, 2)
  1472. Blobby.TopSurface = Enum.SurfaceType.Smooth
  1473. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  1474.  
  1475. local Weld = Instance.new("Weld", Blobby)
  1476. Weld.Part0 = ra
  1477. Weld.Part1 = Blobby
  1478. Weld.C1 = CFrame.new(0, -2, 1.1)
  1479. Weld.C0 = CFrame.Angles(Rad(-86),0,0)
  1480.  
  1481. local M2 = Instance.new("SpecialMesh")
  1482. M2.Parent = Blobby
  1483. M2.MeshId = "http://www.roblox.com/asset/?id=10604848"
  1484. M2.TextureId = "http://www.roblox.com/asset/?id=10605252"
  1485. M2.Scale = Vector3.new(1, 1, 1)
  1486.  
  1487. --[[local naeeym2 = Instance.new("BillboardGui",char)
  1488. naeeym2.AlwaysOnTop = true
  1489. naeeym2.Size = UDim2.new(5,35,2,15)
  1490. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1491. naeeym2.Adornee = hed
  1492. naeeym2.Name = "Name"
  1493. --naeeym2.PlayerToHideFrom = Player
  1494. local tecks2 = Instance.new("TextLabel",naeeym2)
  1495. tecks2.BackgroundTransparency = 1
  1496. tecks2.TextScaled = true
  1497. tecks2.BorderSizePixel = 0
  1498. tecks2.Text = "Fight Me"
  1499. tecks2.Font = Enum.Font.Bodoni
  1500. tecks2.TextSize = 30
  1501. tecks2.TextStrokeTransparency = 0
  1502. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1503. tecks2.TextStrokeColor3 = Color3.new(1, 1, 1)
  1504. tecks2.Size = UDim2.new(1,0,0.5,0)
  1505. tecks2.Parent = naeeym2]]
  1506. -------------------------------------------------------
  1507. --End Customization--
  1508. -------------------------------------------------------
  1509.  
  1510.  
  1511. -------------------------------------------------------
  1512. --Start Attacks N Stuff--
  1513. -------------------------------------------------------
  1514. function Ban()
  1515. attack = true
  1516. for i = 0, 2.6, 0.1 do
  1517. swait()
  1518. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
  1519. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
  1520. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
  1521. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
  1522. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  1523. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
  1524. end
  1525. Cso("147722910", tors, 10, 1)
  1526. CameraEnshaking(2, 15)
  1527. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1528. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1529. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1530. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do
  1531. if v:FindFirstChild("Head") then
  1532. Eviscerate(v)
  1533. end
  1534. end
  1535. for i = 0, 3, 0.1 do
  1536. swait()
  1537. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1538. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
  1539. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
  1540. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
  1541. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
  1542. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
  1543. end
  1544. attack = false
  1545. end
  1546. function BigBan()
  1547. attack = true
  1548. Weld.C0 = CFrame.Angles(Rad(-90), Rad(-25), Rad(0))
  1549. for i = 0, 3.6, 0.1 do
  1550. swait()
  1551. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.2)
  1552. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
  1553. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2)
  1554. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2)
  1555. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-.6), Rad(-45)), 0.2)
  1556. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-6), Rad(45)), 0.2)
  1557. end
  1558. Cso("147722910", tors, 10, 1)
  1559. CameraEnshaking(2, 15)
  1560. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1561. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1562. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1563. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 14.5)) do
  1564. if v:FindFirstChild("Head") then
  1565. Eviscerate(v)
  1566. end
  1567. end
  1568. for i = 0, 2.6, 0.1 do
  1569. swait()
  1570. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(0)), 0.2)
  1571. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
  1572. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2)
  1573. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2)
  1574. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2)
  1575. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2)
  1576. end
  1577. Weld.C0 = CFrame.Angles(Rad(-86),0,0)
  1578. attack = false
  1579. end
  1580. function BANN()
  1581. attack = true
  1582. M2.Scale = Vector3.new(2, 2, 2)
  1583. for i = 0, 4.6, 0.1 do
  1584. swait()
  1585. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
  1586. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
  1587. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2)
  1588. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2)
  1589. RW.C0 = clerp(RW.C0, CF(.6* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  1590. LW.C0 = clerp(LW.C0, CF(-.8* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(156), Rad(-.6), Rad(45)), 0.2)
  1591. end
  1592. Cso("147722910", char, 10, 1)
  1593. CameraEnshaking(2, 35)
  1594. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1595. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1596. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  1597. Effects.Ring.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04)
  1598. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
  1599. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
  1600. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
  1601. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 19.5)) do
  1602. if v:FindFirstChild("Head") then
  1603. Eviscerate(v)
  1604. end
  1605. end
  1606. for i = 0, 3, 0.1 do
  1607. swait()
  1608. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1609. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
  1610. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
  1611. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
  1612. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
  1613. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
  1614. end
  1615. M2.Scale = Vector3.new(1, 1, 1)
  1616. attack = false
  1617. end
  1618. -------------------------------------------------------
  1619. --End Attacks N Stuff--
  1620. -------------------------------------------------------
  1621. mouse.KeyDown:connect(function(key)
  1622. if string.byte(key) == 48 then
  1623. Swing = 2
  1624. hum.WalkSpeed = 38.82
  1625. end
  1626. end)
  1627. mouse.KeyUp:connect(function(key)
  1628. if string.byte(key) == 48 then
  1629. Swing = 1
  1630. hum.WalkSpeed = 16
  1631. end
  1632. end)
  1633. mouse.KeyDown:connect(function(key)
  1634. if attack == false then
  1635. if key == 'e' then
  1636. BigBan()
  1637. elseif key == 'r' then
  1638. BANN()
  1639. elseif key == 't' then
  1640. Cso("1450018171", hed, 10, 1)
  1641. end
  1642. end
  1643. end)
  1644. mouse.Button1Down:connect(function(key)
  1645. if attack == false then
  1646. Ban()
  1647. end
  1648. end)
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656. -------------------------------------------------------
  1657. --Start Animations--
  1658. -------------------------------------------------------
  1659. while true do
  1660. swait()
  1661. sine = sine + change
  1662. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1663. local velderp = root.Velocity.y
  1664. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1665. if equipped == true or equipped == false then
  1666. if attack == false then
  1667. idle = idle + 1
  1668. else
  1669. idle = 0
  1670. end
  1671. --Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere")
  1672. if 1 < root.Velocity.y and hitfloor == nil then
  1673. Anim = "Jump"
  1674. if attack == false then
  1675. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1676. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1677. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1678. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1679. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1680. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1681. end
  1682. elseif -1 > root.Velocity.y and hitfloor == nil then
  1683. Anim = "Fall"
  1684. if attack == false then
  1685. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1686. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1687. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1688. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1689. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1690. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1691. end
  1692. elseif torvel < 1 and hitfloor ~= nil then
  1693. Anim = "Idle"
  1694. change = 1
  1695. if attack == false then
  1696. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1697. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1698. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1699. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1700. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(190), Rad(-.6), Rad(13)), 0.1)
  1701. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1702. end
  1703. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1704. Anim = "Walk"
  1705. change = 1
  1706. if attack == false then
  1707. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1708. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 6.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1709. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1710. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1711. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(190) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.1)
  1712. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1713. end
  1714. elseif torvel >= 25 and hitfloor ~= nil then
  1715. Anim = "Sprint"
  1716. change = 1.35
  1717. if attack == false then
  1718. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1719. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1720. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1721. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1722. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(215) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1723. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-75) , Rad(8 * Cos(sine / 7)) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1724. end
  1725. end
  1726. end
  1727. Music.SoundId = "rbxassetid://"..SONG
  1728. Music.Looped = true
  1729. Music.Pitch = 1
  1730. Music.Volume = 1.5
  1731. Music.Parent = tors
  1732. Music:Resume()
  1733. if 0 < #Effects then
  1734. for e = 1, #Effects do
  1735. if Effects[e] ~= nil then
  1736. local Thing = Effects[e]
  1737. if Thing ~= nil then
  1738. local Part = Thing[1]
  1739. local Mode = Thing[2]
  1740. local Delay = Thing[3]
  1741. local IncX = Thing[4]
  1742. local IncY = Thing[5]
  1743. local IncZ = Thing[6]
  1744. if 1 >= Thing[1].Transparency then
  1745. if Thing[2] == "Block1" then
  1746. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1747. local Mesh = Thing[1].Mesh
  1748. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1749. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1750. elseif Thing[2] == "Block2" then
  1751. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1752. local Mesh = Thing[7]
  1753. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1754. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1755. elseif Thing[2] == "Block3" then
  1756. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1757. local Mesh = Thing[7]
  1758. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1759. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1760. elseif Thing[2] == "Cylinder" then
  1761. local Mesh = Thing[1].Mesh
  1762. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1763. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1764. elseif Thing[2] == "Blood" then
  1765. local Mesh = Thing[7]
  1766. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1767. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1768. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1769. elseif Thing[2] == "Elec" then
  1770. local Mesh = Thing[1].Mesh
  1771. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1772. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1773. elseif Thing[2] == "Disappear" then
  1774. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1775. elseif Thing[2] == "Shatter" then
  1776. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1777. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1778. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1779. Thing[6] = Thing[6] + Thing[5]
  1780. end
  1781. else
  1782. Part.Parent = nil
  1783. table.remove(Effects, e)
  1784. end
  1785. end
  1786. end
  1787. end
  1788. end
  1789. end
  1790. -------------------------------------------------------
  1791. --End Animations And Script--
  1792. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement