Advertisement
vallentganteng

maniac

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