Advertisement
Exploiter3030

Untitled

Jan 31st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextBox = Instance.new("TextBox")
  8. local TextButton = Instance.new("TextButton")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. Frame.Parent = ScreenGui
  14. Frame.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  15. Frame.Position = UDim2.new(0.638814032, 0, 0.358730167, 0)
  16. Frame.Size = UDim2.new(0, 194, 0, 124)
  17. Frame.Active = true
  18.  
  19.  
  20. TextLabel.Parent = Frame
  21. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  22. TextLabel.Size = UDim2.new(0, 194, 0, 34)
  23. TextLabel.Font = Enum.Font.SourceSans
  24. TextLabel.Text = "VOID SB MUSIC GUI BY yaelcoriano123"
  25. TextLabel.TextColor3 = Color3.new(1, 0, 0.0156863)
  26. TextLabel.TextSize = 14
  27.  
  28. TextBox.Parent = Frame
  29. TextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  30. TextBox.Position = UDim2.new(0, 0, 0.27868852, 0)
  31. TextBox.Size = UDim2.new(0, 194, 0, 34)
  32. TextBox.Font = Enum.Font.SourceSans
  33. TextBox.Text = "ID GOES HERE!"
  34. TextBox.TextColor3 = Color3.new(1, 0, 0.0156863)
  35. TextBox.TextSize = 14
  36.  
  37. TextButton.Parent = Frame
  38. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  39. TextButton.Position = UDim2.new(0, 0, 0.557376981, 0)
  40. TextButton.Size = UDim2.new(0, 194, 0, 55)
  41. TextButton.Font = Enum.Font.SourceSans
  42. TextButton.Text = "PLAY SONG"
  43. TextButton.TextColor3 = Color3.new(1, 0, 0.0156863)
  44. TextButton.TextSize = 14
  45. TextButton.MouseButton1Click:connect(function()
  46. -- This script has been converted to FE by iPxter
  47.  
  48.  
  49. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  50. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  51. do
  52. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  53. script.Parent = Player.Character
  54.  
  55. --RemoteEvent for communicating
  56. local Event = Instance.new("RemoteEvent")
  57. Event.Name = "UserInput_Event"
  58.  
  59. --Fake event to make stuff like Mouse.KeyDown work
  60. local function fakeEvent()
  61. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  62. t.connect = t.Connect
  63. return t
  64. end
  65.  
  66. --Creating fake input objects with fake variables
  67. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  68. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  69. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  70. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  71. end}
  72. --Merged 2 functions into one by checking amount of arguments
  73. CAS.UnbindAction = CAS.BindAction
  74.  
  75. --This function will trigger the events that have been :Connect()'ed
  76. local function te(self,ev,...)
  77. local t = m[ev]
  78. if t and t._fakeEvent and t.Function then
  79. t.Function(...)
  80. end
  81. end
  82. m.TrigEvent = te
  83. UIS.TrigEvent = te
  84.  
  85. Event.OnServerEvent:Connect(function(plr,io)
  86. if plr~=Player then return end
  87. if io.isMouse then
  88. m.Target = io.Target
  89. m.Hit = io.Hit
  90. else
  91. local b = io.UserInputState == Enum.UserInputState.Begin
  92. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  93. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  94. end
  95. for _,t in pairs(CAS.Actions) do
  96. for _,k in pairs(t.Keys) do
  97. if k==io.KeyCode then
  98. t.Function(t.Name,io.UserInputState,io)
  99. end
  100. end
  101. end
  102. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  103. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  104. end
  105. end)
  106. Event.Parent = NLS([==[
  107. local Player = game:GetService("Players").LocalPlayer
  108. local Event = script:WaitForChild("UserInput_Event")
  109.  
  110. local UIS = game:GetService("UserInputService")
  111. local input = function(io,a)
  112. if a then return end
  113. --Since InputObject is a client-side instance, we create and pass table instead
  114. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  115. end
  116. UIS.InputBegan:Connect(input)
  117. UIS.InputEnded:Connect(input)
  118.  
  119. local Mouse = Player:GetMouse()
  120. local h,t
  121. --Give the server mouse data 30 times every second, but only if the values changed
  122. --If player is not moving their mouse, client won't fire events
  123. while wait(1/30) do
  124. if h~=Mouse.Hit or t~=Mouse.Target then
  125. h,t=Mouse.Hit,Mouse.Target
  126. Event:FireServer({isMouse=true,Target=t,Hit=h})
  127. end
  128. end]==],Player.Character)
  129. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  130. end
  131. local s = Instance.new("Sound")
  132.  
  133. s.Name = "Sound"
  134. s.SoundId = "http://www.roblox.com/asset/?id=[TextBox.text] "
  135. s.Volume = 1000
  136. s.Pitch = 1
  137. s.Looped = true
  138. s.archivable = false
  139.  
  140. s.Parent = game.Workspace.yaelcoriano123
  141.  
  142. wait(0)
  143.  
  144. s:play()
  145. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement