Advertisement
Lolerzz

Idk WHat I DId

Oct 13th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.66 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. part = nil
  4. bp = nil
  5. particles = nil
  6. function clerp(a,b,c,d)
  7. for i = 0,d,.01 do
  8. a.CFrame = CFrame.new(b:lerp(c,i))
  9. wait()
  10. end
  11. end
  12. function slerp(a2,b2,c2,d2)
  13. for i2 = 0,d2,.01 do
  14. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  15. wait()
  16. end
  17. end
  18. mouse.KeyDown:connect(function(key)
  19. if key == "e" and plr.Character.Parent == workspace then
  20. plr.Character.Parent = workspace.Camera
  21. plr.Character.Archivable = true
  22. Instance.new("ForceField",plr.Character).Visible = false
  23. for y,t in pairs(plr.Character:GetChildren()) do
  24. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  25. t.Transparency = 1
  26. if t.Name == "Head" and t:FindFirstChild("face") then
  27. t.face.Transparency = 1
  28. end
  29. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  30. t.Handle.Transparency = 1
  31. end
  32. end
  33. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  34. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  35. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  36. if plr.Character.Torso.Anchored == true then
  37. for y,t in pairs(plr.Character:GetChildren()) do
  38. if t:IsA("Part") then
  39. t.Anchored = false
  40. end
  41. end
  42. else
  43. for y,t in pairs(plr.Character:GetChildren()) do
  44. if t:IsA("Part") then
  45. t.Anchored = true
  46. end
  47. end
  48. end
  49. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  50. local clone = part:Clone()
  51. clone.Parent = workspace
  52. clone.Anchored = false
  53. clone:ClearAllChildren()
  54. clone.CanCollide = true
  55. bp.Parent = clone
  56. particles.Parent = clone
  57. if part.Parent:FindFirstChildOfClass("Humanoid") then
  58. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  59. end
  60. part:Destroy()
  61. part = clone
  62. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  63. plr.Character.Parent = workspace
  64. plr.Character.Archivable = false
  65. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  66. for y,t in pairs(plr.Character:GetChildren()) do
  67. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  68. t.Transparency = 0
  69. if t.Name == "Head" and t:FindFirstChild("face") then
  70. t.face.Transparency = 0
  71. end
  72. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  73. t.Handle.Transparency = 0
  74. end
  75. end
  76. end
  77. end)
  78. mouse.Button1Down:connect(function()
  79. if plr.Character.Parent == workspace.Camera then
  80. if mouse ~= nil then
  81. if mouse.Target ~= nil then
  82. part = mouse.Target
  83. bp = Instance.new("BodyPosition",part)
  84. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  85. bp.Position = part.Position
  86. particles = Instance.new("ParticleEmitter",part)
  87. particles.Color = ColorSequence.new(Color3.new(54,244,65))
  88. particles.Size = NumberSequence.new(1)
  89. particles.Texture = "rbxassetid://292289455"
  90. particles.VelocitySpread = 360
  91. particles.Speed = NumberRange.new(0)
  92. particles.RotSpeed = NumberRange.new(0)
  93. particles.Rotation = NumberRange.new(0)
  94. particles.Rate = 400
  95. particles.Lifetime = NumberRange.new(.2,.4)
  96. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  97. dwn = true
  98. end
  99. end
  100. while dwn == true do
  101. wait()
  102. bp.Position = mouse.hit.p
  103. if part then
  104. if part.Parent:FindFirstChildOfClass("Humanoid") then
  105. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  106. end
  107. end
  108. end
  109. end
  110. end)
  111. mouse.Button1Up:connect(function()
  112. dwn = false
  113. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  114. if bp then bp:Destroy() end
  115. if particles then particles:Destroy() end
  116. end)
  117. base = Instance.new("ScreenGui",plr.PlayerGui)
  118. bbg = Instance.new("BillboardGui",plr.Character.Head)
  119. bbg.Size = UDim2.new(0,200,0,50)
  120. bbg.StudsOffset = Vector3.new(0,3,0)
  121. bbgTl = Instance.new("TextLabel",bbg)
  122. bbgTl.BackgroundTransparency = 1
  123. bbgTl.Size = UDim2.new(10,0,1,0)
  124. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  125. bbgTl.Font = "Code"
  126. bbgTl.Text = " "
  127. bbgTl.TextSize = 25
  128. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  129. bbgTl.TextColor3 = Color3.new(0,0,0)
  130. bbgTl.TextStrokeTransparency = 0
  131. bbgTl.TextWrapped = true
  132. plr.Chatted:connect(function(msg)
  133. bbgTl.Text = msg
  134. wait(5)
  135. if bbgTl.Text == msg then
  136. bbgTl.Text = " "
  137. end
  138. end)
  139. touchCounter = 0
  140. while wait() do
  141. if plr.Character.Parent == workspace.Camera then
  142. local c = plr.Character:Clone()
  143. c:MakeJoints()
  144. for y,t in pairs(c:GetChildren()) do
  145. if t:IsA("Part") then
  146. t.CanCollide = false
  147. t.Anchored = true
  148. t.Transparency = .5
  149. t.TopSurface = "Smooth"
  150. t.BottomSurface = "Smooth"
  151. t.RightSurface = "Smooth"
  152. t.LeftSurface = "Smooth"
  153. t.FrontSurface = "Smooth"
  154. t.BackSurface = "Smooth"
  155. t.BrickColor = BrickColor.new("Cyan")
  156. if t.Name == "Head" and t:FindFirstChild("face") then
  157. t.face:Remove()
  158. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  159. t.roblox:Remove()
  160. elseif t.Name == "HumanoidRootPart" then
  161. t:Remove()
  162. end
  163. else
  164. t:Remove()
  165. end
  166. end
  167. c.Parent = workspace
  168. game.Debris:AddItem(c,.05)
  169. end
  170. end
  171.  
  172. -- visualizer
  173. local Parts = {}
  174. local Parts2 = {}
  175. local Direction = 1
  176. local loudness = 0
  177. local TColor = BrickColor.new("Black")
  178. for i = 1, 100 do
  179. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  180. p.Size = Vector3.new(0.2, 0.2, 0.2)
  181. p.Anchored = true
  182. p.CanCollide = false
  183. p.Material = "Neon"
  184. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  185. table.insert(Parts, p)
  186. end
  187. for i = 1, 100 do
  188. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  189. p.Size = Vector3.new(0.2, 0.2, 0.2)
  190. p.Anchored = true
  191. p.CanCollide = false
  192. p.Material = "Neon"
  193. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  194. table.insert(Parts2, p)
  195. end
  196. local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  197. sound.SoundId = "rbxassetid://574539049"
  198. sound.Volume = 1
  199. sound:Play()
  200. spawn(function()
  201. local SelectedPart = 0
  202. while true do
  203. if Direction == 1 then
  204. if SelectedPart < #Parts then
  205. SelectedPart = SelectedPart + Direction
  206. else
  207. Direction = -1
  208. TColor = BrickColor.Random()
  209. end
  210. elseif Direction == -1 then
  211. if SelectedPart > 1 then
  212. SelectedPart = SelectedPart + Direction
  213. else
  214. Direction = 1
  215. TColor = BrickColor.Random()
  216. end
  217. end
  218. local sel = Parts[SelectedPart]
  219. local sel2 = Parts2[SelectedPart]
  220. sel.BrickColor = BrickColor.Random()
  221. sel2.BrickColor = BrickColor.Random()
  222. loudness = sound.PlaybackLoudness / 500
  223. sel.Size = Vector3.new(loudness, loudness, 0.2)
  224. sel2.Size = Vector3.new(loudness, loudness, 0.2)
  225. wait()
  226. sel.BrickColor = TColor
  227. sel2.BrickColor = TColor
  228. end
  229. end)
  230. game:GetService("RunService").RenderStepped:connect(function()
  231. for i = 1, #Parts do
  232. if i == 1 then
  233. Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  234. else
  235. Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(-loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  236. end
  237. end
  238. for i = 1, #Parts2 do
  239. if i == 1 then
  240. Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  241. else
  242. Parts2[i].CFrame = Parts2[i].CFrame:lerp(Parts2[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  243. end
  244. end
  245. end)
  246.  
  247. -- visualizer gui
  248.  
  249. local visualizergui = Instance.new("ScreenGui")
  250. local Frame = Instance.new("Frame")
  251. local idvalue = Instance.new("TextBox")
  252. local play = Instance.new("TextButton")
  253. local volume = Instance.new("TextBox")
  254. local pitch = Instance.new("TextBox")
  255. local close = Instance.new("TextButton")
  256. local min = Instance.new("TextButton")
  257. local credits = Instance.new("TextLabel")
  258. local open = Instance.new("TextButton")
  259. local set2 = Instance.new("TextButton")
  260. local set1 = Instance.new("TextButton")
  261. local loop = Instance.new("TextButton")
  262.  
  263. --properties xd
  264. visualizergui.Name = "visualizergui"
  265. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  266.  
  267. Frame.Parent = visualizergui
  268. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  269. Frame.BackgroundTransparency = 0.20000000298023
  270. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  271. Frame.BorderSizePixel = 8
  272. Frame.Position = UDim2.new(0, 51, 0, 213)
  273. Frame.Size = UDim2.new(0, 418, 0, 213)
  274. Frame.Active = true
  275. Frame.Draggable = true
  276. Frame.Visible = false
  277.  
  278. idvalue.Name = "idvalue"
  279. idvalue.Parent = Frame
  280. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  281. idvalue.BackgroundTransparency = 0.5
  282. idvalue.Size = UDim2.new(0, 418, 0, 50)
  283. idvalue.Font = Enum.Font.Fantasy
  284. idvalue.FontSize = Enum.FontSize.Size24
  285. idvalue.Text = "Put ID plz"
  286. idvalue.TextSize = 24
  287.  
  288. play.Name = "play"
  289. play.Parent = Frame
  290. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  291. play.BackgroundTransparency = 0.44999998807907
  292. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  293. play.BorderSizePixel = 3
  294. play.Position = UDim2.new(0, 9, 0, 82)
  295. play.Size = UDim2.new(0, 117, 0, 50)
  296. play.Font = Enum.Font.SourceSans
  297. play.FontSize = Enum.FontSize.Size28
  298. play.Text = "Play"
  299. play.TextSize = 28
  300.  
  301. volume.Name = "volume"
  302. volume.Parent = Frame
  303. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  304. volume.BackgroundTransparency = 0.44999998807907
  305. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  306. volume.BorderSizePixel = 3
  307. volume.Position = UDim2.new(0, 151, 0, 82)
  308. volume.Size = UDim2.new(0, 117, 0, 50)
  309. volume.Font = Enum.Font.SourceSans
  310. volume.FontSize = Enum.FontSize.Size28
  311. volume.Text = "Volume"
  312. volume.TextSize = 28
  313.  
  314. pitch.Name = "pitch"
  315. pitch.Parent = Frame
  316. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  317. pitch.BackgroundTransparency = 0.44999998807907
  318. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  319. pitch.BorderSizePixel = 3
  320. pitch.Position = UDim2.new(0, 291, 0, 82)
  321. pitch.Size = UDim2.new(0, 117, 0, 50)
  322. pitch.Font = Enum.Font.SourceSans
  323. pitch.FontSize = Enum.FontSize.Size28
  324. pitch.Text = "Pitch"
  325. pitch.TextSize = 28
  326.  
  327. close.Name = "close"
  328. close.Parent = Frame
  329. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  330. close.BackgroundTransparency = 0.40000000596046
  331. close.Position = UDim2.new(0, 393, 0, 190)
  332. close.Size = UDim2.new(0, 25, 0, 23)
  333. close.Font = Enum.Font.SourceSans
  334. close.FontSize = Enum.FontSize.Size28
  335. close.Text = "X"
  336. close.TextSize = 28
  337.  
  338. min.Name = "min"
  339. min.Parent = Frame
  340. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  341. min.BackgroundTransparency = 0.40000000596046
  342. min.Position = UDim2.new(0, 357, 0, 190)
  343. min.Size = UDim2.new(0, 25, 0, 23)
  344. min.Font = Enum.Font.SourceSans
  345. min.FontSize = Enum.FontSize.Size36
  346. min.Text = "-"
  347. min.TextSize = 36
  348.  
  349. credits.Name = "credits"
  350. credits.Parent = Frame
  351. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  352. credits.BackgroundTransparency = 1
  353. credits.Position = UDim2.new(0, 0, 0, 161)
  354. credits.Size = UDim2.new(0, 200, 0, 52)
  355. credits.Font = Enum.Font.SourceSans
  356. credits.FontSize = Enum.FontSize.Size14
  357. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  358. credits.TextSize = 14
  359. credits.TextWrapped = true
  360.  
  361. open.Name = "open"
  362. open.Parent = visualizergui
  363. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  364. open.BackgroundTransparency = 0.44999998807907
  365. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  366. open.BorderSizePixel = 3
  367. open.Position = UDim2.new(0, 0, 0, 400)
  368. open.Size = UDim2.new(0, 59, 0, 50)
  369. open.Font = Enum.Font.SourceSans
  370. open.FontSize = Enum.FontSize.Size28
  371. open.Text = "Open"
  372. open.TextSize = 28
  373. open.Visible = false
  374.  
  375. set2.Name = "set2"
  376. set2.Parent = Frame
  377. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  378. set2.BackgroundTransparency = 0.44999998807907
  379. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  380. set2.BorderSizePixel = 3
  381. set2.Position = UDim2.new(0, 325, 0, 136)
  382. set2.Size = UDim2.new(0, 55, 0, 25)
  383. set2.Font = Enum.Font.SourceSans
  384. set2.FontSize = Enum.FontSize.Size24
  385. set2.Text = "Set"
  386. set2.TextSize = 24
  387. set2.TextWrapped = true
  388.  
  389. set1.Name = "set1"
  390. set1.Parent = Frame
  391. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  392. set1.BackgroundTransparency = 0.44999998807907
  393. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  394. set1.BorderSizePixel = 3
  395. set1.Position = UDim2.new(0, 181, 0, 136)
  396. set1.Size = UDim2.new(0, 55, 0, 25)
  397. set1.Font = Enum.Font.SourceSans
  398. set1.FontSize = Enum.FontSize.Size24
  399. set1.Text = "Set"
  400. set1.TextSize = 24
  401. set1.TextWrapped = true
  402.  
  403. loop.Name = "loop"
  404. loop.Parent = Frame
  405. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  406. loop.BackgroundTransparency = 0.44999998807907
  407. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  408. loop.BorderSizePixel = 3
  409. loop.Position = UDim2.new(0, 241, 0, 188)
  410. loop.Size = UDim2.new(0, 84, 0, 25)
  411. loop.Font = Enum.Font.SourceSans
  412. loop.FontSize = Enum.FontSize.Size18
  413. loop.Text = "Loop : OFF"
  414. loop.TextSize = 18
  415. loop.TextWrapped = true
  416.  
  417. -- functions
  418. function start()
  419. wait(0.5)
  420. Frame.Position = UDim2.new(0, -500, 0, 400)
  421. Frame.Visible = true
  422. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  423. end
  424.  
  425. if game.Players.LocalPlayer.Character then
  426. start()
  427. else
  428. print'character not found plz try again XD'
  429. end
  430.  
  431. function minimize()
  432. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  433. credits.Text = ""
  434. min.Text = ""
  435. close.Text = ""
  436. play.Text = ""
  437. pitch.Text = ""
  438. volume.Text = ""
  439. idvalue.Text = ""
  440. set1.Text = ""
  441. set2.Text = ""
  442. loop.Text = ""
  443. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  444. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  445. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  446. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  447. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  448. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  449. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  450. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  451. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  452. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  453. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  454. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  455. wait(0.5)
  456. Frame.Visible = false
  457. open.Visible = true
  458. end
  459.  
  460. function show()
  461. open.Visible = false
  462. Frame.Position = UDim2.new(0, -500, 0, 400)
  463. Frame.Visible = true
  464. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  465. min.Text = "-"
  466. close.Text = "X"
  467. play.Text = "Play"
  468. pitch.Text = "Pitch"
  469. volume.Text = "Volume"
  470. idvalue.Text = "Put ID plz"
  471. set1.Text = "Set"
  472. set2.Text = "Set"
  473. loop.Text = "Loop : OFF"
  474. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  475. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  476. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  477. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  478. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  479. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  480. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  481. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  482. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  483. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  484. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  485. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  486. end
  487.  
  488. function exitdatshit()
  489. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  490. credits.Text = ""
  491. min.Text = ""
  492. close.Text = ""
  493. play.Text = ""
  494. pitch.Text = ""
  495. volume.Text = ""
  496. idvalue.Text = ""
  497. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  498. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  499. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  500. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  501. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  502. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  503. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  504. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  505. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  506. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  507. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  508. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  509. wait(0.5)
  510. visualizergui:Destroy()
  511. end
  512.  
  513. -- events
  514. wait(1)
  515. min.MouseButton1Down:connect(function()
  516. minimize()
  517. end)
  518.  
  519. open.MouseButton1Down:connect(function()
  520. show()
  521. end)
  522.  
  523. close.MouseButton1Down:connect(function()
  524. exitdatshit()
  525. end)
  526.  
  527. set1.MouseButton1Down:connect(function()
  528. sound.Volume = volume.Text
  529. end)
  530.  
  531. set2.MouseButton1Down:connect(function()
  532. sound.Pitch = pitch.Text
  533. end)
  534.  
  535. play.MouseButton1Down:connect(function()
  536. sound.TimePosition = 0
  537. sound.SoundId = "rbxassetid://" .. idvalue.Text
  538. end)
  539.  
  540. loop.MouseButton1Down:connect(function()
  541. if loop.Text == "Loop : OFF" then
  542. sound.Looped = true
  543. loop.Text = "Loop : ON"
  544. else
  545. sound.Looped = false
  546. loop.Text = "Loop : OFF"
  547. end
  548. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement