Advertisement
Orangeplayer1431

great music

May 22nd, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.22 KB | None | 0 0
  1. -- Gaster <3
  2. -- Thanks For The Music Doge <33
  3.  
  4. function clerp(c1,c2,al)
  5. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  6. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  7. for i,v in pairs(com1) do
  8. com1[i] = v+(com2[i]-v)*al
  9. end
  10. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  11. end
  12.  
  13.  
  14. plr = game:service'Players'.LocalPlayer
  15. char = plr.Character
  16. mouse = plr:GetMouse()
  17. humanoid = char:findFirstChild("Humanoid")
  18. torso = char:findFirstChild("Torso")
  19. head = char.Head
  20. ra = char:findFirstChild("Right Arm")
  21. la = char:findFirstChild("Left Arm")
  22. rl = char:findFirstChild("Right Leg")
  23. ll = char:findFirstChild("Left Leg")
  24. rs = torso:findFirstChild("Right Shoulder")
  25. ls = torso:findFirstChild("Left Shoulder")
  26. rh = torso:findFirstChild("Right Hip")
  27. lh = torso:findFirstChild("Left Hip")
  28. neck = torso:findFirstChild("Neck")
  29. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  30. rootpart = char:findFirstChild("HumanoidRootPart")
  31. camera = workspace.CurrentCamera
  32. anim = char:findFirstChild("Animate")
  33.  
  34. humanoid.Animator:Destroy()
  35.  
  36. local rm = Instance.new("Weld", torso)
  37. rm.C0 = CFrame.new(1.5, 0.5, 0)
  38. rm.C1 = CFrame.new(0, 0.5, 0)
  39. rm.Part0 = torso
  40. rm.Part1 = ra
  41.  
  42. local lm = Instance.new("Weld", torso)
  43. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  44. lm.C1 = CFrame.new(0, 0.5, 0)
  45. lm.Part0 = torso
  46. lm.Part1 = la
  47.  
  48. local rlegm = Instance.new("Weld", torso)
  49. rlegm.C0 = CFrame.new(0.5, -1, 0)
  50. rlegm.C1 = CFrame.new(0, 1, 0)
  51. rlegm.Part0 = torso
  52. rlegm.Part1 = rl
  53. local llegm = Instance.new("Weld", torso)
  54. llegm.C0 = CFrame.new(-0.5, -1, 0)
  55. llegm.C1 = CFrame.new(0, 1, 0)
  56. llegm.Part0 = torso
  57. llegm.Part1 = ll
  58.  
  59. neck.C0 = CFrame.new(0, 1, 0)
  60. neck.C1 = CFrame.new(0, -.5, 0)
  61.  
  62. rj.C0 = CFrame.new()
  63. rj.C1 = CFrame.new()
  64.  
  65. local s = Instance.new('Sound', head)
  66. s.Volume = 1
  67. s.SoundId = "rbxassetid://230069408" --EG: Music to my ears
  68. s.Looped = true
  69. s:play()
  70.  
  71. humanoid.WalkSpeed = 7
  72.  
  73. rsc0 = rm.C0
  74. lsc0 = lm.C0
  75. neckc0 = neck.C0
  76. rootc0 = rj.C0
  77. llc0 = llegm.C0
  78. rlc0 = rlegm.C0
  79. speed = 0.25
  80. angle = 0
  81. anglespeed = 1
  82.  
  83. local Hat = Instance.new('Part', char)
  84. Hat.FormFactor = 'Custom'
  85. Hat.Size = Vector3.new(1,1,1)
  86. Hat.CanCollide = false
  87. Hat.Locked = true
  88. Hat.Name = 'Headphones'
  89. Hat:breakJoints()
  90. Hat.TopSurface = 0
  91. Hat.BottomSurface = 0
  92. local Mesh = Instance.new('SpecialMesh', Hat)
  93. Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545"
  94. Mesh.TextureId = "rbxassetid://186142634"
  95.  
  96. local Weld = Instance.new('Weld', Hat)
  97. Weld.Part0 = Hat
  98. Weld.Part1 = head
  99. Weld.C1 = CFrame.new(0, .2, 0)
  100.  
  101.  
  102. local SplashEffect = Instance.new('Part')
  103. Instance.new("CylinderMesh", SplashEffect);
  104. SplashEffect.Size = Vector3.new(.2,.2,.2)
  105. SplashEffect.Anchored = true
  106. SplashEffect.Transparency = 1
  107. SplashEffect.CanCollide = false
  108. SplashEffect.Locked = true
  109. SplashEffect.Material = "Neon"
  110. local surfacegui = Instance.new('SurfaceGui', SplashEffect)
  111. surfacegui.Face = 'Top'
  112. surfacegui.CanvasSize = Vector2.new(800,800)
  113. local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
  114. SplashEffectImage.Size = UDim2.new(1,0,1,0)
  115. SplashEffectImage.Image = "rbxassetid://166139049"
  116. SplashEffectImage.BackgroundTransparency = 1
  117. SplashEffectImage.Name = 'Effect'
  118. SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255)
  119. local light = Instance.new('PointLight', SplashEffect)
  120.  
  121. local SplashEffect2 = SplashEffect:clone()
  122. SplashEffect2:ClearAllChildren()
  123. Instance.new("CylinderMesh", SplashEffect2);
  124. local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
  125. surfacegui2.Face = 'Top'
  126. surfacegui2.CanvasSize = Vector2.new(800,800)
  127. local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
  128. SplashEffect2Image.Size = UDim2.new(1,0,1,0)
  129. SplashEffect2Image.Image = "rbxassetid://166139049"
  130. SplashEffect2Image.BackgroundTransparency = 1
  131. SplashEffect2Image.Name = 'Effect'
  132. SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255)
  133. local light2 = Instance.new('PointLight', SplashEffect2)
  134.  
  135. local Crack = Instance.new('Part')
  136. Crack.Size = Vector3.new(12, .2, 12)
  137. Crack.Anchored = true
  138. Crack.Transparency = 1
  139. Crack.CanCollide = false
  140.  
  141. Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
  142. local Image = Instance.new('Decal', Crack)
  143. Image.Face = 'Top'
  144.  
  145.  
  146. local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
  147. local Splash1cframe
  148. local Splash2cframe
  149.  
  150. function math_pos(float)
  151. if float < 0 then float = 0 end
  152. return float
  153. end
  154. function math_neg(float)
  155. if float > 0 then float = 0 end
  156. return float
  157. end
  158. function math_max(float, max)
  159. if float > max then float = max end
  160. return float
  161. end
  162. function math_min(float, min)
  163. if float > min then float = min end
  164. return float
  165. end
  166.  
  167. local lasttick
  168. local Action = false
  169.  
  170. mouse.KeyDown:connect(function(k)
  171. if k:byte() == 32 then
  172. if not jumped then
  173. lasttick = tick()
  174. end
  175. end
  176. end)
  177.  
  178. plr.Chatted:connect(function(msg)
  179. if msg == "/e dance" or msg == "/emote dance" then
  180. Action = 'Dancing'
  181. end
  182. if msg == "/e dance2" or msg == "/emote dance2" then
  183. Action = 'Dancing2'
  184. end
  185. if msg == "/e dance3" or msg == "/emote dance3" then
  186. Action = 'Dancing3'
  187. end
  188. end)
  189.  
  190. local screengui = Instance.new('ScreenGui', plr.PlayerGui)
  191. screengui.Name = "Vinyl's Effect"
  192. local frame = Instance.new('ImageLabel', screengui)
  193. frame.Size = UDim2.new(1,250,1,250)
  194. frame.Position = UDim2.new(0,-125,0,-125)
  195. frame.Image = "rbxassetid://186263828"
  196. frame.BackgroundTransparency = 1
  197.  
  198. local parts = Instance.new('Model', char)
  199.  
  200. local Notes = {}
  201. game:service'RunService'.RenderStepped:connect(function()
  202. angle = (angle % 100) + anglespeed/10
  203. local rscf = rsc0
  204. local lscf = lsc0
  205. local rjcf = rootc0
  206. local ncf = neckc0
  207. local rlcf = rlc0
  208. local llcf = llc0
  209. local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  210. local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
  211. do --Right leg effect
  212. local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1)
  213. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  214. if hit and hit:IsA'BasePart' and hitz then
  215. if SplashEffect.Parent == nil then
  216. local COLOR = SplashColors[math.random(1,#SplashColors)];
  217. SplashEffect.Parent = parts
  218. SplashEffect.Transparency = 0.2
  219. SplashEffect.BrickColor = BrickColor.new(COLOR)
  220. SplashEffect.Size = Vector3.new(.2,.2,.2)
  221. SplashEffectImage.ImageColor3 = COLOR;
  222. SplashEffectImage.ImageTransparency = 0
  223. SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.575, 0)
  224. Splash1cframe = SplashEffect.CFrame
  225. light.Color = SplashEffectImage.ImageColor3
  226. light.Brightness = 1
  227. light.Range = 8
  228. for i = 1, math.random(6,10) do
  229. local Note = Instance.new('Part', parts)
  230. Note.CanCollide = false
  231. Note.Material = "Neon"
  232. Note.Anchored = true
  233. Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  234. Note.Color = SplashEffectImage.ImageColor3
  235. Note.Size = Vector3.new(1,1,1)
  236. local mesh = Instance.new('SpecialMesh', Note)
  237. mesh.MeshId = "rbxassetid://1088207"
  238. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  239. table.insert(Notes,Note)
  240. end
  241. wait(1)
  242. SplashEffect.Parent = nil
  243. Splash1cframe = nil
  244. end
  245. end
  246. end
  247. do --Left leg effect
  248. local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1)
  249. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  250. if hit and hit:IsA'BasePart' and hitz then
  251. if SplashEffect2.Parent == nil then
  252. local COLOR = SplashColors[math.random(1,#SplashColors)];
  253. SplashEffect2.Parent = parts
  254. SplashEffect2.Transparency = 0.2
  255.  
  256. SplashEffect2.BrickColor = BrickColor.new(COLOR)
  257. SplashEffect2.Size = Vector3.new(.2,.2,.2)
  258. SplashEffect2Image.ImageColor3 = COLOR;
  259. SplashEffect2Image.ImageTransparency = 0
  260. SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.575, 0)
  261. Splash2cframe = SplashEffect2.CFrame
  262. light2.Color = SplashEffect2Image.ImageColor3
  263. light2.Brightness = 1
  264. light2.Range = 8
  265. for i = 1, math.random(6,10) do
  266. local Note = Instance.new('Part', parts)
  267. Note.CanCollide = false
  268. Note.Material = "Neon"
  269. Note.Anchored = true
  270. Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  271. Note.Color = SplashEffect2Image.ImageColor3
  272. Note.Size = Vector3.new(1,1,1)
  273. local mesh = Instance.new('SpecialMesh', Note)
  274. mesh.MeshId = "rbxassetid://1088207"
  275. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  276. table.insert(Notes,Note)
  277. end
  278. wait(1)
  279. SplashEffect2.Parent = nil
  280. Splash2cframe = nil
  281. end
  282. end
  283. end
  284. if Action == 'Dancing' then
  285. anglespeed = .95
  286. llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02)
  287. rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02)
  288. rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0)
  289. lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1)
  290. rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0)
  291. ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0)
  292. elseif Action == 'Dancing2' then
  293. anglespeed = 1.15
  294. llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02)
  295. rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02)
  296. rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35)
  297. lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35)
  298. rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0)
  299. ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2)
  300. elseif Action == 'Dancing3' then
  301. anglespeed = .95
  302. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0)
  303. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05)
  304. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05)
  305. rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  306. lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  307. ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0)
  308. elseif Action == false then
  309. if not jumphit then
  310. anglespeed = 2
  311. rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0)
  312. llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0)
  313. lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0)
  314. rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0)
  315. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then
  316. anglespeed = .75
  317. ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0)
  318. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0)
  319. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05)
  320. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05)
  321. rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015)
  322. lscf = lsc0 * CFrame.Angles(math.asin(math.sin(angle))*.25, 0, -.015)
  323. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then
  324. anglespeed = 1
  325. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0)
  326. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025)
  327. llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025)
  328. rscf = rsc0 * CFrame.Angles(.5 - math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  329. lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  330. end
  331. end
  332. if SplashEffect.Parent ~= nil then
  333. if light then
  334. light.Range = light.Range + 1
  335. light.Brightness = light.Brightness - .045
  336. end
  337. SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25)
  338. SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045
  339. SplashEffect.Transparency = SplashEffect.Transparency + .025
  340. SplashEffect.CFrame = Splash1cframe
  341. end
  342.  
  343. if Crack.Parent ~= nil then
  344. if Image.Transparency > 1 then Crack.Parent = nil end
  345. Image.Transparency = Image.Transparency + .045
  346. end
  347.  
  348. if SplashEffect2.Parent ~= nil then
  349. if light2 then
  350. light2.Range = light2.Range + 1
  351. light2.Brightness = light2.Brightness - .045
  352. end
  353. SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25)
  354. SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045
  355. SplashEffect2.Transparency = SplashEffect2.Transparency + .025
  356. SplashEffect2.CFrame = Splash2cframe
  357. end
  358.  
  359. for i,v in pairs(Notes) do
  360. if v and v:IsA'BasePart' then
  361. if v.Transparency > 1 then
  362. v:Destroy()
  363. table.remove(Notes, i)
  364. end
  365. v.CFrame = v.CFrame * CFrame.new(0,0,-.285)
  366. v.Transparency = v.Transparency + .025
  367. end
  368. end
  369.  
  370. if Action ~= false then
  371. if torso.Velocity.magnitude > 2 then
  372. Action = false
  373. end
  374. end
  375.  
  376. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  377. llegm.C0 = clerp(llegm.C0,llcf,speed)
  378. rj.C0 = clerp(rj.C0,rjcf,speed)
  379. rm.C0 = clerp(rm.C0,rscf,speed)
  380. lm.C0 = clerp(lm.C0,lscf,speed)
  381. rj.C0 = clerp(rj.C0,rjcf,speed)
  382. neck.C0 = clerp(neck.C0,ncf,speed)
  383. end)
  384.  
  385. plr.Chatted:connect(function(msg)
  386. if (msg:sub(1,4) == "snd;") then
  387. s:stop();
  388. s.SoundId = "rbxassetid://"..msg:sub(5);
  389. s:play();
  390. end
  391. end)
  392.  
  393.  
  394. while true do
  395. for i = 0,140,15 do
  396. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  397. frame.Rotation = 0+math.random()
  398. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  399. game:service'RunService'.RenderStepped:wait()
  400. end
  401. for i = 140,5, -15 do
  402. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  403. frame.Rotation = 0+math.random(-10,10)/10
  404. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  405. game:service'RunService'.RenderStepped:wait()
  406. end
  407. for i = 5,25,15 do
  408. frame.Rotation = 0-math.random()
  409. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  410. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  411. game:service'RunService'.RenderStepped:wait()
  412. end
  413. for i = 25,0,-15 do
  414. frame.Rotation = 0+math.random()
  415. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  416. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  417. game:service'RunService'.RenderStepped:wait()
  418. end
  419. for i = 0,75,-15 do
  420. frame.Rotation = 0-math.random()
  421. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  422. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  423. game:service'RunService'.RenderStepped:wait()
  424. end
  425. for i = 75,0,-15 do
  426. frame.Rotation = 0
  427. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  428. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  429. game:service'RunService'.RenderStepped:wait()
  430. end
  431. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement