Advertisement
HenloMyDude

Ultima

Nov 14th, 2019
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.49 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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
  6.  
  7. plr = owner
  8. plrgui = plr.PlayerGui
  9. mouse = plr:GetMouse()
  10. char = plr.Character
  11. anim = char.Humanoid.Animator
  12. tors = char.Torso
  13. root = char.HumanoidRootPart
  14. rootj = root.RootJoint
  15. rootjnor = rootj.C0
  16. attack = false
  17. size = 1
  18.  
  19. Debris = game:GetService("Debris")
  20. pose = "Idle"
  21. IT = Instance.new
  22. BrickC = BrickColor.new
  23. Cos = math.cos
  24. Acos = math.acos
  25. VT = Vector3.new
  26. CF = CFrame.new
  27. Rad = math.rad
  28. ray = Ray.new
  29. sine = 0
  30.  
  31. function spark(cf)
  32. local ball = Instance.new("Part",char)
  33. ball.Shape = "Ball"
  34. ball.Material = "Neon"
  35. ball.BrickColor = BrickColor.new("Cyan")
  36. ball.Size = Vector3.new(14, 14, 14)
  37. ball.Transparency = 0.5
  38. ball.CFrame = cf
  39. ball.Anchored = true
  40. ball.CanCollide = false
  41. coroutine.resume(coroutine.create(function()
  42. for i = 1,50 do
  43. Swait()
  44. ball.Size = ball.Size:Lerp(Vector3.new(0, 0, 0), 0.075)
  45. ball.Transparency = ball.Transparency + 0.025
  46. end
  47. ball:remove()
  48. end))
  49. end
  50.  
  51. function spark2(cf)
  52. local ball = Instance.new("Part",char)
  53. ball.Shape = "Ball"
  54. ball.Material = "Neon"
  55. ball.BrickColor = BrickColor.new("Cyan")
  56. ball.Size = Vector3.new(0, 0, 0)
  57. ball.Transparency = 0.5
  58. ball.CFrame = cf
  59. ball.Anchored = true
  60. ball.CanCollide = false
  61. coroutine.resume(coroutine.create(function()
  62. for i = 1,50 do
  63. Swait()
  64. ball.Size = ball.Size:Lerp(Vector3.new(14, 14, 14), 0.075)
  65. ball.Transparency = ball.Transparency + 0.025
  66. end
  67. ball:remove()
  68. end))
  69. end
  70.  
  71. function cb(cframe)
  72. local ah = Instance.new("Model",char)
  73. ah.Name = "1ExtraEffectComingRightUpSir!"
  74. local blast = Instance.new("Part",ah)
  75. blast.CanCollide = false
  76. blast.Anchored = true
  77. blast.CFrame = cframe
  78. blast.Size = Vector3.new(1, 1, 3)
  79. blast.BrickColor = BrickColor.random()
  80. blast.Material = "SmoothPlastic"
  81. local sphere = Instance.new("SpecialMesh",blast)
  82. sphere.MeshType = "Sphere"
  83. blast.CFrame = blast.CFrame * CFrame.new(0, -0.75, 0)
  84. coroutine.resume(coroutine.create(function()
  85. for i = 1,35 do
  86. Swait()
  87. blast.Size = blast.Size:Lerp(Vector3.new(0.5, 0.5, 3), 0.15)
  88. blast.CanCollide = false
  89. blast.Anchored = true
  90. blast.Transparency = blast.Transparency + 0.025
  91. blast.CFrame = blast.CFrame * CFrame.new(0, -0.1, 0)
  92. end
  93. ah:remove()
  94. end))
  95. end
  96.  
  97. raycast = function(pos, direct, range, decendants)
  98. return workspace:FindPartOnRay(ray(pos, direct.unit * range), decendants)
  99. end
  100.  
  101. ezweld = function(p, a, b, cf)
  102. local weld = Instance.new("Weld",p)
  103. weld.Part0 = a
  104. weld.Part1 = b
  105. weld.C0 = cf
  106. return weld
  107. end
  108.  
  109. clerp = function(toclerp, cf, number)
  110. local joint = toclerp
  111. joint.C0 = joint.C0:Lerp(cf, number)
  112. end
  113.  
  114. clerp2 = function(toclerp, cf)
  115. local joint = toclerp
  116. joint.C0 = cf
  117. end
  118.  
  119. Swait,swait = function(number)
  120. if number == 0 or number == nil then
  121. game:GetService("RunService").Heartbeat:Wait()
  122. else
  123. for i = 1,number do
  124. game:GetService("RunService").Heartbeat:Wait()
  125. end
  126. end
  127. end
  128.  
  129. NewSound = function(p, id, pit, vol, loop)
  130. local Sound = Instance.new("Sound",p)
  131. Sound.Pitch = pit
  132. Sound.Volume = vol
  133. Sound.SoundId = "rbxassetid://" ..id
  134. Sound.Looped = loop
  135. Sound:Play()
  136. return Sound
  137. end
  138.  
  139. physics = true
  140.  
  141. function thunder(pos)
  142. local last = nil
  143. for i = 1,15 do
  144. if last == nil then
  145. local blast = Instance.new("Part",char)
  146. blast.CanCollide = false
  147. blast.Anchored = true
  148. blast.Position = pos
  149. blast.CFrame = blast.CFrame * CFrame.Angles(math.rad(math.random(-7, 7)),math.rad(math.random(-8, 8)),math.rad(math.random(-7, 7)))
  150. blast.CFrame = blast.CFrame * CFrame.new(0, -2.5, 0)
  151. blast.Size = Vector3.new(1.5, 5, 1)
  152. blast.BrickColor = BrickColor.new("New Yeller")
  153. blast.Material = "Neon"
  154. NewSound(tors, 1776706665, 1, 5, false)
  155. blast.Touched:connect(function(hit)
  156. if physics == true and hit.Parent ~= char then
  157. hit.Anchored = false
  158. hit.CanCollide = true
  159. hit:BreakJoints()
  160. end
  161. end)
  162. coroutine.resume(coroutine.create(function()
  163. for i = 1,35 do
  164. Swait()
  165. blast.Size = blast.Size:Lerp(Vector3.new(0.5, 5, 0.5), 0.15)
  166. blast.CanCollide = false
  167. blast.Anchored = true
  168. blast.Transparency = blast.Transparency + 0.025
  169. end
  170. blast:remove()
  171. end))
  172. last = blast
  173. else
  174. local blast = Instance.new("Part",char)
  175. blast.CanCollide = false
  176. blast.Anchored = true
  177. blast.CFrame = last.CFrame * CFrame.new() * CFrame.Angles(math.rad(math.random(-7, 7)),math.rad(math.random(-8, 8)),math.rad(math.random(-7, 7)))
  178. blast.CFrame = blast.CFrame * CFrame.new(0, 5, 0)
  179. blast.Size = Vector3.new(1.5, 5, 1.5)
  180. blast.BrickColor = BrickColor.new("New Yeller")
  181. blast.Material = "Neon"
  182. coroutine.resume(coroutine.create(function()
  183. for i = 1,100 do
  184. Swait()
  185. blast.Size = blast.Size:Lerp(Vector3.new(0.5, 5, 0.5), 0.15)
  186. blast.CanCollide = false
  187. blast.Anchored = true
  188. blast.Transparency = blast.Transparency + 0.025
  189. end
  190. blast:remove()
  191. end))
  192. last = blast
  193. end
  194. end
  195. end
  196.  
  197. AddSphere = function(p, material, size, transparency, collide, color, weldto, weldc0)
  198. local Sphere = Instance.new("Part",p)
  199. Sphere.Massless = true
  200. Sphere.Shape = "Ball"
  201. Sphere.Size = Vector3.new(size, size, size)
  202. Sphere.Material = material
  203. Sphere.Transparency = transparency
  204. Sphere.CanCollide = collide
  205. Sphere.Anchored = false
  206. Sphere.BrickColor = BrickColor.new(color)
  207. local Joint = ezweld(Sphere, Sphere, weldto, weldc0)
  208. return Sphere
  209. end
  210.  
  211. function MeshType(parent, mtype)
  212. Instance.new("SpecialMesh",parent).MeshType = mtype
  213. end
  214.  
  215. AddSphere2 = function(p, pos, material, size, transparency, collide, color, weldto, weldc0)
  216. local Sphere = Instance.new("Part",p)
  217. Sphere.Massless = true
  218. Sphere.Size = size
  219. Sphere.Position = pos
  220. Sphere.Material = material
  221. Sphere.Transparency = transparency
  222. Sphere.CanCollide = collide
  223. Sphere.Anchored = false
  224. Sphere.BrickColor = BrickColor.new(color)
  225. MeshType(Sphere, "Sphere")
  226. local Joint = ezweld(Sphere, Sphere, weldto, weldc0)
  227. return Sphere
  228. end
  229.  
  230. SphereEffect = function(p, material, size, transparency, endsize, speed, endtrans, color, pos)
  231. local Sphere = Instance.new("Part",p)
  232. Sphere.Shape = "Ball"
  233. Sphere.Size = Vector3.new(size, size, size)
  234. Sphere.Material = material
  235. Sphere.Transparency = transparency
  236. Sphere.CanCollide = false
  237. Sphere.Position = pos
  238. Sphere.Anchored = true
  239. Sphere.BrickColor = BrickColor.new(color)
  240. for i = 1,8 do
  241. Swait()
  242. Sphere.Size = Sphere.Size + Vector3.new(speed, speed, speed)
  243. Sphere.Transparency = Sphere.Transparency + speed
  244. end
  245. Sphere:Destroy()
  246. end
  247.  
  248. AddDecal = function(p, texture, trans, face)
  249. local Image = Instance.new("Decal",p)
  250. Image.Texture = "rbxassetid://" ..texture
  251. Image.Transparency = trans
  252. Image.Face = face
  253. return Image
  254. end
  255.  
  256. function EditDecal(image, texture)
  257. local Image = image
  258. Image.Texture = "rbxassetid://" ..texture
  259. end
  260.  
  261. EditSize = function(p, x, y, z)
  262. local Part = p
  263. if Part then
  264. Part.Parent = Part.Parent
  265. Part.Size = Vector3.new(x, y, z)
  266. end
  267. end
  268.  
  269. AddSize = function(p, x, y, z)
  270. local Part = p
  271. if Part then
  272. Part.Parent = Part.Parent
  273. Part.Size = Part.Size + Vector3.new(x, y, z)
  274. end
  275. end
  276.  
  277. Rotate = function(p, cf)
  278. local Part = p
  279. if Part then
  280. Part.Parent = Part.Parent
  281. Part.Orientation = cf
  282. end
  283. end
  284.  
  285. Model = function(p, name)
  286. local NewModel = Instance.new("Model",p)
  287. NewModel.Name = name
  288. return NewModel
  289. end
  290.  
  291. Invis = function(p)
  292. for _,v in pairs (p:children()) do
  293. if v:IsA("Part") or v:IsA("MeshPart") then
  294. v.Transparency = 1
  295. v.Name = v.Name
  296. v.Size = v.Size
  297. if v.Name == "Head" then
  298. for _,v in pairs (v:children()) do
  299. if v:IsA("Decal") then
  300. v.Name = "owned"
  301. v:Destroy()
  302. end
  303. end
  304. end
  305. end
  306. if v:IsA("Hat") or v:IsA("Accessory") then
  307. local Handle = v:FindFirstChild("Handle") -- Keeping the hat but hiding it from view
  308. if Handle then
  309. Handle.Name = "NotHandle"
  310. Handle.Size = Vector3.new(0.0001, 0.0001, 0.0001)
  311. Handle.Transparency = 1
  312. end
  313. end
  314. end
  315. end
  316.  
  317. Invis(char)
  318. local IntroModel = Model(char, "IntroModel")
  319. local IBall = AddSphere(IntroModel, "Neon", 15, 0.8, false, "White", tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0))
  320. local CharacterModel = Model(nil, "CharacterModel")
  321. local TorsoM = Model(CharacterModel, "TorsoModel")
  322. local Eyeball = AddSphere(TorsoM, "Granite", 13, 0.3, false, "Navy blue", tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0))
  323. local Eyeball2 = AddSphere(TorsoM, "SmoothPlastic", 4, 0, false, "Really black", Eyeball, CFrame.new(0, 0, 13 / 2.25))
  324. local eyb = Eyeball2.Weld
  325. local eybnor = eyb.C0
  326. local Pupil = AddSphere2(TorsoM, tors.Position, "SmoothPlastic", Vector3.new(1, 3, 3), 0, false, "Really red", Eyeball2, CFrame.new(0, 0, 4 / 5.5))
  327. local plw = Pupil.Weld
  328. local plnor = plw.C0
  329. local Particle = Instance.new("ParticleEmitter",Eyeball)
  330. Particle.Rate = 20
  331. Particle.Size = NumberSequence.new(2, 2)
  332. --Particle.Texture = ""
  333. Particle.Speed = NumberRange.new(7)
  334. Particle.RotSpeed = NumberRange.new(10)
  335. Particle.Enabled = false
  336. Particle.Acceleration = Vector3.new(0, 0, 0)
  337. Particle.EmissionDirection = "Back"
  338. Particle.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Eyeball.Color),ColorSequenceKeypoint.new(1,Eyeball.Color)})
  339. Particle.Texture = "http://www.roblox.com/asset/?id=3111971242"
  340.  
  341. local MainTheme = NewSound(root, 3574221273, 1, 4, true)
  342.  
  343. local intro = true
  344.  
  345. plr.Chatted:connect(function(msg)
  346. if msg == "!skip" then
  347. intro = false
  348. end
  349. end)
  350.  
  351. for i = 1,16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 do
  352. if intro == true then
  353. Swait()
  354. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 0 * Cos(sine / 12)), 0.15)
  355. IBall.Transparency = IBall.Transparency - 0.00125 / 20
  356. end
  357. end
  358. for i = 1,125 do
  359. if intro == true then
  360. Swait()
  361. cb(IBall.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))))
  362. end
  363. end
  364.  
  365. IntroModel.Parent = nil
  366. CharacterModel.Parent = char
  367. current = "none"
  368.  
  369. skybox = Instance.new("Part",char)
  370. skybox.Size = Vector3.new(0,0,0)
  371. skybox.Anchored = true
  372. skybox.CanCollide = true
  373. skyboxmesh = Instance.new("SpecialMesh",skybox)
  374. skyboxmesh.MeshId = "http://www.roblox.com/asset/?id=1527559"
  375. skyboxmesh.TextureId = "http://www.roblox.com/asset/?id=1529455"
  376. skyboxmesh.VertexColor = Vector3.new(0.568627, 0.207843, 0.6)
  377. skyboxmesh.Scale = Vector3.new(-3000,-1000,-3000)
  378.  
  379. function lightning()
  380. attack = true
  381. for i = 1,12 do
  382. Swait()
  383. clerp(rootj, rootjnor * CFrame.new(0, -1, 17 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
  384. clerp(eyb, eybnor, 0.15)
  385. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  386. end
  387. spark(Eyeball.CFrame)
  388. for i = 1,10 do
  389. Swait()
  390. for i,v in pairs (TorsoM:children()) do
  391. if v:IsA("Part") then
  392. v.Transparency = v.Transparency + 0.35
  393. end
  394. end
  395. end
  396. for i = 1,8 do
  397. Swait()
  398. clerp(rootj, rootjnor * CFrame.new(0, -1, 50 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.6)
  399. clerp(eyb, eybnor, 0.15)
  400. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  401. end
  402. thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
  403. wait(.5)
  404. thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
  405. wait(.5)
  406. thunder(mouse.Hit.p + Vector3.new(0, 4.5, 0))
  407. spark2(Eyeball.CFrame)
  408. for i = 1,10 do
  409. Swait()
  410. for i,v in pairs (TorsoM:children()) do
  411. if v:IsA("Part") then
  412. v.Transparency = v.Transparency - 0.35
  413. end
  414. end
  415. end
  416. attack = false
  417. end
  418.  
  419. function redfade(model)
  420. for i,v in pairs (model:children()) do
  421. if v:IsA("Part") and model ~= char or v:IsA("MeshPart") and model ~= char then
  422. coroutine.resume(coroutine.create(function()
  423. v.Transparency = 1
  424. v.Anchored = true
  425. local clone = v:Clone()
  426. clone.Parent = workspace
  427. clone.Position = v.Position
  428. clone.CanCollide = false
  429. clone.Locked = true
  430. clone.Anchored = true
  431. clone.Transparency = 0
  432. clone.Material = "Neon"
  433. clone.BrickColor = BrickColor.new("Persimmon")
  434. Debris:AddItem(clone, 2)
  435. for i = 1,150 do
  436. Swait()
  437. clone.Transparency = clone.Transparency + 0.01
  438. end
  439. clone:remove()
  440. v:remove()
  441. end))
  442. end
  443. end
  444. end
  445.  
  446. function pillar()
  447. attack = true
  448. for i = 1,25 do
  449. Swait()
  450. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, 0), 0.125)
  451. clerp(eyb, eybnor, 0.15)
  452. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  453. end
  454. local pillar = Instance.new("Part",script)
  455. pillar.Shape = "Cylinder"
  456. pillar.Size = Vector3.new(2.5, 60, 60)
  457. pillar.CanCollide = false
  458. pillar.Orientation = Vector3.new(0, 0, -90)
  459. pillar.BrickColor = BrickColor.new("Persimmon")
  460. pillar.Material = "Neon"
  461. pillar.Anchored = true
  462. for i = 1,12 do
  463. Swait()
  464. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(50), 0, 0), 0.125)
  465. clerp(eyb, eybnor, 0.15)
  466. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  467. pillar.Position = mouse.Hit.p
  468. end
  469. pillar.Touched:connect(function(hit)
  470. local duddy = hit.Parent
  471. if duddy ~= char and duddy:FindFirstChild("Torso") or duddy ~= char and duddy:FindFirstChild("UpperTorso") then
  472. if duddy ~= TorsoM then
  473. redfade(duddy)
  474. end
  475. end
  476. end)
  477. NewSound(pillar, 1295409698, 1, 10, false)
  478. Eyeball2.Material = "Neon"
  479. Eyeball2.BrickColor = BrickColor.new("Really blue")
  480. Pupil.Material = "Neon"
  481. for i = 1,50 do
  482. Swait()
  483. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
  484. clerp(eyb, eybnor, 0.15)
  485. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  486. pillar.Size = pillar.Size:Lerp(Vector3.new(150, 60, 60), 0.15)
  487. end
  488. for i = 1,12 do
  489. Swait()
  490. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-50), 0, 0), 0.125)
  491. clerp(eyb, eybnor, 0.15)
  492. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  493. pillar.Size = pillar.Size:Lerp(Vector3.new(2.5, 60, 60), 0.15)
  494. end
  495. Eyeball2.Material = "SmoothPlastic"
  496. Eyeball2.BrickColor = BrickColor.new("Really black")
  497. Pupil.Material = "SmoothPlastic"
  498. pillar:remove()
  499. attack = false
  500. end
  501.  
  502. function dash()
  503. attack = true
  504. local bv = Instance.new("BodyVelocity",char)
  505. coroutine.resume(coroutine.create(function()
  506. repeat
  507. Swait()
  508. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, 0), 0.125)
  509. clerp(eyb, eybnor, 0.15)
  510. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  511. bv.MaxForce = Vector3.new(9999, 9999, 9999)
  512. bv.Velocity = root.CFrame.lookVector * 75
  513. until attack == false
  514. end))
  515. coroutine.resume(coroutine.create(function()
  516. local ring = Instance.new("Part",char)
  517. ring.Anchored = true
  518. ring.Material = "Neon"
  519. ring.BrickColor = BrickColor.new("Really blue")
  520. ring.CanCollide = false
  521. ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
  522. ring.Size = Vector3.new(0.1, 0.1, 0.1)
  523. ring.Transparency = 0.2
  524. local mesh = Instance.new("SpecialMesh",ring)
  525. mesh.MeshId = "rbxassetid://750104831"
  526. mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
  527. for i = 1,25 do
  528. Swait()
  529. ring.Transparency = ring.Transparency + 0.045
  530. mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
  531. end
  532. ring:remove()
  533. local ring = Instance.new("Part",char)
  534. ring.Anchored = true
  535. ring.Material = "Neon"
  536. ring.BrickColor = BrickColor.new("Really blue")
  537. ring.CanCollide = false
  538. ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
  539. ring.Size = Vector3.new(0.1, 0.1, 0.1)
  540. ring.Transparency = 0.2
  541. local mesh = Instance.new("SpecialMesh",ring)
  542. mesh.MeshId = "rbxassetid://750104831"
  543. mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
  544. for i = 1,25 do
  545. Swait()
  546. ring.Transparency = ring.Transparency + 0.015
  547. mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
  548. end
  549. ring:remove()
  550. local ring = Instance.new("Part",char)
  551. ring.Anchored = true
  552. ring.Material = "Neon"
  553. ring.BrickColor = BrickColor.new("Really blue")
  554. ring.CanCollide = false
  555. ring.CFrame = root.CFrame * CFrame.Angles(0, 0, Rad(180))
  556. ring.Size = Vector3.new(0.1, 0.1, 0.1)
  557. ring.Transparency = 0.2
  558. local mesh = Instance.new("SpecialMesh",ring)
  559. mesh.MeshId = "rbxassetid://750104831"
  560. mesh.Scale = Vector3.new(0.05, 0.001, 0.05)
  561. for i = 1,25 do
  562. Swait()
  563. ring.Transparency = ring.Transparency + 0.015
  564. mesh.Scale = mesh.Scale:Lerp(Vector3.new(0.7, 0.002, 0.7), 0.05)
  565. end
  566. ring:remove()
  567. attack = false
  568. bv:remove()
  569. end))
  570. end
  571.  
  572. local gv = Instance.new("StringValue",char)
  573. local pv = Instance.new("StringValue",char)
  574.  
  575. function grab()
  576. if current == "none" then
  577. local target = mouse.Target
  578. if target then
  579. local dud = target.Parent
  580. gv.Parent = dud
  581. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
  582. if torso then
  583. attack = true
  584. current = "grabbed"
  585. for i = 1,20 do
  586. Swait()
  587. torso.CFrame = Eyeball.CFrame * CFrame.new(0, 2, 5) * CFrame.Angles(0, Rad(180), Rad(45))
  588. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-30), 0, 0), 0.15)
  589. clerp(eyb, eybnor, 0.15)
  590. clerp(plw, plnor * CFrame.new(0, 0.25 + 0.25 * Cos(sine / 12), 0), 0.15)
  591. end
  592. local thing = coroutine.resume(coroutine.create(function()
  593. repeat
  594. Swait()
  595. torso.Anchored = true
  596. torso.CFrame = Eyeball.CFrame * CFrame.new(0, 3, -14)
  597. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(-30), 0, 0), 0.15)
  598. clerp(eyb, eybnor, 0.15)
  599. clerp(plw, plnor, 0.15)
  600. until current == "none" and attack == false
  601. attack = false
  602. torso.Anchored = false
  603. end))
  604. end
  605. end
  606. end
  607. end
  608.  
  609. function launch()
  610. if current == "grabbed" then
  611. current = "none"
  612. attack = true
  613. local dud = gv.Parent
  614. if dud then
  615. gv.Parent = char
  616. pv.Value = ""
  617. gv.Value = ""
  618. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
  619. local hum = dud:FindFirstChildOfClass("Humanoid")
  620. if torso then
  621. attack = false
  622. torso.Anchored = false
  623. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p)
  624. local bv = Instance.new("BodyVelocity",torso)
  625. local a = math.huge
  626. bv.MaxForce = Vector3.new(a, a, a)
  627. bv.Velocity = torso.CFrame.lookVector * 200
  628. NewSound(torso, 278445103, 1, 5, false)
  629. Debris:AddItem(bv, 0.1)
  630. end
  631. if hum then
  632. hum.Sit = true
  633. end
  634. end
  635. end
  636. end
  637.  
  638. function drop()
  639. if current == "grabbed" then
  640. current = "none"
  641. attack = false
  642. local dud = gv.Parent
  643. if dud then
  644. gv.Parent = char
  645. pv.Value = ""
  646. gv.Value = ""
  647. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
  648. local hum = dud:FindFirstChildOfClass("Humanoid")
  649. if torso then
  650. attack = false
  651. torso.Anchored = false
  652. end
  653. end
  654. end
  655. end
  656.  
  657. function rip()
  658. if current == "grabbed" then
  659. current = "none"
  660. attack = true
  661. local dud = gv.Parent
  662. if dud then
  663. gv.Parent = char
  664. pv.Value = ""
  665. gv.Value = ""
  666. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
  667. for i,v in pairs (dud:children()) do
  668. if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("WedgePart") or v:IsA("TrussPart") then
  669. Swait(25)
  670. if v.Name ~= "Head" then
  671. v:BreakJoints()
  672. end
  673. torso.Anchored = true
  674. torso.CFrame = Eyeball.CFrame * CFrame.new(0, 3, -14)
  675. end
  676. end
  677. attack = false
  678. end
  679. end
  680. end
  681.  
  682. function slam()
  683. if current == "grabbed" then
  684. current = "none"
  685. attack = true
  686. local dud = gv.Parent
  687. if dud then
  688. gv.Parent = char
  689. pv.Value = ""
  690. gv.Value = ""
  691. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso") or char:FindFirstChild("T")
  692. if torso then
  693. coroutine.resume(coroutine.create(function()
  694. local tehweld = ezweld(torso, root, torso, CFrame.new(0, 0, 3) * CFrame.Angles(Rad(90), 0, 0))
  695. repeat
  696. Swait()
  697. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(30), 0, 0), 0.15)
  698. clerp(eyb, eybnor, 0.15)
  699. clerp(plw, plnor, 0.15)
  700. until attack == false or current == "grabbed"
  701. attack = false
  702. current = "none"
  703. tehweld:remove()
  704. end))
  705. for i = 1,30 do
  706. Swait()
  707. --torso.CFrame = root.CFrame * CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, Rad(90))
  708. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(Rad(30), 0, 0), 0.15)
  709. clerp(eyb, eybnor, 0.15)
  710. clerp(plw, plnor, 0.15)
  711. end
  712. attack = false
  713. end
  714. end
  715. end
  716. end
  717.  
  718. mouse.KeyDown:connect(function(key)
  719. if key == "e" and attack == false then
  720. lightning()
  721. end
  722. if key == "m" and attack == false then
  723. if current == "none" then
  724. grab()
  725. elseif current == "grabbed" then
  726. drop()
  727. end
  728. end
  729. if key == "b" and attack == true then
  730. launch()
  731. end
  732. if key == "n" and attack == true then
  733. slam()
  734. end
  735. if key == "v" and attack == true then
  736. rip()
  737. end
  738. if key == "t" and attack == false then
  739. dash()
  740. end
  741. if key == "r" and attack == false then
  742. pillar()
  743. end
  744. end)
  745.  
  746. while true do
  747. Swait()
  748. skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,Rad(0.5),0)
  749. sine = sine + 1
  750. anim.Parent = nil
  751. torsvel = (root.Velocity * VT(1, 0, 1)).magnitude
  752. torsverticalvel = root.Velocity.y
  753. hitfloor = raycast(root.Position, (CF(root.Position, root.Position + VT(0, -1, 0))).lookVector, 4*size, char)
  754. if torsvel < 1 and hitfloor ~= nil then
  755. pose = "Idle"
  756. Particle.Enabled = false
  757. if attack == false then
  758. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)), 0.15)
  759. clerp(eyb, eybnor, 0.15)
  760. clerp(plw, plnor * CFrame.new(0, 0.25 + 0.25 * Cos(sine / 12), 0), 0.15)
  761. end
  762. elseif torsvel > 1 and hitfloor ~= nil then
  763. pose = "Walk"
  764. Particle.Enabled = true
  765. if attack == false then
  766. clerp(rootj, rootjnor * CFrame.new(0, -1, 7 + 1 * Cos(sine / 12)), 0.15)
  767. clerp(eyb, eybnor, 0.15)
  768. clerp(plw, plnor * CFrame.new(0, 0, 0), 0.15)
  769. end
  770. elseif torsverticalvel > 1 and hitfloor == nil then
  771. pose = "Jump"
  772. Particle.Enabled = false
  773. if attack == false then
  774. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(-0.5, 0, 0), 0.15)
  775. end
  776. elseif torsverticalvel < 1 and hitfloor == nil then
  777. pose = "Fall"
  778. Particle.Enabled = false
  779. if attack == false then
  780. clerp(rootj, rootjnor * CFrame.new(0, 0, 7 + 1 * Cos(sine / 12)) * CFrame.Angles(-0.5, 0, 0), 0.15)
  781. end
  782. end
  783. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement