Advertisement
Guest User

Untitled

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