SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} |
1 | + | |
2 | - | do |
2 | + | NLS([==[ |
3 | - | script.Parent = owner.Character |
3 | + | while wait() do |
4 | - | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" |
4 | + | game:service'Players'.LocalPlayer.Character.Event:FireServer(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Music.PlaybackLoudness) |
5 | - | local function NewFakeEvent() |
5 | + | |
6 | - | local Bind = Instance.new("BindableEvent") |
6 | + | ]==], char) |
7 | - | local Fake;Fake = {Connections = {}, |
7 | + | |
8 | - | fakeEvent=true; |
8 | + | --[[ Debounce ]]-- |
9 | - | Connect=function(self,Func) |
9 | + | |
10 | - | Bind.Event:connect(Func) |
10 | + | function debounce(func) |
11 | - | self.Connections[Bind] = true |
11 | + | local isRunning = false |
12 | - | return setmetatable({Connected = true},{ |
12 | + | return function(...) |
13 | - | __index = function (self,Index) |
13 | + | if not isRunning then |
14 | - | if Index:lower() == "disconnect" then |
14 | + | isRunning = true |
15 | - | return function() Fake.Connections[Bind] = false;self.Connected = false end |
15 | + | |
16 | - | end |
16 | + | func(...) |
17 | - | return Fake[Index] |
17 | + | |
18 | - | end; |
18 | + | isRunning = false |
19 | - | __tostring = function() return "Connection" end; |
19 | + | |
20 | - | }) |
20 | + | |
21 | - | end} |
21 | + | |
22 | - | Fake.connect = Fake.Connect;return Fake; |
22 | + | |
23 | local player = owner | |
24 | - | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
24 | + | |
25 | - | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
25 | + | |
26 | - | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
26 | + | |
27 | - | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
27 | + | |
28 | - | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
28 | + | |
29 | - | local function TriggerEvent(self,Event,...) |
29 | + | |
30 | - | local Trigger = Mouse[Event] |
30 | + | |
31 | - | if Trigger and Trigger.fakeEvent and Trigger.Connections then |
31 | + | |
32 | - | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end |
32 | + | |
33 | weld.C1 = c1 | |
34 | end | |
35 | - | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent |
35 | + | |
36 | - | Event.OnServerEvent:Connect(function(FiredBy,Input) |
36 | + | |
37 | - | if FiredBy.Name ~= owner.Name then return end |
37 | + | |
38 | - | if Input.MouseEvent then |
38 | + | |
39 | - | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit |
39 | + | |
40 | - | else |
40 | + | |
41 | - | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
41 | + | |
42 | - | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end |
42 | + | |
43 | - | for _,Action in pairs(ContextActionService.Actions) do |
43 | + | |
44 | - | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end |
44 | + | |
45 | - | end |
45 | + | |
46 | - | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
46 | + | |
47 | - | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
47 | + | |
48 | radio_mesh.VertexColor = Vector3.new(1, 1, 1) | |
49 | - | end) |
49 | + | |
50 | - | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
50 | + | |
51 | - | Event.Parent = NLS([[ |
51 | + | |
52 | - | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() |
52 | + | |
53 | - | local Input = function(Input,gameProcessedEvent) |
53 | + | |
54 | - | if gameProcessedEvent then return end |
54 | + | |
55 | - | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
55 | + | |
56 | local Frame = Instance.new("Frame") | |
57 | - | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) |
57 | + | |
58 | - | local Hit,Target |
58 | + | |
59 | - | while wait(1/30) do |
59 | + | |
60 | - | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
60 | + | |
61 | - | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
61 | + | |
62 | - | end |
62 | + | |
63 | RadioGui.Name = "RadioGui" | |
64 | - | ]],owner.Character) |
64 | + | |
65 | RadioGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
66 | - | RealGame = game;game = setmetatable({},{ |
66 | + | |
67 | - | __index = function (self,Index) |
67 | + | |
68 | - | local Sandbox = function (Thing) |
68 | + | |
69 | - | if Thing:IsA("Player") then |
69 | + | |
70 | - | local RealPlayer = Thing |
70 | + | |
71 | - | return setmetatable({},{ |
71 | + | |
72 | - | __index = function (self,Index) |
72 | + | |
73 | - | local Type = type(RealPlayer[Index]) |
73 | + | |
74 | - | if Type == "function" then |
74 | + | |
75 | - | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
75 | + | |
76 | - | return function (self)return InternalData["Mouse"] end |
76 | + | |
77 | - | end |
77 | + | |
78 | - | return function (self,...)return RealPlayer[Index](RealPlayer,...) end |
78 | + | |
79 | - | end |
79 | + | |
80 | - | return RealPlayer[Index] |
80 | + | |
81 | - | end; |
81 | + | |
82 | - | __tostring = function(self) return RealPlayer.Name end |
82 | + | |
83 | - | }) |
83 | + | |
84 | - | end |
84 | + | |
85 | Title.TextScaled = true | |
86 | - | if RealGame[Index] then |
86 | + | |
87 | - | local Type = type(RealGame[Index]) |
87 | + | |
88 | - | if Type == "function" then |
88 | + | |
89 | - | if Index:lower() == "getservice" or Index:lower() == "service" then |
89 | + | |
90 | - | return function (self,Service) |
90 | + | |
91 | - | local FakeServices = { |
91 | + | |
92 | - | ["players"] = function() |
92 | + | |
93 | - | return setmetatable({},{ |
93 | + | |
94 | - | __index = function (self2,Index2) |
94 | + | |
95 | - | local RealService = RealGame:GetService(Service) |
95 | + | |
96 | - | local Type2 = type(Index2) |
96 | + | |
97 | - | if Type2 == "function" then |
97 | + | |
98 | - | return function (self,...) return RealService[Index2](RealService,...)end |
98 | + | |
99 | - | else |
99 | + | |
100 | - | if Index2:lower() == "localplayer" then return Sandbox(owner) end |
100 | + | |
101 | - | return RealService[Index2] |
101 | + | |
102 | - | end |
102 | + | |
103 | - | end; |
103 | + | |
104 | - | __tostring = function(self) return RealGame:GetService(Service).Name end |
104 | + | |
105 | - | }) |
105 | + | |
106 | - | end; |
106 | + | |
107 | - | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; |
107 | + | |
108 | - | ["userinputservice"] = function() return InternalData["UserInputService"] end; |
108 | + | |
109 | - | ["runservice"] = function() |
109 | + | |
110 | - | return setmetatable({},{ |
110 | + | |
111 | - | __index = function(self2,Index2) |
111 | + | |
112 | - | local RealService = RealGame:GetService(Service) |
112 | + | |
113 | - | local Type2 = type(Index2) |
113 | + | |
114 | - | if Type2 == "function" then |
114 | + | |
115 | - | return function (self,...) return RealService[Index2](RealService,...) end |
115 | + | |
116 | - | else |
116 | + | |
117 | - | local RunServices = { |
117 | + | |
118 | - | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; |
118 | + | |
119 | - | ["renderstepped"] = function() return RealService["Stepped"] end |
119 | + | |
120 | - | } |
120 | + | |
121 | - | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end |
121 | + | |
122 | - | return RealService[Index2] |
122 | + | |
123 | - | end |
123 | + | |
124 | - | end |
124 | + | |
125 | - | }) |
125 | + | |
126 | - | end |
126 | + | |
127 | - | } |
127 | + | |
128 | - | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end |
128 | + | |
129 | - | return RealGame:GetService(Service) |
129 | + | |
130 | - | end |
130 | + | |
131 | - | end |
131 | + | |
132 | - | return function (self,...) return RealGame[Index](RealGame,...) end |
132 | + | |
133 | - | else |
133 | + | |
134 | - | if game:GetService(Index) then return game:GetService(Index) end |
134 | + | |
135 | - | return RealGame[Index] |
135 | + | |
136 | - | end |
136 | + | |
137 | SoundID.Size = UDim2.new(0.566310227, 0, 0.269043893, 0) | |
138 | - | return nil |
138 | + | |
139 | SoundID.PlaceholderColor3 = Color3.new(1, 1, 1) | |
140 | - | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") |
140 | + | |
141 | SoundID.Text = "" | |
142 | SoundID.TextColor3 = Color3.new(1, 1, 1) | |
143 | SoundID.TextScaled = true | |
144 | SoundID.TextSize = 14 | |
145 | SoundID.TextWrapped = true | |
146 | ||
147 | local radio_billboard_gui = Instance.new("BillboardGui", character.Head) | |
148 | radio_billboard_gui.Name = "RadioBillboardGUI" | |
149 | radio_billboard_gui.Adornee = character.Head | |
150 | radio_billboard_gui.AlwaysOnTop = true | |
151 | radio_billboard_gui.ExtentsOffsetWorldSpace = Vector3.new(0, 9, 0) | |
152 | radio_billboard_gui.Size = UDim2.new(8, 0, 6, 0) | |
153 | local radio_billboard_gui_textlabel = Instance.new("TextLabel", radio_billboard_gui) | |
154 | radio_billboard_gui_textlabel.BackgroundTransparency = 1 | |
155 | radio_billboard_gui_textlabel.BorderColor3 = Color3.fromRGB(0, 0, 0) | |
156 | radio_billboard_gui_textlabel.BorderSizePixel = 0 | |
157 | radio_billboard_gui_textlabel.Size = UDim2.new(1, 0, 1, 0) | |
158 | radio_billboard_gui_textlabel.Text = "Right now playing: " | |
159 | radio_billboard_gui_textlabel.TextColor3 = Color3.fromRGB(0, 0, 0) | |
160 | radio_billboard_gui_textlabel.TextSize = 18 | |
161 | radio_billboard_gui_textlabel.TextWrapped = true | |
162 | ||
163 | function zigzag(x) | |
164 | return math.acos(math.cos(x * math.pi)) / math.pi | |
165 | end | |
166 | ||
167 | PlayButton.MouseButton1Click:Connect(function() | |
168 | if sound.IsPaused == true then | |
169 | sound:Resume() | |
170 | else | |
171 | sound.SoundId = "rbxassetid://"..tonumber(SoundID.Text) | |
172 | sound:Play() | |
173 | local info = market_place_service:GetProductInfo(tonumber(SoundID.Text)) | |
174 | radio_billboard_gui_textlabel.Text = "Right now playing: "..info.Name | |
175 | end | |
176 | end) | |
177 | ||
178 | PauseButton.MouseButton1Click:Connect(function() | |
179 | sound:Pause() | |
180 | end) | |
181 | ||
182 | StopButton.MouseButton1Click:Connect(function() | |
183 | sound:Stop() | |
184 | end) | |
185 | ||
186 | local while_wait_do1 = coroutine.create(function() | |
187 | local counter = 0 | |
188 | while wait(0.1) do | |
189 | Frame.BackgroundColor3 = Color3.fromHSV(zigzag(counter), 1, 1) | |
190 | counter = counter + 0.01 | |
191 | end | |
192 | end) | |
193 | coroutine.resume(while_wait_do1) | |
194 | ||
195 | local while_wait_do2 = coroutine.create(function() | |
196 | local counter = 0 | |
197 | while wait(0.1) do | |
198 | radio_billboard_gui_textlabel.TextColor3 = Color3.fromHSV(zigzag(counter), 1, 1) | |
199 | counter = counter + 0.01 | |
200 | end | |
201 | end) | |
202 | coroutine.resume(while_wait_do2) | |
203 | ||
204 | local while_wait_do3 = coroutine.create(function() | |
205 | while true do | |
206 | wait(0.005) | |
207 | radio_billboard_gui_textlabel.Rotation = radio_billboard_gui_textlabel.Rotation + 0.07 | |
208 | end | |
209 | end) | |
210 | coroutine.resume(while_wait_do3) |