Advertisement
SuperDragonFost

Untitled

Jul 1st, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.89 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --[[
  89. edited by mr steal yo bork with a sweet gui
  90. credits goes to the original creators
  91. --]]
  92.  
  93. -- visualizer
  94. local Parts = {}
  95. local Parts2 = {}
  96. local Direction = 1
  97. local loudness = 0
  98. local TColor = BrickColor.new("Black")
  99. for i = 1, 100 do
  100. local p = owner
  101. p.Size = Vector3.new(0.2, 0.2, 0.2)
  102. p.Anchored = true
  103. p.CanCollide = false
  104. p.Material = "Neon"
  105. p.Position = owner
  106. table.insert(Parts, p)
  107. end
  108. for i = 1, 100 do
  109. local p = owner
  110. p.Size = Vector3.new(0.2, 0.2, 0.2)
  111. p.Anchored = true
  112. p.CanCollide = false
  113. p.Material = "Neon"
  114. p.Position = owner
  115. table.insert(Parts2, p)
  116. end
  117. local sound = owner
  118. sound.SoundId = "rbxassetid://574539049"
  119. sound.Volume = 1
  120. sound:Play()
  121. spawn(function()
  122. local SelectedPart = 0
  123. while true do
  124. if Direction == 1 then
  125. if SelectedPart < #Parts then
  126. SelectedPart = SelectedPart + Direction
  127. else
  128. Direction = -1
  129. TColor = BrickColor.Random()
  130. end
  131. elseif Direction == -1 then
  132. if SelectedPart > 1 then
  133. SelectedPart = SelectedPart + Direction
  134. else
  135. Direction = 1
  136. TColor = BrickColor.Random()
  137. end
  138. end
  139. local sel = Parts[SelectedPart]
  140. local sel2 = Parts2[SelectedPart]
  141. sel.BrickColor = BrickColor.Random()
  142. sel2.BrickColor = BrickColor.Random()
  143. loudness = sound.PlaybackLoudness / 500
  144. sel.Size = Vector3.new(loudness, loudness, 0.2)
  145. sel2.Size = Vector3.new(loudness, loudness, 0.2)
  146. wait()
  147. sel.BrickColor = TColor
  148. sel2.BrickColor = TColor
  149. end
  150. end)
  151. game:GetService("RunService").RenderStepped:connect(function()
  152. for i = 1, #Parts do
  153. if i == 1 then
  154. Parts[i].CFrame = owner
  155. else
  156. 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)
  157. end
  158. end
  159. for i = 1, #Parts2 do
  160. if i == 1 then
  161. Parts2[i].CFrame = owner
  162. else
  163. 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)
  164. end
  165. end
  166. end)
  167.  
  168. -- visualizer gui
  169.  
  170. local visualizergui = Instance.new("ScreenGui")
  171. local Frame = Instance.new("Frame")
  172. local idvalue = Instance.new("TextBox")
  173. local play = Instance.new("TextButton")
  174. local volume = Instance.new("TextBox")
  175. local pitch = Instance.new("TextBox")
  176. local close = Instance.new("TextButton")
  177. local min = Instance.new("TextButton")
  178. local credits = Instance.new("TextLabel")
  179. local open = Instance.new("TextButton")
  180. local set2 = Instance.new("TextButton")
  181. local set1 = Instance.new("TextButton")
  182. local loop = Instance.new("TextButton")
  183.  
  184. --properties xd
  185. visualizergui.Name = "visualizergui"
  186. visualizergui.Parent = owner
  187.  
  188. Frame.Parent = visualizergui
  189. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  190. Frame.BackgroundTransparency = 0.20000000298023
  191. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  192. Frame.BorderSizePixel = 8
  193. Frame.Position = UDim2.new(0, 51, 0, 213)
  194. Frame.Size = UDim2.new(0, 418, 0, 213)
  195. Frame.Active = true
  196. Frame.Draggable = true
  197. Frame.Visible = false
  198.  
  199. idvalue.Name = "idvalue"
  200. idvalue.Parent = Frame
  201. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  202. idvalue.BackgroundTransparency = 0.5
  203. idvalue.Size = UDim2.new(0, 418, 0, 50)
  204. idvalue.Font = Enum.Font.Fantasy
  205. idvalue.FontSize = Enum.FontSize.Size24
  206. idvalue.Text = "Put ID plz"
  207. idvalue.TextSize = 24
  208.  
  209. play.Name = "play"
  210. play.Parent = Frame
  211. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  212. play.BackgroundTransparency = 0.44999998807907
  213. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  214. play.BorderSizePixel = 3
  215. play.Position = UDim2.new(0, 9, 0, 82)
  216. play.Size = UDim2.new(0, 117, 0, 50)
  217. play.Font = Enum.Font.SourceSans
  218. play.FontSize = Enum.FontSize.Size28
  219. play.Text = "Play"
  220. play.TextSize = 28
  221.  
  222. volume.Name = "volume"
  223. volume.Parent = Frame
  224. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  225. volume.BackgroundTransparency = 0.44999998807907
  226. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  227. volume.BorderSizePixel = 3
  228. volume.Position = UDim2.new(0, 151, 0, 82)
  229. volume.Size = UDim2.new(0, 117, 0, 50)
  230. volume.Font = Enum.Font.SourceSans
  231. volume.FontSize = Enum.FontSize.Size28
  232. volume.Text = "Volume"
  233. volume.TextSize = 28
  234.  
  235. pitch.Name = "pitch"
  236. pitch.Parent = Frame
  237. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  238. pitch.BackgroundTransparency = 0.44999998807907
  239. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  240. pitch.BorderSizePixel = 3
  241. pitch.Position = UDim2.new(0, 291, 0, 82)
  242. pitch.Size = UDim2.new(0, 117, 0, 50)
  243. pitch.Font = Enum.Font.SourceSans
  244. pitch.FontSize = Enum.FontSize.Size28
  245. pitch.Text = "Pitch"
  246. pitch.TextSize = 28
  247.  
  248. close.Name = "close"
  249. close.Parent = Frame
  250. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  251. close.BackgroundTransparency = 0.40000000596046
  252. close.Position = UDim2.new(0, 393, 0, 190)
  253. close.Size = UDim2.new(0, 25, 0, 23)
  254. close.Font = Enum.Font.SourceSans
  255. close.FontSize = Enum.FontSize.Size28
  256. close.Text = "X"
  257. close.TextSize = 28
  258.  
  259. min.Name = "min"
  260. min.Parent = Frame
  261. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  262. min.BackgroundTransparency = 0.40000000596046
  263. min.Position = UDim2.new(0, 357, 0, 190)
  264. min.Size = UDim2.new(0, 25, 0, 23)
  265. min.Font = Enum.Font.SourceSans
  266. min.FontSize = Enum.FontSize.Size36
  267. min.Text = "-"
  268. min.TextSize = 36
  269.  
  270. credits.Name = "credits"
  271. credits.Parent = Frame
  272. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  273. credits.BackgroundTransparency = 1
  274. credits.Position = UDim2.new(0, 0, 0, 161)
  275. credits.Size = UDim2.new(0, 200, 0, 52)
  276. credits.Font = Enum.Font.SourceSans
  277. credits.FontSize = Enum.FontSize.Size14
  278. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  279. credits.TextSize = 14
  280. credits.TextWrapped = true
  281.  
  282. open.Name = "open"
  283. open.Parent = visualizergui
  284. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  285. open.BackgroundTransparency = 0.44999998807907
  286. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  287. open.BorderSizePixel = 3
  288. open.Position = UDim2.new(0, 0, 0, 400)
  289. open.Size = UDim2.new(0, 59, 0, 50)
  290. open.Font = Enum.Font.SourceSans
  291. open.FontSize = Enum.FontSize.Size28
  292. open.Text = "Open"
  293. open.TextSize = 28
  294. open.Visible = false
  295.  
  296. set2.Name = "set2"
  297. set2.Parent = Frame
  298. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  299. set2.BackgroundTransparency = 0.44999998807907
  300. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  301. set2.BorderSizePixel = 3
  302. set2.Position = UDim2.new(0, 325, 0, 136)
  303. set2.Size = UDim2.new(0, 55, 0, 25)
  304. set2.Font = Enum.Font.SourceSans
  305. set2.FontSize = Enum.FontSize.Size24
  306. set2.Text = "Set"
  307. set2.TextSize = 24
  308. set2.TextWrapped = true
  309.  
  310. set1.Name = "set1"
  311. set1.Parent = Frame
  312. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  313. set1.BackgroundTransparency = 0.44999998807907
  314. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  315. set1.BorderSizePixel = 3
  316. set1.Position = UDim2.new(0, 181, 0, 136)
  317. set1.Size = UDim2.new(0, 55, 0, 25)
  318. set1.Font = Enum.Font.SourceSans
  319. set1.FontSize = Enum.FontSize.Size24
  320. set1.Text = "Set"
  321. set1.TextSize = 24
  322. set1.TextWrapped = true
  323.  
  324. loop.Name = "loop"
  325. loop.Parent = Frame
  326. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  327. loop.BackgroundTransparency = 0.44999998807907
  328. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  329. loop.BorderSizePixel = 3
  330. loop.Position = UDim2.new(0, 241, 0, 188)
  331. loop.Size = UDim2.new(0, 84, 0, 25)
  332. loop.Font = Enum.Font.SourceSans
  333. loop.FontSize = Enum.FontSize.Size18
  334. loop.Text = "Loop : OFF"
  335. loop.TextSize = 18
  336. loop.TextWrapped = true
  337.  
  338. -- functions
  339. function start()
  340. wait(0.5)
  341. Frame.Position = UDim2.new(0, -500, 0, 400)
  342. Frame.Visible = true
  343. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  344. end
  345.  
  346. if game.Players.LocalPlayer.Character then
  347. start()
  348. else
  349. print'character not found plz try again XD'
  350. end
  351.  
  352. function minimize()
  353. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  354. credits.Text = ""
  355. min.Text = ""
  356. close.Text = ""
  357. play.Text = ""
  358. pitch.Text = ""
  359. volume.Text = ""
  360. idvalue.Text = ""
  361. set1.Text = ""
  362. set2.Text = ""
  363. loop.Text = ""
  364. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  365. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  366. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  367. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  368. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  369. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  370. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  371. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  372. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  373. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  374. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  375. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  376. wait(0.5)
  377. Frame.Visible = false
  378. open.Visible = true
  379. end
  380.  
  381. function show()
  382. open.Visible = false
  383. Frame.Position = UDim2.new(0, -500, 0, 400)
  384. Frame.Visible = true
  385. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  386. min.Text = "-"
  387. close.Text = "X"
  388. play.Text = "Play"
  389. pitch.Text = "Pitch"
  390. volume.Text = "Volume"
  391. idvalue.Text = "Put ID plz"
  392. set1.Text = "Set"
  393. set2.Text = "Set"
  394. loop.Text = "Loop : OFF"
  395. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  396. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  397. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  398. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  399. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  400. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  401. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  402. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  403. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  404. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  405. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  406. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  407. end
  408.  
  409. function exitdatshit()
  410. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  411. credits.Text = ""
  412. min.Text = ""
  413. close.Text = ""
  414. play.Text = ""
  415. pitch.Text = ""
  416. volume.Text = ""
  417. idvalue.Text = ""
  418. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  419. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  420. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  421. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  422. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  423. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  424. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  425. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  426. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  427. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  428. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  429. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  430. wait(0.5)
  431. visualizergui:Destroy()
  432. end
  433.  
  434. -- events
  435. wait(1)
  436. min.MouseButton1Down:connect(function()
  437. minimize()
  438. end)
  439.  
  440. open.MouseButton1Down:connect(function()
  441. show()
  442. end)
  443.  
  444. close.MouseButton1Down:connect(function()
  445. exitdatshit()
  446. end)
  447.  
  448. set1.MouseButton1Down:connect(function()
  449. sound.Volume = volume.Text
  450. end)
  451.  
  452. set2.MouseButton1Down:connect(function()
  453. sound.Pitch = pitch.Text
  454. end)
  455.  
  456. play.MouseButton1Down:connect(function()
  457. sound.TimePosition = 0
  458. sound.SoundId = "rbxassetid://" .. idvalue.Text
  459. end)
  460.  
  461. loop.MouseButton1Down:connect(function()
  462. if loop.Text == "Loop : OFF" then
  463. sound.Looped = true
  464. loop.Text = "Loop : ON"
  465. else
  466. sound.Looped = false
  467. loop.Text = "Loop : OFF"
  468. end
  469. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement