gecksad

Untitled

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