Advertisement
Ganz_the_Skeleton

Izuku R6 Version.

Sep 24th, 2018
768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.13 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,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={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=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 = game.Players.LocalPlayer
  8. char = plr.Character
  9. hrp = plr.Character.HumanoidRootPart
  10. mode = false
  11. tors = char.Torso
  12. m = plr:GetMouse()
  13. hum = char.Humanoid
  14. hum.MaxHealth = 5000000000000000000000000000000000000000000000000000000000000000000
  15. hum.WalkSpeed = 250
  16.  
  17. char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990"
  18. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1881875112"
  19. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2063781761"
  20. v3 = Vector3.new
  21. bc = BrickColor.new
  22. local Hair = Instance.new("Part",char)
  23. Hair.Size = Vector3.new(1,1,1)
  24. Hair.Material = "SmoothPlastic"
  25. Hair.BrickColor = BrickColor.new("Earth green")
  26. Hair.CanCollide = false
  27. local Hair2 = Instance.new("SpecialMesh",Hair)
  28. Hair2.MeshId = "rbxassetid://430343527"
  29. Hair2.Scale = Vector3.new(6.5,6.5,6.5)
  30. local Hair3 = Instance.new("Weld",Hair)
  31. Hair3.Part0 = char.Head
  32. Hair3.Part1 = Hair
  33. Hair3.C0 = CFrame.new(0.1,0.65,0.25)for i,v in pairs(char:children()) do
  34. if v:IsA("Hat") then
  35. v:Destroy()
  36. end
  37. end
  38. for i,v in pairs(char:children()) do
  39. if v:IsA("Accessory") then
  40. v:Destroy()
  41. end
  42. end
  43. for i,v in pairs(char:children()) do
  44. if v:IsA("Hair") then
  45. v:Destroy()
  46. end
  47. end
  48.  
  49. --This controls the framerate the script runs at. (make sure to keep it at 1/60 for 60 animation)
  50. --//====================================================\\--
  51. --|| TRAIL.... ( EDIT BY Penien23 )
  52. --\\====================================================//--
  53.  
  54. wait(0)
  55.  
  56. local p = game.Players.localPlayer
  57. local char = p.Character
  58. local mouse=p:GetMouse()
  59. local larm = char["Left Arm"]
  60. local rarm = char["Right Arm"]
  61. local lleg = char["Left Leg"]
  62. local rleg = char["Right Leg"]
  63. local torso = char.Torso
  64. local root = char.HumanoidRootPart
  65. local hed = char.Head
  66. ---------------------------------------------
  67.  
  68. local PE1 = Instance.new("ParticleEmitter",rleg)
  69. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  70. PE1.LightEmission = NumberSequence.new(0.2)
  71. PE1.Size = NumberSequence.new(1.2)
  72. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  73. PE1.Lifetime = NumberRange.new(.5)
  74. PE1.Rate = 10
  75. PE1.Transparency = NumberSequence.new(0.2)
  76. PE1.LightEmission = NumberSequence.new(0.2)
  77. PE1.Rotation = NumberRange.new(260)
  78. PE1.Speed = NumberRange.new(0)
  79. PE1.RotSpeed = NumberRange.new(100)
  80.  
  81. ----------------------------------------------------
  82. local PE1 = Instance.new("ParticleEmitter",rarm)
  83. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  84. PE1.LightEmission = NumberSequence.new(0.2)
  85. PE1.Size = NumberSequence.new(1.2)
  86. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  87. PE1.Lifetime = NumberRange.new(.5)
  88. PE1.Rate = 10
  89. PE1.Transparency = NumberSequence.new(0.2)
  90. PE1.LightEmission = NumberSequence.new(0.2)
  91. PE1.Rotation = NumberRange.new(260)
  92. PE1.Speed = NumberRange.new(0)
  93. PE1.RotSpeed = NumberRange.new(100)
  94. ---------------------------------------------
  95.  
  96. local PE1 = Instance.new("ParticleEmitter",lleg)
  97. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  98. PE1.LightEmission = NumberSequence.new(0.2)
  99. PE1.Size = NumberSequence.new(1.2)
  100. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  101. PE1.Lifetime = NumberRange.new(.5)
  102. PE1.Rate = 10
  103. PE1.Transparency = NumberSequence.new(0.2)
  104. PE1.LightEmission = NumberSequence.new(0.2)
  105. PE1.Rotation = NumberRange.new(260)
  106. PE1.Speed = NumberRange.new(0)
  107. PE1.RotSpeed = NumberRange.new(100)
  108. ---------------------------------------------
  109.  
  110. local PE1 = Instance.new("ParticleEmitter",larm)
  111. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  112. PE1.LightEmission = NumberSequence.new(0.2)
  113. PE1.Size = NumberSequence.new(1.2)
  114. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  115. PE1.Lifetime = NumberRange.new(.5)
  116. PE1.Rate = 10
  117. PE1.Transparency = NumberSequence.new(0.2)
  118. PE1.LightEmission = NumberSequence.new(0.2)
  119. PE1.Rotation = NumberRange.new(260)
  120. PE1.Speed = NumberRange.new(0)
  121. PE1.RotSpeed = NumberRange.new(100)
  122. ---------------------------------------------
  123.  
  124. local PE1 = Instance.new("ParticleEmitter",torso)
  125. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  126. PE1.LightEmission = NumberSequence.new(0.2)
  127. PE1.Size = NumberSequence.new(1.2)
  128. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  129. PE1.Lifetime = NumberRange.new(.5)
  130. PE1.Rate = 10
  131. PE1.Transparency = NumberSequence.new(0.2)
  132. PE1.LightEmission = NumberSequence.new(0.2)
  133. PE1.Rotation = NumberRange.new(260)
  134. PE1.Speed = NumberRange.new(0)
  135. PE1.RotSpeed = NumberRange.new(100)
  136. ---------------------------------------------
  137.  
  138. local PE1 = Instance.new("ParticleEmitter",head)
  139. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  140. PE1.LightEmission = NumberSequence.new(0.2)
  141. PE1.Size = NumberSequence.new(1.2)
  142. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  143. PE1.Lifetime = NumberRange.new(.5)
  144. PE1.Rate = 10
  145. PE1.Transparency = NumberSequence.new(0.2)
  146. PE1.LightEmission = NumberSequence.new(0.2)
  147. PE1.Rotation = NumberRange.new(260)
  148. PE1.Speed = NumberRange.new(0)
  149. PE1.RotSpeed = NumberRange.new(100)
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158. --
  159. local Player = game:GetService('Players').LocalPlayer
  160. repeat wait() until Player.Character
  161. local Character = Player.Character
  162.  
  163. --All The Settings for Trails in this Script
  164. TrailSettings = {
  165. Lifetime = 0.7,
  166. Texture = 'rbxassetid://31270182',
  167. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  168. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  169. Color2 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  170. AllBody = true,
  171. UpperBodyOnly = false,
  172. LowerBodyOnly = false,
  173. Accessories = false,
  174. Extras = true,
  175. R15 = false, --Change to true if you're using R15
  176. R15Parts = {
  177. 'UpperTorso',
  178. 'LowerTorso',
  179. }
  180. }
  181.  
  182. local Trail; --Making other Trails uses this in this Script
  183.  
  184. --UpperBody Function
  185. UpperBody = function()
  186. if TrailSettings.R15 == false then
  187. A0 = Instance.new('Attachment',Character.Torso)
  188. A1 = Instance.new('Attachment',Character.Head)
  189. A2 = Instance.new('Attachment',Character['Right Arm'])
  190. A3 = Instance.new('Attachment',Character['Left Arm'])
  191. Trail = Instance.new('Trail',Character)
  192. Trail.Attachment0 = A0
  193. Trail.Attachment1 = A1
  194. Trail.Texture = TrailSettings.Texture
  195. Trail.Color = TrailSettings.Color1
  196. Trail.Lifetime = TrailSettings.Lifetime
  197. local Trail2 = Trail:Clone()
  198. Trail2.Parent = Character
  199. Trail2.Attachment1 = A2
  200. local Trail3 = Trail:Clone()
  201. Trail3.Parent = Character
  202. Trail3.Attachment1 = A3
  203. local Trail6 = Trail:Clone()
  204. Trail6.Parent = Character
  205. Trail6.Attachment0 = A1
  206. Trail6.Attachment1 = A2
  207. local Trail7 = Trail:Clone()
  208. Trail7.Parent = Character
  209. Trail7.Attachment0 = A1
  210. Trail7.Attachment1 = A3
  211. else
  212. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  213. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  214. A1 = Instance.new('Attachment',Character.Head)
  215. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  216. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  217. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  218. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  219. Trail = Instance.new('Trail',Character)
  220. Trail.Attachment0 = A0
  221. Trail.Attachment1 = A1
  222. Trail.Texture = TrailSettings.Texture
  223. Trail.Color = TrailSettings.Color1
  224. Trail.Lifetime = TrailSettings.Lifetime
  225. local Trail2 = Trail:Clone()
  226. Trail2.Parent = Character
  227. Trail2.Attachment1 = A2
  228. local Trail3 = Trail:Clone()
  229. Trail3.Parent = Character
  230. Trail3.Attachment1 = A3
  231. local Trail6 = Trail:Clone()
  232. Trail6.Parent = Character
  233. Trail6.Attachment0 = A1
  234. Trail6.Attachment1 = A2
  235. local Trail7 = Trail:Clone()
  236. Trail7.Parent = Character
  237. Trail7.Attachment0 = A1
  238. Trail7.Attachment1 = A3
  239. --R15 Trails
  240. local Trail1R = Trail:Clone()
  241. Trail1R.Parent = Character
  242. Trail1R.Attachment1 = A2R
  243. local Trail2R = Trail:Clone()
  244. Trail2R.Parent = Character
  245. Trail2R.Attachment1 = A3R
  246. local Trail6R = Trail:Clone()
  247. Trail6.Parent = Character
  248. Trail6.Attachment0 = A1
  249. Trail6.Attachment1 = A2R
  250. local Trail7R = Trail:Clone()
  251. Trail7.Parent = Character
  252. Trail7.Attachment0 = A1
  253. Trail7.Attachment1 = A3R
  254. end
  255. end
  256.  
  257. --Lower Body Function
  258. LowerBody = function()
  259. if TrailSettings.R15 == false then
  260. A4 = Instance.new('Attachment',Character['Right Leg'])
  261. A5 = Instance.new('Attachment',Character['Left Leg'])
  262. local Trail4 = Trail:Clone()
  263. Trail4.Parent = Character
  264. Trail4.Attachment1 = A4
  265. local Trail5 = Trail:Clone()
  266. Trail5.Parent = Character
  267. Trail5.Attachment1 = A5
  268. local Trail8 = Trail:Clone()
  269. Trail8.Parent = Character
  270. Trail8.Attachment0 = A2
  271. Trail8.Attachment1 = A4
  272. Trail8.Color = TrailSettings.Color2
  273. local Trail9 = Trail:Clone()
  274. Trail9.Parent = Character
  275. Trail9.Attachment0 = A3
  276. Trail9.Attachment1 = A5
  277. Trail9.Color = TrailSettings.Color2
  278. local FT = Trail:Clone()
  279. FT.Parent = Character
  280. FT.Attachment0 = A4
  281. FT.Attachment1 = A5
  282. FT.Color = TrailSettings.Color2
  283. else
  284. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  285. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  286. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  287. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  288. local Trail4 = Trail:Clone()
  289. Trail4.Parent = Character
  290. Trail4.Attachment1 = A4
  291. local Trail5 = Trail:Clone()
  292. Trail5.Parent = Character
  293. Trail5.Attachment1 = A5
  294. local Trail8 = Trail:Clone()
  295. Trail8.Parent = Character
  296. Trail8.Attachment0 = A2
  297. Trail8.Attachment1 = A4
  298. Trail8.Color = TrailSettings.Color2
  299. local Trail9 = Trail:Clone()
  300. Trail9.Parent = Character
  301. Trail9.Attachment0 = A3
  302. Trail9.Attachment1 = A5
  303. Trail9.Color = TrailSettings.Color2
  304. local FT = Trail:Clone()
  305. FT.Parent = Character
  306. FT.Attachment0 = A4
  307. FT.Attachment1 = A5
  308. FT.Color = TrailSettings.Color2
  309. --R15 Trails
  310. local Trail3R = Trail:Clone()
  311. Trail3R.Parent = Character
  312. Trail3R.Attachment1 = A4R
  313. local Trail4R = Trail:Clone()
  314. Trail4R.Parent = Character
  315. Trail4R.Attachment1 = A5R
  316. local Trail8 = Trail:Clone()
  317. Trail8.Parent = Character
  318. Trail8.Attachment0 = A2R
  319. Trail8.Attachment1 = A4R
  320. Trail8.Color = TrailSettings.Color2
  321. local Trail9 = Trail:Clone()
  322. Trail9.Parent = Character
  323. Trail9.Attachment0 = A3R
  324. Trail9.Attachment1 = A5R
  325. Trail9.Color = TrailSettings.Color2
  326. local FT2R = Trail:Clone()
  327. FT2R.Parent = Character
  328. FT2R.Attachment0 = A4R
  329. FT2R.Attachment1 = A5R
  330. FT2R.Color = TrailSettings.Color2
  331. end
  332. end
  333.  
  334. --All Body Function calling Both Functions
  335. AllBody = function()
  336. UpperBody()
  337. LowerBody()
  338. end
  339.  
  340. --Checking to make sure that Only some Variables are Selected else do All Body
  341. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  342. TrailSettings.UpperBodyOnly = false
  343. TrailSettings.LowerBodyOnly = false
  344. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  345. TrailSettings.UpperBodyOnly = false
  346. TrailSettings.LowerBodyOnly = false
  347. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  348. TrailSettings.UpperBodyOnly = false
  349. TrailSettings.LowerBodyOnly = false
  350. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  351. TrailSettings.AllBody = true
  352. TrailSettings.UpperBodyOnly = false
  353. TrailSettings.LowerBodyOnly = false
  354. end
  355.  
  356. --Call Trail Functions
  357. if TrailSettings.UpperBodyOnly == true then
  358. UpperBody()
  359. print('Called Upper Body Trail')
  360. elseif TrailSettings.LowerBodyOnly == true then
  361. LowerBody()
  362. print('Called Lower Body Trail')
  363. elseif TrailSettings.AllBody == true then
  364. AllBody()
  365. print('Called Full Body Trail')
  366. end
  367.  
  368. --Trails for Accessories
  369. if TrailSettings.Accessories == true then
  370. for Index,Item in pairs(Character:GetChildren()) do
  371. if Item:IsA'Accessory' then
  372. local AA = Instance.new('Attachment',Item.Handle)
  373. local ATrail = Trail:Clone()
  374. ATrail.Parent = Character
  375. ATrail.Attachment1 = AA
  376. end
  377. end
  378. end
  379.  
  380. --Extras
  381. if TrailSettings.Extras == true then
  382. --Making an Invisible Platform Part
  383. local a = Instance.new('Part',Character)
  384. a.CanCollide = false
  385. a.Size = Vector3.new(2,.2,2)
  386. a.Transparency = 1
  387.  
  388. --Constantly putting it under your feet
  389. if TrailSettings.R15 == false then
  390. spawn(function()
  391. game:GetService('RunService').RenderStepped:connect(function()
  392. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  393. end)
  394. end)
  395. else
  396. spawn(function()
  397. game:GetService('RunService').RenderStepped:connect(function()
  398. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  399. end)
  400. end)
  401. end
  402.  
  403. --Make a Trail from both feet to the Platform
  404. spawn(function()
  405. repeat wait() until Trail
  406. local AB = Instance.new('Attachment',a)
  407. local ABT = Trail:Clone()
  408. ABT.Parent = Character
  409. ABT.Attachment0 = A4
  410. ABT.Attachment1 = AB
  411. ABT.Color = TrailSettings.Color2
  412. local ABT2 = Trail:Clone()
  413. ABT2.Parent = Character
  414. ABT2.Attachment0 = A5
  415. ABT2.Attachment1 = AB
  416. ABT2.Color = TrailSettings.Color2
  417. end)
  418. end
  419. --
  420.  
  421. function sp()
  422. local S = Instance.new("Sound",game.Soundscape)
  423. S.SoundId = "rbxassetid://433304271"
  424. S.Volume = 1.2
  425. S.Looped = true
  426. S:Play()
  427. end
  428.  
  429. sp()
  430.  
  431. local acos = math.acos
  432. local sqrt = math.sqrt
  433. local Vec3 = Vector3.new
  434. local fromAxisAngle = CFrame.fromAxisAngle
  435.  
  436. local function toAxisAngle(CFr)
  437. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  438. local Angle = math.acos((R00+R11+R22-1)/2)
  439. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  440. A = A == 0 and 0.00001 or A
  441. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  442. B = B == 0 and 0.00001 or B
  443. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  444. C = C == 0 and 0.00001 or C
  445. local x = (R21-R12)/sqrt(A)
  446. local y = (R02-R20)/sqrt(B)
  447. local z = (R10-R01)/sqrt(C)
  448. return Vec3(x,y,z),Angle
  449. end
  450.  
  451. function ApplyTrig(Num,Func)
  452. local Min,Max = Func(0),Func(1)
  453. local i = Func(Num)
  454. return (i-Min)/(Max-Min)
  455. --[[if Func == "sin" then
  456. return (math.sin((1-Num)*math.pi)+1)/2
  457. elseif Func == "cos" then
  458. return (math.cos((1-Num)*math.pi)+1)/2
  459. end]]
  460. end
  461.  
  462. function LerpCFrame(CFrame1,CFrame2,Num)
  463. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  464. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  465. end
  466.  
  467. function Crater(Torso,Radius)
  468. spawn(function()
  469. local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  470. local Ignore = {}
  471. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  472. if v.Character ~= nil then
  473. Ignore[#Ignore+1] = v.Character
  474. end
  475. end
  476. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  477. if Hit == nil then return end
  478. local Parts = {}
  479. for i = 1,360,10 do
  480. local P = Instance.new("Part",char.Torso.Parent)
  481. P.Anchored = true
  482. P.FormFactor = "Custom"
  483. P.BrickColor = Hit.BrickColor
  484. P.Material = Hit.Material
  485. P.TopSurface = "Smooth"
  486. P.BottomSurface = "Smooth"
  487. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  488. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  489. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-45)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  490. if math.random(0,5) == 0 then -- rubble
  491. local P = Instance.new("Part",char.Torso.Parent)
  492. P.Anchored = true
  493. P.CanCollide = false
  494. P.FormFactor = "Custom"
  495. P.BrickColor = Hit.BrickColor
  496. P.Material = Hit.Material
  497. P.TopSurface = "Smooth"
  498. P.BottomSurface = "Smooth"
  499. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  500. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  501. P.CanCollide = true
  502. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-50)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  503. end
  504. end
  505. for i = 0,1,0.05 do
  506. for i2,v in pairs(Parts) do
  507. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  508. end
  509. wait(0.02)
  510. end
  511. for i,v in pairs(Parts) do
  512. if v[1].Size.X > 2.1 then
  513. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  514. end
  515. v[1].Anchored = false
  516. end
  517. for i = 0,1,0.05 do
  518. for i2,v in pairs(Parts) do
  519. v[1].Transparency = i
  520. if i == 1 then
  521. v[1]:Destroy()
  522. elseif i >= 0.25 then
  523. v[1].CanCollide = false
  524. end
  525. end
  526. wait(0.02)
  527. end
  528. Parts = nil
  529. end)
  530. end
  531.  
  532.  
  533. function FindNearestTorso(Position,Distance,SinglePlayer)
  534. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  535. local List = {}
  536. for i,v in pairs(workspace:GetChildren())do
  537. if v:IsA("Model")then
  538. if v:findFirstChild("Torso")then
  539. if v ~= char then
  540. if(v.char.Torso.Position -Position).magnitude <= Distance then
  541. table.insert(List,v)
  542. end
  543. end
  544. end
  545. end
  546. end
  547. return List
  548. end
  549.  
  550.  
  551.  
  552.  
  553. function hito(partoz, magn, dmg, debtim)
  554. for _, guy in pairs(workspace:GetChildren()) do
  555. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= plr.Character and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then
  556. do
  557. local humz = guy:FindFirstChild("Humanoid")
  558. local hed = guy:FindFirstChild("Head")
  559. humz:TakeDamage(dmg)
  560. local db = Instance.new("StringValue")
  561. db.Name = "alabo"
  562. db.Parent = hed
  563. delay(debtim, function()
  564. db:Destroy()
  565. end)
  566. end
  567. end
  568. end
  569. end
  570.  
  571.  
  572. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  573. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  574. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  575. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  576. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  577. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  578. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  579. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  580. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  581. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  582. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  583. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  584. RS = tors:FindFirstChild("Right Shoulder")
  585. LS = tors:FindFirstChild("Left Shoulder")
  586. RH = tors:FindFirstChild("Right Hip")
  587. LH = tors:FindFirstChild("Left Hip")
  588. RJ = hrp:FindFirstChild("RootJoint")
  589. N = tors:FindFirstChild("Neck")
  590. cf = CFrame.new
  591. ang = CFrame.Angles
  592. rd = math.rad
  593. rd2 = math.random
  594. LOADED = 1
  595.  
  596. Heartbeat = Instance.new("BindableEvent")
  597. Heartbeat.Name = "Heartbeat"
  598. Heartbeat.Parent = script
  599. frame = 0.03333333333333333
  600. tf = 0
  601. game:GetService("RunService").Heartbeat:connect(function(s, p)
  602. tf = tf + s
  603. if tf >= frame then
  604. for i = 1, math.floor(tf / frame) do
  605. Heartbeat:Fire()
  606. end
  607. tf = tf - frame * math.floor(tf / frame)
  608. end
  609. end)
  610. function swait(num)
  611. if num == 0 or num == nil then
  612. Heartbeat.Event:wait()
  613. else
  614. for i = 1, num do
  615. Heartbeat.Event:wait()
  616. end
  617. end
  618. end
  619.  
  620. function makeweld(parent, p0, p1, c0, c1)
  621. local wel = Instance.new("Weld")
  622. wel.Part0 = p0
  623. wel.Part1 = p1
  624. wel.C0 = c0
  625. if c1 ~= nil then
  626. wel.C1 = c1
  627. end
  628. wel.Parent = parent
  629. return wel
  630. end
  631.  
  632. function smash()
  633. hum.WalkSpeed = 50
  634. hum.JumpPower = 10
  635. local S = Instance.new("Sound",game.Soundscape)
  636. S.SoundId = "rbxassetid://938838122"
  637. S.Volume = 1.5
  638. local S4 = Instance.new("Sound",game.Soundscape)
  639. S4.SoundId = "rbxassetid://991726501"
  640. S4.Volume = 1.5
  641. local S3 = Instance.new("Sound",game.Soundscape)
  642. S3.SoundId = "rbxassetid://610327604"
  643. S3.Volume = 0.3
  644. S3.PlaybackSpeed = 0.85
  645. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  646. pe.Texture = "rbxassetid://272050333"
  647. pe.Size = NumberSequence.new(1)
  648. pe.LightEmission = 1
  649. pe.LightInfluence = 1
  650. pe.Rate = 1000000.000
  651. pe.Rotation = NumberRange.new(0, 360)
  652. pe.Speed = NumberRange.new(10)
  653. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  654. pe.Lifetime = NumberRange.new(0.06)
  655. pe.LockedToPart = true
  656. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  657. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  658. pe2.Size = NumberSequence.new(3)
  659. pe2.LightEmission = 1
  660. pe2.LightInfluence = 1
  661. pe2.Rate = 1000
  662. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  663. pe2.Rotation = NumberRange.new(0, 360)
  664. pe2.RotSpeed = NumberRange.new(2)
  665. pe2.Speed = NumberRange.new(15)
  666. pe2.SpreadAngle = Vector2.new(360,306)
  667. pe2.Lifetime = NumberRange.new(0.06)
  668. pe2.ZOffset = 1
  669. pe2.LockedToPart = true
  670. pe2.Name = "ParticleEmitter2"
  671.  
  672. S:Play()
  673. for _ = 1, 45 do
  674. swait()
  675. lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
  676. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
  677. lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2)
  678. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  679. lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
  680. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
  681. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
  682. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  683. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  684. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  685. end
  686. for _ = 1, 30 do
  687. swait()
  688. lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
  689. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
  690. lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(10, 20)), rd(rd2(-25, -15)), rd(rd2(100, 110))), 0.2)
  691. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
  692. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
  693. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
  694. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  695. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
  696.  
  697. end
  698. for l = 1, 3 do
  699. swait()
  700. lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
  701. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
  702. lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
  703. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
  704. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
  705. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
  706. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
  707. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
  708. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
  709. end
  710. local woosh = Instance.new("Part",workspace)
  711. woosh.Size = Vector3.new(12, 12, 20)
  712. woosh.BrickColor = BrickColor.new("Institutional white")
  713. local me = Instance.new("FileMesh",woosh)
  714. me.MeshId = "rbxassetid://437347603"
  715. me.Scale = Vector3.new(1.3, 1.3, 1)
  716. woosh.CanCollide = false
  717. woosh.Anchored = false
  718. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  719. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  720. woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  721. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  722. local woosh2 = Instance.new("Part",workspace)
  723. woosh2.Size = Vector3.new(12, 12, 20)
  724. woosh2.BrickColor = BrickColor.new("Institutional white")
  725. local me2 = Instance.new("FileMesh",woosh2)
  726. me2.MeshId = "rbxassetid://3270017"
  727. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  728. woosh2.CanCollide = false
  729. woosh2.Anchored = true
  730. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  731. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  732. woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  733. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  734. local woosh3 = Instance.new("Part",workspace)
  735. woosh3.Size = Vector3.new(12, 12, 20)
  736. woosh3.BrickColor = BrickColor.new("Institutional white")
  737. local me3 = Instance.new("FileMesh",woosh3)
  738. me3.MeshId = "rbxassetid://3270017"
  739. me3.Scale = Vector3.new(1, 1, 0.4)
  740. woosh3.CanCollide = false
  741. woosh3.Anchored = true
  742. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  743. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  744. woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  745. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  746. local woosh1 = Instance.new("Part",workspace)
  747. woosh1.Size = Vector3.new(12, 12, 20)
  748. woosh1.BrickColor = BrickColor.new("Institutional white")
  749. local me1 = Instance.new("FileMesh",woosh1)
  750. me1.MeshId = "rbxassetid://489415447"
  751. me1.Scale = Vector3.new(1, 1, 0.4)
  752. woosh1.CanCollide = false
  753. woosh1.Anchored = true
  754. woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  755. local woosh4 = Instance.new("Part",workspace)
  756. woosh4.Size = Vector3.new(12, 12, 20)
  757. woosh4.BrickColor = BrickColor.new("Institutional white")
  758. local me4 = Instance.new("FileMesh",woosh4)
  759. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  760. me4.Scale = Vector3.new(1.3,0.1,1)
  761. woosh4.CanCollide = false
  762. woosh4.Anchored = true
  763. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  764. local woosh4 = Instance.new("Part",workspace)
  765. woosh4.Size = Vector3.new(12, 12, 20)
  766. woosh4.BrickColor = BrickColor.new("Institutional white")
  767. local me4 = Instance.new("FileMesh",woosh4)
  768. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  769. me4.Scale = Vector3.new(2,3.3,2)
  770. woosh4.CanCollide = false
  771. woosh4.Anchored = true
  772. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  773. local v = Instance.new("BodyVelocity", woosh)
  774. v.velocity = woosh.CFrame.lookVector *100
  775. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  776. S3:Play()
  777. pe:remove()
  778. pe2:remove()
  779. Crater()
  780. for i = 0.14,1,0.015 do
  781. wait()
  782. hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  783. woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  784. woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  785. woosh.Transparency = woosh.Transparency + 0.04
  786. woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  787. woosh2.Transparency = woosh2.Transparency + 0.03
  788. me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  789. woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  790. woosh3.Transparency = woosh3.Transparency + 0.035
  791. me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  792. me1.Scale = me1.Scale + Vector3.new(2,1,2)
  793. woosh1.Transparency = woosh1.Transparency + 0.04
  794. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  795. woosh4.Transparency = woosh4.Transparency + 0.02
  796. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  797. end
  798. woosh3:remove()
  799. woosh2:remove()
  800. woosh1:remove()
  801. woosh4:remove()
  802. woosh:remove()
  803.  
  804. for _ = 1, 24 do
  805. swait()
  806. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  807. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  808. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  809. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  810. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  811. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  812. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  813. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  814. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  815. end
  816. S:remove()
  817. hum.WalkSpeed = 16
  818. hum.JumpPower = 50
  819. wait(2.3)
  820. S4:remove()
  821. S3:remove()
  822. end
  823.  
  824. function ring()
  825. local S4 = Instance.new("Sound",game.Soundscape)
  826. S4.SoundId = "rbxassetid://991726501"
  827. S4.Volume = 1.5
  828. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  829. pe.Texture = "rbxassetid://272050333"
  830. pe.Size = NumberSequence.new(1)
  831. pe.LightEmission = 1
  832. pe.LightInfluence = 1
  833. pe.Rate = 1000000.000
  834. pe.Rotation = NumberRange.new(0, 360)
  835. pe.Speed = NumberRange.new(10)
  836. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  837. pe.Lifetime = NumberRange.new(0.06)
  838. pe.LockedToPart = true
  839. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  840. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  841. pe2.Size = NumberSequence.new(3)
  842. pe2.LightEmission = 1
  843. pe2.LightInfluence = 1
  844. pe2.Rate = 1000
  845. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  846. pe2.Rotation = NumberRange.new(0, 360)
  847. pe2.RotSpeed = NumberRange.new(2)
  848. pe2.Speed = NumberRange.new(15)
  849. pe2.SpreadAngle = Vector2.new(360,306)
  850. pe2.Lifetime = NumberRange.new(0.06)
  851. pe2.ZOffset = 1
  852. pe2.LockedToPart = true
  853. pe2.Name = "ParticleEmitter2"
  854. wait(0.3)
  855. local me = Instance.new("Part",workspace)
  856. local mesh = Instance.new("SpecialMesh")
  857. mesh.MeshType = "FileMesh"
  858. mesh.MeshId = "rbxassetid://3270017"
  859. mesh.Scale = Vector3.new(12, 12, 0.05)
  860. mesh.Parent = me
  861. me.Anchored = true
  862. me.CanCollide = false
  863. me.BrickColor = BrickColor.new("Institutional white")
  864. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  865. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  866. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  867. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  868. me.Anchored = false
  869. local me2 = Instance.new("Part",workspace)
  870. local mesh2 = Instance.new("SpecialMesh")
  871. mesh2.MeshType = "FileMesh"
  872. mesh2.MeshId = "rbxassetid://3270017"
  873. mesh2.Scale = Vector3.new(12, 12, 0.05)
  874. mesh2.Parent = me2
  875. me2.Anchored = true
  876. me2.CanCollide = false
  877. me2.BrickColor = BrickColor.new("Institutional white")
  878. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  879. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  880. me2.CFrame = hrp.CFrame
  881. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  882. local bfor = Instance.new("BodyPosition")
  883. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  884. bfor.P = 2500
  885. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  886. bfor.Parent = me
  887. me.Velocity = me.CFrame.lookVector *65
  888. local sound2 = Instance.new("Sound",game.Soundscape)
  889. sound2.SoundId = "rbxassetid://157878578"
  890. sound2.MaxDistance = 300
  891. sound2.EmitterSize = 20
  892. sound2.Volume = 2
  893. sound2.Pitch = 0.9
  894. local sound3 = Instance.new("Sound",game.Soundscape)
  895. sound3.SoundId = "rbxassetid://138250406"
  896. sound2.MaxDistance = 400
  897. sound2.EmitterSize = 30
  898. sound2.Volume = 1.5
  899. sound2.Pitch = 0.6
  900. sound2:Play()
  901. sound3:Play()
  902. wait(0.4)
  903. local bfor = Instance.new("BodyPosition")
  904. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  905. bfor.P = 2500
  906. bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
  907. bfor.Parent = plr.Character.HumanoidRootPart
  908. plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
  909. S4:Play()
  910. local part = Instance.new("Part",workspace)
  911. part.Transparency = 1
  912. part.CanCollide = false
  913. part.Anchored = true
  914. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  915. local smok = Instance.new("Smoke",part)
  916. smok.Opacity = 1
  917. smok.Size = 20
  918. for e = 1, 30 do
  919. wait()
  920. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  921. me.Transparency = me.Transparency + 0.04
  922. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  923. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  924. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  925. me2.Transparency = me2.Transparency + 0.04
  926. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  927. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  928. smok.Size = smok.Size + 10
  929. wait()
  930. end
  931. S4:remove()
  932. pe:remove()
  933. pe2:remove()
  934. bfor:remove()
  935. me2:remove()
  936. me:remove()
  937. for i = 0,1,0.01 do
  938. wait()
  939. smok.Opacity = smok.Opacity - 0.01
  940. end
  941. part:remove()
  942. sound2:remove()
  943. sound3:remove()
  944. end
  945.  
  946. function ring2()
  947. hum.WalkSpeed = 0
  948. hum.JumpPower = 0
  949. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  950. pe.Texture = "rbxassetid://272050333"
  951. pe.Size = NumberSequence.new(1)
  952. pe.LightEmission = 1
  953. pe.LightInfluence = 1
  954. pe.Rate = 1000000.000
  955. pe.Rotation = NumberRange.new(0, 360)
  956. pe.Speed = NumberRange.new(10)
  957. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  958. pe.Lifetime = NumberRange.new(0.06)
  959. pe.LockedToPart = true
  960. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  961. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  962. pe2.Size = NumberSequence.new(3)
  963. pe2.LightEmission = 1
  964. pe2.LightInfluence = 1
  965. pe2.Rate = 1000
  966. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  967. pe2.Rotation = NumberRange.new(0, 360)
  968. pe2.RotSpeed = NumberRange.new(2)
  969. pe2.Speed = NumberRange.new(15)
  970. pe2.SpreadAngle = Vector2.new(360,306)
  971. pe2.Lifetime = NumberRange.new(0.06)
  972. pe2.ZOffset = 1
  973. pe2.LockedToPart = true
  974. pe2.Name = "ParticleEmitter2"
  975. for l = 1, 30 do
  976. swait()
  977. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
  978. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
  979. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
  980. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  981. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
  982. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  983. lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
  984. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  985. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
  986. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  987. end
  988. local S4 = Instance.new("Sound",game.Soundscape)
  989. S4.SoundId = "rbxassetid://991726501"
  990. S4.Volume = 1.5
  991. wait(0.3)
  992. local me = Instance.new("Part",workspace)
  993. local mesh = Instance.new("SpecialMesh")
  994. mesh.MeshType = "FileMesh"
  995. mesh.MeshId = "rbxassetid://3270017"
  996. mesh.Scale = Vector3.new(12, 12, 0.05)
  997. mesh.Parent = me
  998. me.Anchored = true
  999. me.CanCollide = false
  1000. me.BrickColor = BrickColor.new("Institutional white")
  1001. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  1002. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1003. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  1004. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1005. me.Anchored = false
  1006. local me2 = Instance.new("Part",workspace)
  1007. local mesh2 = Instance.new("SpecialMesh")
  1008. mesh2.MeshType = "FileMesh"
  1009. mesh2.MeshId = "rbxassetid://3270017"
  1010. mesh2.Scale = Vector3.new(12, 12, 0.05)
  1011. mesh2.Parent = me2
  1012. me2.Anchored = true
  1013. me2.CanCollide = false
  1014. me2.BrickColor = BrickColor.new("Institutional white")
  1015. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  1016. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1017. me2.CFrame = hrp.CFrame
  1018. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1019. local bfor = Instance.new("BodyPosition")
  1020. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1021. bfor.P = 2500
  1022. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  1023. bfor.Parent = me
  1024. me.Velocity = me.CFrame.lookVector *65
  1025. local sound2 = Instance.new("Sound",game.Soundscape)
  1026. sound2.SoundId = "rbxassetid://157878578"
  1027. sound2.MaxDistance = 300
  1028. sound2.EmitterSize = 20
  1029. sound2.Volume = 2
  1030. sound2.Pitch = 0.9
  1031. local sound3 = Instance.new("Sound",game.Soundscape)
  1032. sound3.SoundId = "rbxassetid://138250406"
  1033. sound2.MaxDistance = 400
  1034. sound2.EmitterSize = 30
  1035. sound2.Volume = 1.5
  1036. sound2.Pitch = 0.6
  1037. sound2:Play()
  1038. sound3:Play()
  1039.  
  1040. S4:Play()
  1041. local part = Instance.new("Part",workspace)
  1042. part.Transparency = 1
  1043. part.CanCollide = false
  1044. part.Anchored = true
  1045. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  1046. local smok = Instance.new("Smoke",part)
  1047. smok.Opacity = 1
  1048. smok.Size = 20
  1049. local woosh4 = Instance.new("Part",workspace)
  1050. woosh4.Size = Vector3.new(12, 12, 20)
  1051. woosh4.BrickColor = BrickColor.new("Institutional white")
  1052. local me4 = Instance.new("FileMesh",woosh4)
  1053. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  1054. me4.Scale = Vector3.new(1.3,0.1,1)
  1055. woosh4.CanCollide = false
  1056. woosh4.Anchored = true
  1057. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  1058. local woosh4 = Instance.new("Part",workspace)
  1059. woosh4.Size = Vector3.new(12, 12, 20)
  1060. woosh4.BrickColor = BrickColor.new("Institutional white")
  1061. local me4 = Instance.new("FileMesh",woosh4)
  1062. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1063. me4.Scale = Vector3.new(2,3.3,2)
  1064. woosh4.CanCollide = false
  1065. woosh4.Anchored = true
  1066. woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
  1067. Crater()
  1068. for e = 1, 30 do
  1069. wait()
  1070. hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1071. hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1072. hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1073. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  1074. me.Transparency = me.Transparency + 0.04
  1075. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  1076. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1077. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  1078. me2.Transparency = me2.Transparency + 0.04
  1079. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  1080. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1081. smok.Size = smok.Size + 10
  1082. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
  1083. woosh4.Transparency = woosh4.Transparency + 0.06
  1084. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  1085. wait()
  1086. end
  1087. for _ = 1, 18 do
  1088. swait()
  1089. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1090. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1091. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1092. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1093. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1094. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1095. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1096. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1097. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1098. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1099. end
  1100. hum.WalkSpeed = 50
  1101. hum.JumpPower = 50
  1102. woosh4:remove()
  1103. S4:remove()
  1104. pe:remove()
  1105. pe2:remove()
  1106. me2:remove()
  1107. me:remove()
  1108. for i = 0,1,0.01 do
  1109. wait()
  1110. smok.Opacity = smok.Opacity - 0.01
  1111. end
  1112. part:remove()
  1113. sound2:remove()
  1114. sound3:remove()
  1115.  
  1116. end
  1117.  
  1118.  
  1119. function lerpz(joint, prop, cfrmz, alp)
  1120. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  1121. end
  1122.  
  1123. m.KeyDown:connect(function(key)
  1124. key = key:lower()
  1125. if key == "e" and LOADED == 1 then
  1126. LOADED = LOADED -1
  1127. smash()
  1128. LOADED = LOADED +1
  1129. end
  1130. end)
  1131.  
  1132. m.KeyDown:connect(function(key)
  1133. key = key:lower()
  1134. if key == "z" and LOADED == 1 then
  1135. LOADED = LOADED -1
  1136. ring()
  1137. wait(1)
  1138. LOADED = LOADED +1
  1139. end
  1140. end)
  1141.  
  1142.  
  1143. m.KeyDown:connect(function(key)
  1144. key = key:lower()
  1145. if key == "r" and LOADED == 1 then
  1146. LOADED = LOADED -1
  1147. ring2()
  1148. wait(1)
  1149. LOADED = LOADED +1
  1150. end
  1151. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement