EmeraldIT

Untitled

May 24th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.22 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Uh.. why did you run it as local instead of global? Idiot.") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. plr = owner
  85. char = plr.Character
  86. local color = Color3.new(1,1,0.7)
  87. local dark =false
  88. hum = char.Humanoid
  89. local cam = game.Workspace.CurrentCamera
  90. t = char.Torso
  91. h = char.Head
  92. ra = char["Right Arm"]
  93. la = char["Left Arm"]
  94. rl = char["Right Leg"]
  95. ll = char["Left Leg"]
  96. tors = char.Torso
  97. lleg = char["Left Leg"]
  98. root = char.HumanoidRootPart
  99. hed = char.Head
  100. rleg = char["Right Leg"]
  101. rarm = char["Right Arm"]
  102. larm = char["Left Arm"]
  103. it = Instance.new
  104. vt = Vector3.new
  105. bc = BrickColor.new
  106. br = BrickColor.random
  107. it = Instance.new
  108. cf = CFrame.new
  109. ceuler = CFrame.fromEulerAnglesXYZ
  110.  
  111. Player=owner
  112. Character=Player.Character
  113. PlayerGui=Player.PlayerGui
  114. Backpack=Player.Backpack
  115. Torso=Character.Torso
  116. Head=Character.Head
  117. Humanoid=Character.Humanoid
  118. m=Instance.new('Model',Character)
  119. LeftArm=Character["Left Arm"]
  120. LeftLeg=Character["Left Leg"]
  121. RightArm=Character["Right Arm"]
  122. RightLeg=Character["Right Leg"]
  123. LS=Torso["Left Shoulder"]
  124. LH=Torso["Left Hip"]
  125. RS=Torso["Right Shoulder"]
  126. RH=Torso["Right Hip"]
  127. Face = Head.face
  128. Neck=Torso.Neck
  129. it=Instance.new
  130. attacktype=1
  131. vt=Vector3.new
  132. cf=CFrame.new
  133. euler=CFrame.fromEulerAnglesXYZ
  134. angles=CFrame.Angles
  135. cloaked=false
  136. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  137. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  138. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  139. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  140. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  141. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  142. RootPart=Character.HumanoidRootPart
  143. RootJoint=RootPart.RootJoint
  144. RootCF=euler(-1.57,0,3.14)
  145. attack = false
  146. attackdebounce = false
  147. deb=false
  148. equipped=false
  149. hand=false
  150. MMouse=nil
  151. combo=0
  152. mana=0
  153. trispeed=.2
  154. attackmode='none'
  155. local idle=0
  156. local Anim="Idle"
  157. local sine = 0
  158. local change = 1
  159. local hold = false
  160. player=nil
  161.  
  162. local inf = Instance.new("TextLabel")
  163. inf.BackgroundTransparency = 1
  164. inf.Text = ""
  165. inf.Font = "SciFi"
  166. inf.TextScaled = true
  167. inf.Size = UDim2.new(0.1,0,0.1,0)
  168. inf.Position = UDim2.new(0.4,0,0.1,0)
  169. gu = Instance.new("ScreenGui")
  170. gu.Parent = owner.PlayerGui
  171. inf.Parent = gu
  172.  
  173. --save shoulders
  174. RSH, LSH=nil, nil
  175. --welds
  176. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  177. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  178. LH=Torso["Left Hip"]
  179. RH=Torso["Right Hip"]
  180. TorsoColor=Torso.BrickColor
  181. function NoOutline(Part)
  182. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  183. end
  184. player=Player
  185. ch=Character
  186. RSH=ch.Torso["Right Shoulder"]
  187. LSH=ch.Torso["Left Shoulder"]
  188. --
  189. RSH.Parent=nil
  190. LSH.Parent=nil
  191. --
  192. RW.Name="Right Shoulder"
  193. RW.Part0=ch.Torso
  194. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  195. RW.C1=cf(0, 0.5, 0)
  196. RW.Part1=ch["Right Arm"]
  197. RW.Parent=ch.Torso
  198. --
  199. LW.Name="Left Shoulder"
  200. LW.Part0=ch.Torso
  201. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  202. LW.C1=cf(0, 0.5, 0)
  203. LW.Part1=ch["Left Arm"]
  204. LW.Parent=ch.Torso
  205.  
  206. local Pt = Instance.new('ParticleEmitter', Character.HumanoidRootPart)
  207. Pt.Rate = 0
  208. Pt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3), NumberSequenceKeypoint.new(1,3)})
  209. Pt.Drag = 3
  210. Pt.Name = "Effect"
  211. Pt.SpreadAngle = Vector2.new(360,360)
  212. Pt.Color = ColorSequence.new(color)
  213. Pt.Acceleration = Vector3.new(0,10,0)
  214. Pt.Texture = "http://www.roblox.com/asset/?id=4581757159"
  215. Pt.LightEmission = 1
  216. Pt.Speed = NumberRange.new(20,40)
  217. Pt.LockedToPart = false
  218. Pt.Lifetime = NumberRange.new(1,2)
  219. Pt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0), NumberSequenceKeypoint.new(0.7,0), NumberSequenceKeypoint.new(1,1)})
  220. Pt.RotSpeed = NumberRange.new(-30,30)
  221. Pt.Rotation = NumberRange.new(-180,180)
  222.  
  223. for _,v in pairs(owner.Character:GetChildren()) do
  224. if v:IsA("Part") then
  225. local Pta = Instance.new('ParticleEmitter', v)
  226. Pta.Rate = 0
  227. Pta.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(1,1)})
  228. Pta.Drag = 0
  229. Pta.Name = "Darkkk"
  230. Pta.ZOffset = -1
  231. Pta.SpreadAngle = Vector2.new(10,10)
  232. Pta.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0.3,0,0))
  233. Pta.Acceleration = Vector3.new(0,0,0)
  234. Pta.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  235. Pta.LightEmission = 0
  236. Pta.Speed = NumberRange.new(0,0)
  237. Pta.LockedToPart = true
  238. Pta.Lifetime = NumberRange.new(1,2)
  239. Pta.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.2,0), NumberSequenceKeypoint.new(0.8,0), NumberSequenceKeypoint.new(1,1)})
  240. Pta.RotSpeed = NumberRange.new(-180,180)
  241. Pta.Rotation = NumberRange.new(-180,180)
  242. end
  243. end
  244.  
  245. local Ptaa = Instance.new('ParticleEmitter', RightLeg)
  246. Ptaa.Rate = 0
  247. Ptaa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3), NumberSequenceKeypoint.new(1,3)})
  248. Ptaa.Drag = 1
  249. Ptaa.Name = "Darkkk"
  250. Ptaa.ZOffset = -1
  251. Ptaa.EmissionDirection = "Front"
  252. Ptaa.SpreadAngle = Vector2.new(0,360)
  253. Ptaa.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0.3,0,0))
  254. Ptaa.Acceleration = Vector3.new(0,0,0)
  255. Ptaa.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  256. Ptaa.LightEmission = 0
  257. Ptaa.Speed = NumberRange.new(30,40)
  258. Ptaa.LockedToPart = false
  259. Ptaa.Lifetime = NumberRange.new(0.5,3)
  260. Ptaa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.2,0), NumberSequenceKeypoint.new(0.8,0), NumberSequenceKeypoint.new(1,1)})
  261. Ptaa.RotSpeed = NumberRange.new(-180,180)
  262. Ptaa.Rotation = NumberRange.new(-180,180)
  263.  
  264. local Ptaa1 = Instance.new('ParticleEmitter', LeftLeg)
  265. Ptaa1.Rate = 0
  266. Ptaa1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5), NumberSequenceKeypoint.new(1,5)})
  267. Ptaa1.Drag = 1
  268. Ptaa1.Name = "Darkkk"
  269. Ptaa1.ZOffset = -1
  270. Ptaa1.EmissionDirection = "Front"
  271. Ptaa1.SpreadAngle = Vector2.new(0,360)
  272. Ptaa1.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0.3,0,0))
  273. Ptaa1.Acceleration = Vector3.new(0,0,0)
  274. Ptaa1.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  275. Ptaa1.LightEmission = 0
  276. Ptaa1.Speed = NumberRange.new(30,40)
  277. Ptaa1.LockedToPart = false
  278. Ptaa1.Lifetime = NumberRange.new(0.5,3)
  279. Ptaa1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.2,0), NumberSequenceKeypoint.new(0.8,0), NumberSequenceKeypoint.new(1,1)})
  280. Ptaa1.RotSpeed = NumberRange.new(-180,180)
  281. Ptaa1.Rotation = NumberRange.new(-180,180)
  282.  
  283.  
  284. local Pt2 = Instance.new('ParticleEmitter', Character.HumanoidRootPart)
  285. Pt2.Rate = 0
  286. Pt2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5), NumberSequenceKeypoint.new(1,5)})
  287. Pt2.Drag = 3
  288. Pt2.Name = "Effect"
  289. Pt2.SpreadAngle = Vector2.new(360,360)
  290. Pt2.Color = ColorSequence.new(color)
  291. Pt2.Acceleration = Vector3.new(0,0,0)
  292. Pt2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  293. Pt2.LightEmission = 1
  294. Pt2.Speed = NumberRange.new(69,100)
  295. Pt2.LockedToPart = false
  296. Pt2.Lifetime = NumberRange.new(2,3)
  297. Pt2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0), NumberSequenceKeypoint.new(0.7,0), NumberSequenceKeypoint.new(1,1)})
  298. Pt2.RotSpeed = NumberRange.new(-30,30)
  299.  
  300. fallgently = Instance.new("BodyVelocity")
  301. fallgently.MaxForce = Vector3.new(0,math.huge,0)
  302. fallgently.Velocity = Vector3.new(0,-7.5,0)
  303.  
  304. local muter = false
  305. local ORGID = 905506530
  306. local ORVOL = 4
  307. local ORPIT = 1
  308. local kan = Instance.new("Sound",plr.Character.Head)
  309. kan.Volume = 4
  310. kan.TimePosition = 0
  311. kan.PlaybackSpeed = 1
  312. kan.Pitch = 1
  313. kan.SoundId = "rbxassetid://905506530"
  314. kan.Name = "I c u looking at those sounds, pervert"
  315. kan.Looped = true
  316. kan:Play()
  317. plr.Chatted:connect(function(message)
  318. if message:sub(1,3) == "id/" then
  319. ORGID = message:sub(4)
  320. kan.TimePosition = 0
  321. kan:Play()
  322. elseif message:sub(1,6) == "pitch/" then
  323. ORPIT = message:sub(7)
  324. elseif message:sub(1,4) == "vol/" then
  325. ORVOL = message:sub(5)
  326. elseif message:sub(1,7) == "skipto/" then
  327. kan.TimePosition = message:sub(8)
  328. end
  329. end)
  330.  
  331. function lerp(object, newCFrame, alpha)
  332. return object:lerp(newCFrame, alpha)
  333. end
  334.  
  335. function clerp(a,b,t)
  336. local qa = {QuaternionFromCFrame(a)}
  337. local qb = {QuaternionFromCFrame(b)}
  338. local ax, ay, az = a.x, a.y, a.z
  339. local bx, by, bz = b.x, b.y, b.z
  340. local _t = 1-t
  341. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  342. end
  343.  
  344. function QuaternionFromCFrame(cf)
  345. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  346. local trace = m00 + m11 + m22
  347. if trace > 0 then
  348. local s = math.sqrt(1 + trace)
  349. local recip = 0.5/s
  350. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  351. else
  352. local i = 0
  353. if m11 > m00 then
  354. i = 1
  355. end
  356. if m22 > (i == 0 and m00 or m11) then
  357. i = 2
  358. end
  359. if i == 0 then
  360. local s = math.sqrt(m00-m11-m22+1)
  361. local recip = 0.5/s
  362. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  363. elseif i == 1 then
  364. local s = math.sqrt(m11-m22-m00+1)
  365. local recip = 0.5/s
  366. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  367. elseif i == 2 then
  368. local s = math.sqrt(m22-m00-m11+1)
  369. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  370. end
  371. end
  372. end
  373.  
  374. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  375. local xs, ys, zs = x + x, y + y, z + z
  376. local wx, wy, wz = w*xs, w*ys, w*zs
  377. local xx = x*xs
  378. local xy = x*ys
  379. local xz = x*zs
  380. local yy = y*ys
  381. local yz = y*zs
  382. local zz = z*zs
  383. 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))
  384. end
  385.  
  386. function QuaternionSlerp(a, b, t)
  387. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  388. local startInterp, finishInterp;
  389. if cosTheta >= 0.0001 then
  390. if (1 - cosTheta) > 0.0001 then
  391. local theta = math.acos(cosTheta)
  392. local invSinTheta = 1/math.sin(theta)
  393. startInterp = math.sin((1-t)*theta)*invSinTheta
  394. finishInterp = math.sin(t*theta)*invSinTheta
  395. else
  396. startInterp = 1-t
  397. finishInterp = t
  398. end
  399. else
  400. if (1+cosTheta) > 0.0001 then
  401. local theta = math.acos(-cosTheta)
  402. local invSinTheta = 1/math.sin(theta)
  403. startInterp = math.sin((t-1)*theta)*invSinTheta
  404. finishInterp = math.sin(t*theta)*invSinTheta
  405. else
  406. startInterp = t-1
  407. finishInterp = t
  408. end
  409. end
  410. 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
  411. end
  412.  
  413. local function CFrameFromTopBack(at, top, back)
  414. local right = top:Cross(back)
  415. return CFrame.new(at.x, at.y, at.z,
  416. right.x, top.x, back.x,
  417. right.y, top.y, back.y,
  418. right.z, top.z, back.z)
  419. end
  420.  
  421. local bodvel=Instance.new("BodyVelocity")
  422. local bg=Instance.new("BodyGyro")
  423.  
  424. function swait(num)
  425. if num==0 or num==nil then
  426. game:service'RunService'.Stepped:wait(0)
  427. else
  428. for i=0,num do
  429. game:service'RunService'.Stepped:wait(0)
  430. end
  431. end
  432. end
  433.  
  434. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  435. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  436. end
  437.  
  438. attach = Instance.new("Attachment")
  439. attach.Position = Vector3.new(0,Character["Left Leg"].Size.Y/2,0)
  440. attach.Parent = Character["Left Leg"]
  441. attach2 = Instance.new("Attachment")
  442. attach2.Position = Vector3.new(0,-Character["Left Leg"].Size.Y/2,0)
  443. attach2.Parent = Character["Left Leg"]
  444. trail = Instance.new("Trail")
  445. trail.LightEmission = 1
  446. trail.Color = ColorSequence.new(color)
  447. trail.Transparency = NumberSequence.new({
  448. NumberSequenceKeypoint.new(0,0),
  449. NumberSequenceKeypoint.new(0.5,0),
  450. NumberSequenceKeypoint.new(1,1)
  451. })
  452. trail.Lifetime = 0.5
  453. trail.Parent = Character["Left Leg"]
  454. trail.Attachment0 = attach
  455. trail.Attachment1 = attach2
  456.  
  457. aattach = Instance.new("Attachment")
  458. aattach.Position = Vector3.new(0,Character["Right Leg"].Size.Y/2,0)
  459. aattach.Parent = Character["Right Leg"]
  460. aattach2 = Instance.new("Attachment")
  461. aattach2.Position = Vector3.new(0,-Character["Right Leg"].Size.Y/2,0)
  462. aattach2.Parent = Character["Right Leg"]
  463. atrail = Instance.new("Trail")
  464. atrail.LightEmission = 1
  465. atrail.Color = ColorSequence.new(color)
  466. atrail.Transparency = NumberSequence.new({
  467. NumberSequenceKeypoint.new(0,0),
  468. NumberSequenceKeypoint.new(0.5,0),
  469. NumberSequenceKeypoint.new(1,1)
  470. })
  471. atrail.Lifetime = 0.5
  472. atrail.Parent = Character["Right Leg"]
  473. atrail.Attachment0 = aattach
  474. atrail.Attachment1 = aattach2
  475.  
  476. Character.Humanoid.Animator.Parent = nil
  477.  
  478. atttack = false
  479.  
  480. function pulse(charge)
  481. bv = Instance.new("BodyVelocity")
  482. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  483. bv.Velocity = owner.Character.Torso.CFrame.lookVector * (500+ charge) + Vector3.new(0,200,0)
  484. bv.Parent = Character.HumanoidRootPart
  485. Pt2:Emit(math.random(200,300))
  486. wait(.1)
  487. bv.Parent = nil
  488. atttack = false
  489. end
  490.  
  491. local transfor = false
  492.  
  493. function blight()
  494. ORGID = 2102705685
  495. kan.TimePosition = 0
  496. owner.Character.Torso.Anchored = true
  497. ball = Instance.new("Part")
  498. ballme = Instance.new("SpecialMesh")
  499. ballme.MeshType = "Sphere"
  500. ballme.Parent = ball
  501. ball.Anchored = true
  502. ball.Material = "Neon"
  503. ball.Size = Vector3.new(.1,.1,.1)
  504. ball.CanCollide = false
  505. ball.Transparency = 1
  506. ball.Color = Color3.new(1,1,0.7)
  507. ball.CFrame = owner.Character.Torso.CFrame
  508. ball.Parent = script
  509. local TweenService = game:GetService("TweenService")
  510.  
  511. local goal = {}
  512. goal.Size = Vector3.new(1000, 1000, 1000)
  513. goal.Color = Color3.new(0, 0, 0)
  514. goal.Transparency = 1
  515. goal.CFrame = (ball.CFrame*CFrame.Angles(0,-200,0))
  516. local tweenInfo = TweenInfo.new(
  517. 2, -- Time
  518. Enum.EasingStyle.Quint, -- EasingStyle
  519. Enum.EasingDirection.InOut, -- EasingDirection
  520. 0, -- RepeatCount (when less than zero the tween will loop indefinitely)
  521. false, -- Reverses (tween will reverse once reaching it's goal)
  522. 0 -- DelayTime
  523. )
  524.  
  525. local tween = TweenService:Create(ball, tweenInfo, goal)
  526.  
  527. local goal2 = {}
  528. goal2.Size = Vector3.new(10, 10, 10)
  529. goal2.Color = Color3.new(1, 0, 0)
  530. goal2.Transparency = 0.1
  531. goal2.CFrame = (ball.CFrame*CFrame.Angles(0,100,0))
  532. local tweenInfo2 = TweenInfo.new(
  533. 17.9, -- Time
  534. Enum.EasingStyle.Quint, -- EasingStyle
  535. Enum.EasingDirection.InOut, -- EasingDirection
  536. 0, -- RepeatCount (when less than zero the tween will loop indefinitely)
  537. false, -- Reverses (tween will reverse once reaching it's goal)
  538. 0 -- DelayTime
  539. )
  540.  
  541. local tween2 = TweenService:Create(ball, tweenInfo2, goal2)
  542. attack = true
  543. transfor = true
  544. tween2:Play()
  545. wait(17.9)
  546. owner.Character.Torso.Anchored = false
  547. tween:Play()
  548. for _,v in pairs(owner.Character:GetChildren()) do
  549. if v:FindFirstChild("Darkkk") then
  550. v.Darkkk.Rate = 100
  551. end
  552. end
  553. Ptaa.Rate = 250
  554. Ptaa1.Rate = 500
  555. color = Color3.new(0.2,0,0)
  556. trail.LightEmission = 0
  557. atrail.LightEmission = 0
  558. Pt.LightEmission = 0
  559. Pt2.LightEmission = 0
  560. dark = true
  561. attack = false
  562. transfor = false
  563. end
  564.  
  565.  
  566. Character.Humanoid.WalkSpeed = 20
  567. runni = false
  568.  
  569. Mouse.KeyDown:Connect(function(key)
  570. if transfor == true then return end
  571. if key == "z" then
  572. if atttack == false then
  573. hold = true
  574. atttack = true
  575. charg = 0
  576. repeat
  577. if not dark then
  578. charg = charg + 1
  579. else
  580. charg = charg + 10
  581. end
  582. inf.Text = "Pulse power: "..charg
  583. swait(.5)
  584. until hold == false or charg >= 400
  585. inf.Text = ""
  586. pulse(charg)
  587. end
  588. elseif key == "p" then
  589. blight()
  590. elseif key == "q" and runni == false then
  591. runni = true
  592. if not dark then
  593. Character.Humanoid.WalkSpeed = 100
  594. Character.Humanoid.JumpPower = 200
  595. else
  596. Character.Humanoid.WalkSpeed = 500
  597. Character.Humanoid.JumpPower = 700
  598. end
  599. atrail.Lifetime = 0.5
  600. trail.Lifetime = 0.5
  601. elseif key == "q" and runni == true then
  602. runni = false
  603. if not dark then
  604. Character.Humanoid.WalkSpeed = 20
  605. Character.Humanoid.JumpPower = 50
  606. else
  607. Character.Humanoid.WalkSpeed = 200
  608. Character.Humanoid.JumpPower = 300
  609. end
  610. atrail.Lifetime = .5
  611. trail.Lifetime = .5
  612. elseif key == "x" then
  613. hold = true
  614. while hold == true do
  615. Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 10
  616. atrail.Lifetime = atrail.Lifetime + 0.1
  617. trail.Lifetime = trail.Lifetime + 0.1
  618. wait()
  619. end
  620. elseif key == "c" then
  621. hold = true
  622. while hold == true do
  623. fallgently.Parent = Character.HumanoidRootPart
  624. Pt.Rate = 300
  625. wait()
  626. end
  627. fallgently.Parent = nil
  628. Pt.Rate = 0
  629. end
  630. end)
  631.  
  632. Mouse.KeyUp:Connect(function()
  633. hold = false
  634. end)
  635.  
  636. idleanim=.4
  637. while true do
  638. swait()
  639. if muter == false then
  640. kan.Volume = ORVOL
  641. else
  642. kan.Volume = 0
  643. end
  644. atrail.Color = ColorSequence.new(color)
  645. trail.Color = ColorSequence.new(color)
  646. Pt.Color = ColorSequence.new(color)
  647. Pt2.Color = ColorSequence.new(color)
  648. kan.PlaybackSpeed = ORPIT
  649. kan.Pitch = ORPIT
  650. kan.SoundId = "rbxassetid://" ..ORGID
  651. kan.Looped = true
  652. kan.Parent = plr.Character.Head
  653. kan:Resume()
  654. sine = sine + change
  655. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  656. local velderp=RootPart.Velocity.y
  657. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  658. if equipped==true or equipped==false then
  659. if attack==false then
  660. idle=idle+1
  661. else
  662. idle=0
  663. end
  664. if idle>=500 then
  665. --stuff
  666. end
  667. if RootPart.Velocity.y > 1 and hitfloor==nil then
  668. Anim="Jump"
  669. if attack==false then
  670. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  671. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  674. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  675. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  676. end
  677. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  678. Anim="Fall"
  679. if attack==false then
  680. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  681. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  684. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  685. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  686. end
  687. elseif torvel<1 and hitfloor~=nil then
  688. Anim="Idle"
  689. if attack==false then
  690. if equipped == false then
  691. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  692. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  695. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  696. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  697. else
  698. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(0 - 6 * math.cos(sine / 40)),math.rad(-6 + 2 * math.cos(sine / 20) - 6 * math.cos(sine / 40))),.1)
  699. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(10 - 6 * math.cos(sine / 40)),math.rad(3 - 2 * math.cos(sine / 20) - 3 * math.cos(sine / 40))),.1)
  700. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.06 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(-20 + 6 * math.cos(sine / 40))),.1)
  701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6),math.rad(0 - 2 * math.cos(sine / 42)),math.rad(20 - 6 * math.cos(sine / 40))),.1)
  702. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(13 + 3 * math.cos(sine / 26)),math.rad(-20 - 3 * math.cos(sine / 24)),math.rad(-20 - 5 * math.cos(sine / 34))),.1)
  703. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(13 - 3 * math.cos(sine / 25)),math.rad(10 + 3 * math.cos(sine / 24)),math.rad(10 + 5 * math.cos(sine / 34))),.1)
  704. end
  705. end
  706. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  707. Anim="Walk"
  708. if attack==false then
  709. if equipped == false then
  710. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  711. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 45 * math.cos(sine / 8))),.1)
  712. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 8))),.1)
  714. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  715. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  716. else
  717. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 60 * math.cos(sine / 8))),.1)
  718. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 60 * math.cos(sine / 8))),.1)
  719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,0 + 0.15 * math.cos(sine / 4))*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(-10 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5 + 3 * math.cos(sine / 57)),math.rad(10 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  721. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(-10),math.rad(0),math.rad(15 - 2 * math.cos(sine / 34))),.1)
  722. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  723. end
  724. end
  725. elseif torvel>=42 and hitfloor~=nil then
  726. Anim="Run"
  727. if attack==false then
  728. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.5)))
  729. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.5 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.5)))
  730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.5)))
  731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.25)))
  732. RW.C0=clerp(RW.C0,cf(1.5,.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 100 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.5)))
  733. LW.C0=clerp(LW.C0,cf(-1.5,.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 100 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1 + (math.clamp((Character.Humanoid.WalkSpeed/200), 0.1, 0.5)))
  734. end
  735. end
  736. end
  737. end
Add Comment
Please, Sign In to add comment