RandomNewbieScripter

tail

Aug 22nd, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.53 KB | None | 0 0
  1. --[[
  2. edited by mr steal yo bork with a sweet gui
  3. credits goes to the original creators
  4. --]]
  5.  
  6. -- visualizer
  7. local plr = game.Players.LocalPlayer
  8. local Parts = {}
  9. local Parts2 = {}
  10. local Direction = 1
  11. local loudness = 10
  12. local TColor = BrickColor.new("Black")
  13. plr.Character.Humanoid.MaxHealth = "999999999999999999999999999999999999999"
  14. wait()
  15. plr.Character.Humanoid.Health = "999999999999999999999999999999999999999"
  16. for i = 1, 100 do
  17.  local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  18.  p.Size = Vector3.new(0.2, 0.2, 0.2)
  19.  p.Anchored = true
  20.  p.CanCollide = false
  21.  p.Material = "Neon"
  22.  p.Position = game.Players.LocalPlayer.Character.Torso.Position
  23.  table.insert(Parts, p)
  24. end
  25. for i = 1, 100 do
  26.  local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  27.  p.Size = Vector3.new(0.2, 0.2, 0.2)
  28.  p.Anchored = true
  29.  p.CanCollide = false
  30.  p.Material = "Neon"
  31.  p.Position = game.Players.LocalPlayer.Character.Torso.Position
  32.  table.insert(Parts2, p)
  33. end
  34. local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  35. sound.SoundId = "rbxassetid://574539049"
  36. sound.Volume = 1
  37. sound:Play()
  38. spawn(function()
  39.  local SelectedPart = 0
  40.  while true do
  41.    if Direction == 1 then
  42.      if SelectedPart < #Parts then
  43.        SelectedPart = SelectedPart + Direction
  44.      else
  45.        Direction = -1
  46.        TColor = BrickColor.Random()
  47.      end
  48.    elseif Direction == -1 then
  49.      if SelectedPart > 1 then
  50.        SelectedPart = SelectedPart + Direction
  51.      else
  52.        Direction = 1
  53.        TColor = BrickColor.Random()
  54.      end
  55.    end
  56.    local sel = Parts[SelectedPart]
  57.    local sel2 = Parts2[SelectedPart]
  58.    sel.BrickColor = BrickColor.Random()
  59.    sel2.BrickColor = BrickColor.Random()
  60.    loudness = sound.PlaybackLoudness / 500
  61.    sel.Size = Vector3.new(loudness, loudness, 0.2)
  62.    sel2.Size = Vector3.new(loudness, loudness, 0.2)
  63.    wait()
  64.    sel.BrickColor = TColor
  65.    sel2.BrickColor = TColor
  66.  end
  67. end)
  68. game:GetService("RunService").RenderStepped:connect(function()
  69.  for i = 1, #Parts do
  70.    if i == 1 then
  71.      Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  72.    else
  73.      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)
  74.    end
  75.  end
  76.  for i = 1, #Parts2 do
  77.    if i == 1 then
  78.      Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  79.    else
  80.      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)
  81.    end
  82.  end
  83. end)
  84.  
  85. -- visualizer gui
  86.  
  87. local visualizergui = Instance.new("ScreenGui")
  88. local Frame = Instance.new("Frame")
  89. local idvalue = Instance.new("TextBox")
  90. local play = Instance.new("TextButton")
  91. local volume = Instance.new("TextBox")
  92. local pitch = Instance.new("TextBox")
  93. local close = Instance.new("TextButton")
  94. local min = Instance.new("TextButton")
  95. local credits = Instance.new("TextLabel")
  96. local open = Instance.new("TextButton")
  97. local set2 = Instance.new("TextButton")
  98. local set1 = Instance.new("TextButton")
  99. local loop = Instance.new("TextButton")
  100.  
  101. --properties xd
  102. visualizergui.Name = "visualizergui"
  103. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  104.  
  105. Frame.Parent = visualizergui
  106. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  107. Frame.BackgroundTransparency = 0.20000000298023
  108. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  109. Frame.BorderSizePixel = 8
  110. Frame.Position = UDim2.new(0, 51, 0, 213)
  111. Frame.Size = UDim2.new(0, 418, 0, 213)
  112. Frame.Active = true
  113. Frame.Draggable = true
  114. Frame.Visible = false
  115.  
  116. idvalue.Name = "idvalue"
  117. idvalue.Parent = Frame
  118. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  119. idvalue.BackgroundTransparency = 0.5
  120. idvalue.Size = UDim2.new(0, 418, 0, 50)
  121. idvalue.Font = Enum.Font.Fantasy
  122. idvalue.FontSize = Enum.FontSize.Size24
  123. idvalue.Text = "Put ID plz"
  124. idvalue.TextSize = 24
  125.  
  126. play.Name = "play"
  127. play.Parent = Frame
  128. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  129. play.BackgroundTransparency = 0.44999998807907
  130. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  131. play.BorderSizePixel = 3
  132. play.Position = UDim2.new(0, 9, 0, 82)
  133. play.Size = UDim2.new(0, 117, 0, 50)
  134. play.Font = Enum.Font.SourceSans
  135. play.FontSize = Enum.FontSize.Size28
  136. play.Text = "Play"
  137. play.TextSize = 28
  138.  
  139. volume.Name = "volume"
  140. volume.Parent = Frame
  141. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  142. volume.BackgroundTransparency = 0.44999998807907
  143. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  144. volume.BorderSizePixel = 3
  145. volume.Position = UDim2.new(0, 151, 0, 82)
  146. volume.Size = UDim2.new(0, 117, 0, 50)
  147. volume.Font = Enum.Font.SourceSans
  148. volume.FontSize = Enum.FontSize.Size28
  149. volume.Text = "Volume"
  150. volume.TextSize = 28
  151.  
  152. pitch.Name = "pitch"
  153. pitch.Parent = Frame
  154. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  155. pitch.BackgroundTransparency = 0.44999998807907
  156. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  157. pitch.BorderSizePixel = 3
  158. pitch.Position = UDim2.new(0, 291, 0, 82)
  159. pitch.Size = UDim2.new(0, 117, 0, 50)
  160. pitch.Font = Enum.Font.SourceSans
  161. pitch.FontSize = Enum.FontSize.Size28
  162. pitch.Text = "Pitch"
  163. pitch.TextSize = 28
  164.  
  165. close.Name = "close"
  166. close.Parent = Frame
  167. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  168. close.BackgroundTransparency = 0.40000000596046
  169. close.Position = UDim2.new(0, 393, 0, 190)
  170. close.Size = UDim2.new(0, 25, 0, 23)
  171. close.Font = Enum.Font.SourceSans
  172. close.FontSize = Enum.FontSize.Size28
  173. close.Text = "X"
  174. close.TextSize = 28
  175.  
  176. min.Name = "min"
  177. min.Parent = Frame
  178. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  179. min.BackgroundTransparency = 0.40000000596046
  180. min.Position = UDim2.new(0, 357, 0, 190)
  181. min.Size = UDim2.new(0, 25, 0, 23)
  182. min.Font = Enum.Font.SourceSans
  183. min.FontSize = Enum.FontSize.Size36
  184. min.Text = "-"
  185. min.TextSize = 36
  186.  
  187. credits.Name = "credits"
  188. credits.Parent = Frame
  189. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  190. credits.BackgroundTransparency = 1
  191. credits.Position = UDim2.new(0, 0, 0, 161)
  192. credits.Size = UDim2.new(0, 200, 0, 52)
  193. credits.Font = Enum.Font.SourceSans
  194. credits.FontSize = Enum.FontSize.Size14
  195. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  196. credits.TextSize = 14
  197. credits.TextWrapped = true
  198.  
  199. open.Name = "open"
  200. open.Parent = visualizergui
  201. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  202. open.BackgroundTransparency = 0.44999998807907
  203. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  204. open.BorderSizePixel = 3
  205. open.Position = UDim2.new(0, 0, 0, 400)
  206. open.Size = UDim2.new(0, 59, 0, 50)
  207. open.Font = Enum.Font.SourceSans
  208. open.FontSize = Enum.FontSize.Size28
  209. open.Text = "Open"
  210. open.TextSize = 28
  211. open.Visible = false
  212.  
  213. set2.Name = "set2"
  214. set2.Parent = Frame
  215. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  216. set2.BackgroundTransparency = 0.44999998807907
  217. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  218. set2.BorderSizePixel = 3
  219. set2.Position = UDim2.new(0, 325, 0, 136)
  220. set2.Size = UDim2.new(0, 55, 0, 25)
  221. set2.Font = Enum.Font.SourceSans
  222. set2.FontSize = Enum.FontSize.Size24
  223. set2.Text = "Set"
  224. set2.TextSize = 24
  225. set2.TextWrapped = true
  226.  
  227. set1.Name = "set1"
  228. set1.Parent = Frame
  229. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  230. set1.BackgroundTransparency = 0.44999998807907
  231. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  232. set1.BorderSizePixel = 3
  233. set1.Position = UDim2.new(0, 181, 0, 136)
  234. set1.Size = UDim2.new(0, 55, 0, 25)
  235. set1.Font = Enum.Font.SourceSans
  236. set1.FontSize = Enum.FontSize.Size24
  237. set1.Text = "Set"
  238. set1.TextSize = 24
  239. set1.TextWrapped = true
  240.  
  241. loop.Name = "loop"
  242. loop.Parent = Frame
  243. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  244. loop.BackgroundTransparency = 0.44999998807907
  245. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  246. loop.BorderSizePixel = 3
  247. loop.Position = UDim2.new(0, 241, 0, 188)
  248. loop.Size = UDim2.new(0, 84, 0, 25)
  249. loop.Font = Enum.Font.SourceSans
  250. loop.FontSize = Enum.FontSize.Size18
  251. loop.Text = "Loop : OFF"
  252. loop.TextSize = 18
  253. loop.TextWrapped = true
  254.  
  255. -- functions
  256. function start()
  257. wait(0.5)
  258. Frame.Position = UDim2.new(0, -500, 0, 400)
  259. Frame.Visible = true
  260. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  261. end
  262.  
  263. if game.Players.LocalPlayer.Character then
  264. start()
  265. else
  266. print'character not found plz try again XD'
  267. end
  268.  
  269. function minimize()
  270. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  271. credits.Text = ""
  272. min.Text = ""
  273. close.Text = ""
  274. play.Text = ""
  275. pitch.Text = ""
  276. volume.Text = ""
  277. idvalue.Text = ""
  278. set1.Text = ""
  279. set2.Text = ""
  280. loop.Text = ""
  281. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  282. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  283. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  284. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  285. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  286. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  287. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  288. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  289. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  290. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  291. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  292. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  293.    wait(0.5)
  294. Frame.Visible = false
  295. open.Visible = true
  296. end
  297.  
  298. function show()
  299. open.Visible = false
  300. Frame.Position = UDim2.new(0, -500, 0, 400)
  301. Frame.Visible = true
  302. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  303. min.Text = "-"
  304. close.Text = "X"
  305. play.Text = "Play"
  306. pitch.Text = "Pitch"
  307. volume.Text = "Volume"
  308. idvalue.Text = "Put ID plz"
  309. set1.Text = "Set"
  310. set2.Text = "Set"
  311. loop.Text = "Loop : OFF"
  312. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  313. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  314. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  315. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  316. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  317. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  318. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  319. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  320. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  321. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  322. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  323. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  324. end
  325.  
  326. function exitdatshit()
  327. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  328. credits.Text = ""
  329. min.Text = ""
  330. close.Text = ""
  331. play.Text = ""
  332. pitch.Text = ""
  333. volume.Text = ""
  334. idvalue.Text = ""
  335. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  336. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  337. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  338. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  339. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  340. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  341. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  342. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  343. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  344. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  345. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  346. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  347. wait(0.5)
  348.    visualizergui:Destroy()
  349. end
  350.  
  351. -- events
  352. wait(1)
  353. min.MouseButton1Down:connect(function()
  354. minimize()
  355. end)
  356.  
  357. open.MouseButton1Down:connect(function()
  358. show()
  359. end)
  360.  
  361. close.MouseButton1Down:connect(function()
  362. exitdatshit()
  363. end)
  364.  
  365. set1.MouseButton1Down:connect(function()
  366. sound.Volume = volume.Text
  367. end)
  368.  
  369. set2.MouseButton1Down:connect(function()
  370. sound.Pitch = pitch.Text
  371. end)
  372.  
  373. play.MouseButton1Down:connect(function()
  374. sound.TimePosition = 0
  375. sound.SoundId = "rbxassetid://" .. idvalue.Text
  376. end)
  377.  
  378. loop.MouseButton1Down:connect(function()
  379. if loop.Text == "Loop : OFF" then
  380. sound.Looped = true
  381. loop.Text = "Loop : ON"
  382. else
  383. sound.Looped = false
  384. loop.Text = "Loop : OFF"
  385. end
  386. end)
Add Comment
Please, Sign In to add comment