View difference between Paste ID: BpRGjuF9 and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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 | ThePlayersNameHere="wrrrryyyyyyyyyyyyyyy"--YOUR NAME HERE | |
88 | ||
89 | local function PLRMSG() | |
90 | if | |
91 | ValidationCode == "ELT007" | |
92 | then | |
93 | plrmsg = Instance.new("Message",Workspace) | |
94 | plrmsg.Text = " Explorer V2 BETA 1 Has Been Loaded !" | |
95 | Wait(3) | |
96 | plrmsg.Text = ""--add whatever you want here | |
97 | Wait(3) | |
98 | plrmsg.Parent = nil | |
99 | end | |
100 | end | |
101 | PLRMSG() | |
102 | ||
103 | local name = "Magicboopoo"--YOUR NAME HERE | |
104 | ||
105 | repeat wait() until #Game.Players:GetChildren( | |
106 | ) > 0 | |
107 | ||
108 | local char = Game.Players:FindFirstChild(name) or (Game.Players:GetChildren( | |
109 | )[1].Name:sub(1,6) == "Player" and Game.Players:GetChildren( | |
110 | )[1] | |
111 | ) | |
112 | if not char then return end | |
113 | local current = Workspace | |
114 | local cp = 0 | |
115 | local fontcolor = Color3.new(1,1,1) | |
116 | local bordercolor = Color3.new(1,0,0) | |
117 | local backgroundcolor = Color3.new(0,0,0) | |
118 | local backgroundtrans = .35 | |
119 | local copy = nil | |
120 | local sP = { | |
121 | "Name"; | |
122 | "ClassName"; | |
123 | "BrickColor"; | |
124 | "Position" | |
125 | } | |
126 | ||
127 | local sg = Instance.new("ScreenGui") | |
128 | sg.Parent = char.PlayerGui | |
129 | ||
130 | local ok = Instance.new("TextButton", sg) | |
131 | ok.Size = UDim2.new(.6,0,.05,0) | |
132 | ok.Position = UDim2.new(.2,0,.6,0) | |
133 | ok.FontSize = "Size18" | |
134 | ok.Text = "Accept" | |
135 | ok.TextColor3 = Color3.new(1,1,1) | |
136 | ok.Style = "RobloxButton" | |
137 | ||
138 | local fontS1 = Instance.new("Frame", sg) | |
139 | fontS1.Size = UDim2.new(.2,0,.2,0) | |
140 | fontS1.Style = "RobloxRound" | |
141 | fontS1.Position = UDim2.new(.2,0,.4,0) | |
142 | local tb1 = Instance.new("TextLabel", fontS1) | |
143 | tb1.Text = "Font Color" | |
144 | tb1.FontSize = "Size12" | |
145 | tb1.BackgroundTransparency = 1 | |
146 | tb1.TextColor3 = Color3.new(1,1,1) | |
147 | tb1.Size = UDim2.new(1,0,.25,0) | |
148 | local r1 = Instance.new("TextBox", fontS1) | |
149 | r1.Position = UDim2.new(0,0,.25,0) | |
150 | r1.TextColor3 = Color3.new(1,1,1) | |
151 | r1.BackgroundTransparency = 1 | |
152 | r1.Size = UDim2.new(.3,0,.25,0) | |
153 | r1.Text = "0" | |
154 | local g1 = Instance.new("TextBox", fontS1) | |
155 | g1.Position = UDim2.new(.3,0,.25,0) | |
156 | g1.TextColor3 = Color3.new(1,1,1) | |
157 | g1.BackgroundTransparency = 1 | |
158 | g1.Size = UDim2.new(.3,0,.25,0) | |
159 | g1.Text = "0" | |
160 | local b1 = Instance.new("TextBox", fontS1) | |
161 | b1.Position = UDim2.new(.6,0,.25,0) | |
162 | b1.TextColor3 = Color3.new(1,1,1) | |
163 | b1.BackgroundTransparency = 1 | |
164 | b1.Size = UDim2.new(.3,0,.25,0) | |
165 | b1.Text = "0" | |
166 | local prev1 = Instance.new("Frame", fontS1) | |
167 | prev1.Size = UDim2.new(1,0,.5,0) | |
168 | prev1.Position = UDim2.new(0,0,.5,0) | |
169 | prev1.BackgroundColor3 = Color3.new(0,0,0) | |
170 | prev1.BorderColor3 = Color3.new(0,0,0) | |
171 | r1.Changed:connect(function() | |
172 | local color = tonumber(r1.Text) or 0 | |
173 | prev1.BackgroundColor3 = Color3.new(color, tonumber(g1.Text) or 0, tonumber(b1.Text) or 0) | |
174 | end) | |
175 | g1.Changed:connect(function() | |
176 | local color = tonumber(g1.Text) or 0 | |
177 | prev1.BackgroundColor3 = Color3.new(tonumber(r1.Text) or 0, color, tonumber(b1.Text) or 0) | |
178 | end) | |
179 | b1.Changed:connect(function() | |
180 | local color = tonumber(b1.Text) or 0 | |
181 | prev1.BackgroundColor3 = Color3.new(tonumber(r1.Text) or 0, tonumber(g1.Text) or 0, color) | |
182 | end) | |
183 | ValidationCode="ELT007"--don't change this or the script wont work | |
184 | local FontS2 = Instance.new("Frame", sg) | |
185 | FontS2.Size = UDim2.new(.2,0,.2,0) | |
186 | FontS2.Style = "RobloxRound" | |
187 | FontS2.Position = UDim2.new(.4,0,.4,0) | |
188 | local tb2 = Instance.new("TextLabel", FontS2) | |
189 | tb2.Text = "Background Color" | |
190 | tb2.FontSize = "Size12" | |
191 | tb2.BackgroundTransparency = 1 | |
192 | tb2.TextColor3 = Color3.new(1,1,1) | |
193 | tb2.Size = UDim2.new(1,0,.25,0) | |
194 | local r2 = Instance.new("TextBox", FontS2) | |
195 | r2.Position = UDim2.new(0,0,.25,0) | |
196 | r2.TextColor3 = Color3.new(1,1,1) | |
197 | r2.BackgroundTransparency = 1 | |
198 | r2.Size = UDim2.new(.3,0,.25,0) | |
199 | r2.Text = "0" | |
200 | local g2 = Instance.new("TextBox", FontS2) | |
201 | g2.Position = UDim2.new(.3,0,.25,0) | |
202 | g2.TextColor3 = Color3.new(1,1,1) | |
203 | g2.BackgroundTransparency = 1 | |
204 | g2.Size = UDim2.new(.3,0,.25,0) | |
205 | g2.Text = "0" | |
206 | local b2 = Instance.new("TextBox", FontS2) | |
207 | b2.Position = UDim2.new(.6,0,.25,0) | |
208 | b2.TextColor3 = Color3.new(1,1,1) | |
209 | b2.BackgroundTransparency = 1 | |
210 | b2.Size = UDim2.new(.3,0,.25,0) | |
211 | b2.Text = "0" | |
212 | local prev2 = Instance.new("Frame", FontS2) | |
213 | prev2.Size = UDim2.new(1,0,.5,0) | |
214 | prev2.Position = UDim2.new(0,0,.5,0) | |
215 | prev2.BackgroundColor3 = Color3.new(0,0,0) | |
216 | prev2.BorderColor3 = Color3.new(0,0,0) | |
217 | r2.Changed:connect(function() | |
218 | local color = tonumber(r2.Text) or 0 | |
219 | prev2.BackgroundColor3 = Color3.new(color, tonumber(g2.Text) or 0, tonumber(b2.Text) or 0) | |
220 | end) | |
221 | g2.Changed:connect(function() | |
222 | local color = tonumber(g2.Text) or 0 | |
223 | prev2.BackgroundColor3 = Color3.new(tonumber(r2.Text) or 0, color, tonumber(b2.Text) or 0) | |
224 | end) | |
225 | b2.Changed:connect(function() | |
226 | local color = tonumber(b2.Text) or 0 | |
227 | prev2.BackgroundColor3 = Color3.new(tonumber(r2.Text) or 0, tonumber(g2.Text) or 0, color) | |
228 | end) | |
229 | ||
230 | local fontS3 = Instance.new("Frame", sg) | |
231 | fontS3.Size = UDim2.new(.2,0,.2,0) | |
232 | fontS3.Style = "RobloxRound" | |
233 | fontS3.Position = UDim2.new(.6,0,.4,0) | |
234 | local tb3 = Instance.new("TextLabel", fontS3) | |
235 | tb3.Text = "Border Color" | |
236 | tb3.FontSize = "Size12" | |
237 | tb3.BackgroundTransparency = 1 | |
238 | tb3.TextColor3 = Color3.new(1,1,1) | |
239 | tb3.Size = UDim2.new(1,0,.25,0) | |
240 | local r3 = Instance.new("TextBox", fontS3) | |
241 | r3.Position = UDim2.new(0,0,.25,0) | |
242 | r3.TextColor3 = Color3.new(1,1,1) | |
243 | r3.BackgroundTransparency = 1 | |
244 | r3.Size = UDim2.new(.3,0,.25,0) | |
245 | r3.Text = "0" | |
246 | local g3 = Instance.new("TextBox", fontS3) | |
247 | g3.Position = UDim2.new(.3,0,.25,0) | |
248 | g3.TextColor3 = Color3.new(1,1,1) | |
249 | g3.BackgroundTransparency = 1 | |
250 | g3.Size = UDim2.new(.3,0,.25,0) | |
251 | g3.Text = "0" | |
252 | local b3 = Instance.new("TextBox", fontS3) | |
253 | b3.Position = UDim2.new(.6,0,.25,0) | |
254 | b3.TextColor3 = Color3.new(1,1,1) | |
255 | b3.BackgroundTransparency = 1 | |
256 | b3.Size = UDim2.new(.3,0,.25,0) | |
257 | b3.Text = "0" | |
258 | local prev3 = Instance.new("Frame", fontS3) | |
259 | prev3.Size = UDim2.new(1,0,.5,0) | |
260 | prev3.Position = UDim2.new(0,0,.5,0) | |
261 | prev3.BackgroundColor3 = Color3.new(0,0,0) | |
262 | prev3.BorderColor3 = Color3.new(0,0,0) | |
263 | r3.Changed:connect(function() | |
264 | local color = tonumber(r3.Text) or 0 | |
265 | prev3.BackgroundColor3 = Color3.new(color, tonumber(g3.Text) or 0, tonumber(b3.Text) or 0) | |
266 | end) | |
267 | g3.Changed:connect(function() | |
268 | local color = tonumber(g3.Text) or 0 | |
269 | prev3.BackgroundColor3 = Color3.new(tonumber(r3.Text) or 0, color, tonumber(b3.Text) or 0) | |
270 | end) | |
271 | b3.Changed:connect(function() | |
272 | local color = tonumber(b3.Text) or 0 | |
273 | prev3.BackgroundColor3 = Color3.new(tonumber(r3.Text) or 0, tonumber(g3.Text) or 0, color) | |
274 | end) | |
275 | ||
276 | ok.MouseButton1Click:wait() | |
277 | ||
278 | local fontcolor = prev1.BackgroundColor3 | |
279 | local backgroundcolor = prev2.BackgroundColor3 | |
280 | local bordercolor = prev3.BackgroundColor3 | |
281 | fontS1:Destroy() | |
282 | FontS2:Destroy() | |
283 | fontS3:Destroy() | |
284 | ok:Destroy() | |
285 | ||
286 | local fr = Instance.new("Frame", sg) | |
287 | fr.Style = "RobloxRound" | |
288 | fr.Size = UDim2.new(.35,0,.5,0) | |
289 | fr.Position = UDim2.new(0,0,.25,0) | |
290 | ||
291 | local sb = Instance.new("TextButton", sg) -- Scrollbar | |
292 | local issbDown = false | |
293 | local sblasty = nil | |
294 | sb.Size = UDim2.new(.035,0,.5,0) | |
295 | sb.Position = UDim2.new(.35,0,.25,0) | |
296 | sb.BackgroundTransparency = backgroundtrans | |
297 | sb.TextColor3 = fontcolor | |
298 | sb.BorderColor3 = bordercolor | |
299 | sb.BackgroundColor3 = backgroundcolor | |
300 | sb.Text = "=" | |
301 | sb.MouseButton1Down:connect(function() | |
302 | issbDown = true | |
303 | end) | |
304 | sb.MouseButton1Up:connect(function() | |
305 | issbDown = false | |
306 | end) | |
307 | sb.MouseLeave:connect(function() | |
308 | issbDown = false | |
309 | end) | |
310 | sb.MouseEnter:connect(function() | |
311 | issbDown = false | |
312 | end) | |
313 | sb.MouseMoved:connect(function(x,y) | |
314 | if issbDown then | |
315 | if not sblasty then sblasty = y end | |
316 | if sblasty - y < 0 then | |
317 | -- moving up | |
318 | for i,v in pairs(fr:GetChildren()) do | |
319 | v.Position = v.Position + UDim2.new(0,0,-.05,0) | |
320 | if v.Position.Y.Scale < .08 then | |
321 | v.BackgroundTransparency = 1 | |
322 | v.TextButton.BackgroundTransparency = 1 | |
323 | v.TextTransparency = 1 | |
324 | v.TextButton.TextTransparency = 1 | |
325 | elseif v.Position.Y.Scale >= .95 then | |
326 | else | |
327 | v.BackgroundTransparency = backgroundtrans | |
328 | v.TextButton.BackgroundTransparency = backgroundtrans | |
329 | v.TextTransparency = 0 | |
330 | v.TextButton.TextTransparency = 0 | |
331 | end | |
332 | end | |
333 | else | |
334 | -- moving down | |
335 | for i,v in pairs(fr:GetChildren()) do | |
336 | v.Position = v.Position + UDim2.new(0,0,.05,0) | |
337 | if v.Position.Y.Scale >= .95 then | |
338 | v.BackgroundTransparency = 1 | |
339 | v.TextButton.BackgroundTransparency = 1 | |
340 | v.TextTransparency = 1 | |
341 | v.TextButton.TextTransparency = 1 | |
342 | elseif v.Position.Y.Scale < .08 then | |
343 | else | |
344 | v.BackgroundTransparency = backgroundtrans | |
345 | v.TextButton.BackgroundTransparency = backgroundtrans | |
346 | v.TextTransparency = 0 | |
347 | v.TextButton.TextTransparency = 0 | |
348 | end | |
349 | end | |
350 | end | |
351 | end | |
352 | sblasty = y | |
353 | end) | |
354 | ||
355 | local work = Instance.new("TextButton", sg) | |
356 | work.Position = UDim2.new(0,0,.2,0) | |
357 | work.Size = UDim2.new(.05,0,.05,0) | |
358 | work.BackgroundTransparency = backgroundtrans | |
359 | work.TextColor3 = fontcolor | |
360 | work.BorderColor3 = bordercolor | |
361 | work.BackgroundColor3 = backgroundcolor | |
362 | work.Text = "Workspace" | |
363 | work.MouseButton1Click:connect(function() | |
364 | current = Workspace | |
365 | Clear() | |
366 | GetList() | |
367 | end) | |
368 | work.MouseButton2Up:connect(function(x,y) | |
369 | local pos = UDim2.new(0,x,0,y) | |
370 | CreatePasteMenu(pos, Workspace) | |
371 | end) | |
372 | ||
373 | local light = Instance.new("TextButton", sg) | |
374 | light.Position = UDim2.new(0.06,0,.2,0) | |
375 | light.Size = UDim2.new(.05,0,.05,0) | |
376 | light.BackgroundTransparency = backgroundtrans | |
377 | light.TextColor3 = fontcolor | |
378 | light.BorderColor3 = bordercolor | |
379 | light.BackgroundColor3 = backgroundcolor | |
380 | light.Text = "Lighting" | |
381 | light.MouseButton1Click:connect(function() | |
382 | current = game.Lighting | |
383 | Clear() | |
384 | GetList() | |
385 | end) | |
386 | light.MouseButton2Up:connect(function(x,y) | |
387 | local pos = UDim2.new(0,x,0,y) | |
388 | CreatePasteMenu(pos, game.Lighting) | |
389 | end) | |
390 | ||
391 | local players = Instance.new("TextButton", sg) | |
392 | players.Position = UDim2.new(0.12,0,.2,0) | |
393 | players.Size = UDim2.new(.05,0,.05,0) | |
394 | players.BackgroundTransparency = backgroundtrans | |
395 | players.TextColor3 = fontcolor | |
396 | players.BorderColor3 = bordercolor | |
397 | players.BackgroundColor3 = backgroundcolor | |
398 | players.Text = "Players" | |
399 | players.MouseButton1Click:connect(function() | |
400 | current = game.Players | |
401 | Clear() | |
402 | GetList() | |
403 | end) | |
404 | players.MouseButton2Up:connect(function(x,y) | |
405 | local pos = UDim2.new(0,x,0,y) | |
406 | CreatePasteMenu(pos, game.Players) | |
407 | end) | |
408 | ||
409 | local starterp = Instance.new("TextButton", sg) | |
410 | starterp.Position = UDim2.new(0.18,0,.2,0) | |
411 | starterp.Size = UDim2.new(.05,0,.05,0) | |
412 | starterp.BackgroundTransparency = backgroundtrans | |
413 | starterp.TextColor3 = fontcolor | |
414 | starterp.BorderColor3 = bordercolor | |
415 | starterp.BackgroundColor3 = backgroundcolor | |
416 | starterp.Text = "StarterPack" | |
417 | starterp.MouseButton1Click:connect(function() | |
418 | current = game.StarterPack | |
419 | Clear() | |
420 | GetList() | |
421 | end) | |
422 | starterp.MouseButton2Up:connect(function(x,y) | |
423 | local pos = UDim2.new(0,x,0,y) | |
424 | CreatePasteMenu(pos, game.StarterPack) | |
425 | end) | |
426 | ||
427 | ||
428 | local starterg = Instance.new("TextButton", sg) | |
429 | starterg.Position = UDim2.new(0.24,0,.2,0) | |
430 | starterg.Size = UDim2.new(.05,0,.05,0) | |
431 | starterg.BackgroundTransparency = backgroundtrans | |
432 | starterg.TextColor3 = fontcolor | |
433 | starterg.BorderColor3 = bordercolor | |
434 | starterg.BackgroundColor3 = backgroundcolor | |
435 | starterg.Text = "StarterGui" | |
436 | starterg.MouseButton1Click:connect(function() | |
437 | current = game.StarterGui | |
438 | Clear() | |
439 | GetList() | |
440 | end) | |
441 | starterg.MouseButton2Up:connect(function(x,y) | |
442 | local pos = UDim2.new(0,x,0,y) | |
443 | CreatePasteMenu(pos, game.StarterGui) | |
444 | end) | |
445 | ||
446 | function CreateButtons(object, otr) | |
447 | local tb = Instance.new("TextButton", fr) | |
448 | tb.Size = UDim2.new(.9,0,.05,0) | |
449 | tb.Text = object.Name | |
450 | tb.Position = UDim2.new(0,0,cp + .05,0) | |
451 | tb.BackgroundTransparency = otr or backgroundtrans | |
452 | tb.TextColor3 = fontcolor | |
453 | tb.BorderColor3 = bordercolor | |
454 | tb.BackgroundColor3 = backgroundcolor | |
455 | tb.TextTransparency = otr or 0 | |
456 | cp = cp + .05 | |
457 | local ov = Instance.new("ObjectValue", tb) | |
458 | ov.Value = object | |
459 | local x = Instance.new("TextButton", tb) | |
460 | x.BackgroundTransparency = otr or backgroundtrans | |
461 | x.TextColor3 = fontcolor | |
462 | x.BorderColor3 = bordercolor | |
463 | x.BackgroundColor3 = backgroundcolor | |
464 | x.TextTransparency = otr or 0 | |
465 | x.Size = UDim2.new(.1,0,1,0) | |
466 | x.Position = UDim2.new(1,0,0,0) | |
467 | x.FontSize = "Size12" | |
468 | x.Text = "+" | |
469 | tb.MouseButton1Click:connect(function()-- properties window open | |
470 | CreatePropertiesWindow(ov.Value) | |
471 | end) | |
472 | tb.MouseButton2Up:connect(function(x,y) | |
473 | CreateDropDownMenu(UDim2.new(0,x,0,y), ov.Value) | |
474 | end) | |
475 | x.MouseButton1Click:connect(function() | |
476 | current = ov.Value | |
477 | Clear() | |
478 | GetList() | |
479 | end) | |
480 | end | |
481 | ||
482 | function CreatePropertiesWindow(obj) | |
483 | if not obj then return end | |
484 | pcall(function() sg.P:Destroy() end) | |
485 | local push = 0 | |
486 | local f = Instance.new("Frame", sg) | |
487 | f.Name = "P" | |
488 | f.Style = "RobloxRound" | |
489 | f.Size = UDim2.new(.4,0,.7,0) | |
490 | f.Position = UDim2.new(.6,0,.15,0) | |
491 | if pcall(function() _ = obj["Name"] end) then | |
492 | local pN = Instance.new("TextLabel", f) | |
493 | pN.Size = UDim2.new(.5,0,.05,0) | |
494 | pN.Position = UDim2.new(0,0, push,0) | |
495 | pN.Text = "Name" | |
496 | pN.BackgroundColor3 = backgroundcolor | |
497 | pN.BorderColor3 = bordercolor | |
498 | pN.TextColor3 = bordercolor | |
499 | pN.FontSize = "Size10" | |
500 | local pV = Instance.new("TextBox", f) | |
501 | pV.ClearTextOnFocus = false | |
502 | pV.Size = UDim2.new(.5,0,.05,0) | |
503 | pV.Position = UDim2.new(.5,0,push,0) | |
504 | push = push + .05 | |
505 | pV.Text = obj.Name | |
506 | pV.BackgroundColor3 = backgroundcolor | |
507 | pV.BorderColor3 = bordercolor | |
508 | pV.TextColor3 = fontcolor | |
509 | pV.FontSize = "Size10" | |
510 | pV.Changed:connect(function() | |
511 | pcall(function() | |
512 | obj.Name = pV.Text | |
513 | end) | |
514 | end) | |
515 | end | |
516 | if pcall(function() _ = obj["ClassName"] end) then | |
517 | local pN = Instance.new("TextLabel", f) | |
518 | pN.Size = UDim2.new(.5,0,.05,0) | |
519 | pN.Position = UDim2.new(0,0, push,0) | |
520 | pN.Text = "ClassName" | |
521 | pN.BackgroundColor3 = backgroundcolor | |
522 | pN.BorderColor3 = bordercolor | |
523 | pN.TextColor3 = bordercolor | |
524 | pN.FontSize = "Size10" | |
525 | local pV = Instance.new("TextLabel", f) | |
526 | pV.Size = UDim2.new(.5,0,.05,0) | |
527 | pV.Position = UDim2.new(.5,0,push,0) | |
528 | push = push + .05 | |
529 | pV.Text = obj.ClassName | |
530 | pV.BackgroundColor3 = backgroundcolor | |
531 | pV.BorderColor3 = bordercolor | |
532 | pV.TextColor3 = bordercolor | |
533 | pV.FontSize = "Size10" | |
534 | end | |
535 | ||
536 | ||
537 | if pcall(function() _ = obj["Transparency"] end) then | |
538 | local pN = Instance.new("TextLabel", f) | |
539 | pN.Size = UDim2.new(.5,0,.05,0) | |
540 | pN.Position = UDim2.new(0,0, push,0) | |
541 | pN.Text = "Transparency" | |
542 | pN.BackgroundColor3 = backgroundcolor | |
543 | pN.BorderColor3 = bordercolor | |
544 | pN.TextColor3 = bordercolor | |
545 | pN.FontSize = "Size10" | |
546 | local pV = Instance.new("TextBox", f) | |
547 | pV.Size = UDim2.new(.5,0,.05,0) | |
548 | pV.Position = UDim2.new(.5,0,push,0) | |
549 | push = push + .05 | |
550 | pV.Text = tostring(obj.Transparency) | |
551 | pV.BackgroundColor3 = backgroundcolor | |
552 | pV.BorderColor3 = bordercolor | |
553 | pV.TextColor3 = fontcolor | |
554 | pV.FontSize = "Size10" | |
555 | pV.Changed:connect(function() | |
556 | pcall(function() | |
557 | obj.Transparency = pV.Text | |
558 | end) | |
559 | end) | |
560 | end | |
561 | if pcall(function() _ = obj["Parent"] end) then | |
562 | local pN = Instance.new("TextLabel", f) | |
563 | pN.Size = UDim2.new(.5,0,.05,0) | |
564 | pN.Position = UDim2.new(0,0, push,0) | |
565 | pN.Text = "Parent" | |
566 | pN.BackgroundColor3 = backgroundcolor | |
567 | pN.BorderColor3 = bordercolor | |
568 | pN.TextColor3 = bordercolor | |
569 | pN.FontSize = "Size10" | |
570 | local pV = Instance.new("TextBox", f) | |
571 | pV.Size = UDim2.new(.5,0,.05,0) | |
572 | pV.Position = UDim2.new(.5,0,push,0) | |
573 | push = push + .05 | |
574 | pV.Text = tostring(obj.Parent) | |
575 | pV.BackgroundColor3 = backgroundcolor | |
576 | pV.BorderColor3 = bordercolor | |
577 | pV.TextColor3 = fontcolor | |
578 | pV.FontSize = "Size10" | |
579 | pV.Changed:connect(function() | |
580 | pcall(function() | |
581 | obj.Parent = pV.Text | |
582 | end) | |
583 | end) | |
584 | end | |
585 | ||
586 | if pcall(function() _ = obj["BrickColor"] end) then | |
587 | local pN = Instance.new("TextLabel", f) | |
588 | pN.Size = UDim2.new(.5,0,.05,0) | |
589 | pN.Position = UDim2.new(0,0, push,0) | |
590 | pN.Text = "BrickColor" | |
591 | pN.BackgroundColor3 = backgroundcolor | |
592 | pN.BorderColor3 = bordercolor | |
593 | pN.TextColor3 = bordercolor | |
594 | pN.FontSize = "Size10" | |
595 | local pV = Instance.new("TextBox", f) | |
596 | pV.Size = UDim2.new(.5,0,.05,0) | |
597 | pV.Position = UDim2.new(.5,0,push,0) | |
598 | push = push + .05 | |
599 | pV.Text = tostring(obj.BrickColor) | |
600 | pV.BackgroundColor3 = backgroundcolor | |
601 | pV.BorderColor3 = bordercolor | |
602 | pV.TextColor3 = fontcolor | |
603 | pV.FontSize = "Size10" | |
604 | pV.Changed:connect(function() | |
605 | pcall(function() | |
606 | obj.BrickColor = BrickColor.new(pV.Text) | |
607 | end) | |
608 | end) | |
609 | end | |
610 | if pcall(function() _ = obj["Text"] end) then | |
611 | local pN = Instance.new("TextLabel", f) | |
612 | pN.Size = UDim2.new(.5,0,.05,0) | |
613 | pN.Position = UDim2.new(0,0, push,0) | |
614 | pN.Text = "Text" | |
615 | pN.BackgroundColor3 = backgroundcolor | |
616 | pN.BorderColor3 = bordercolor | |
617 | pN.TextColor3 = bordercolor | |
618 | pN.FontSize = "Size10" | |
619 | local pV = Instance.new("TextBox", f) | |
620 | pV.Size = UDim2.new(.5,0,.05,0) | |
621 | pV.Position = UDim2.new(.5,0,push,0) | |
622 | push = push + .05 | |
623 | pV.Text = obj.Text | |
624 | pV.BackgroundColor3 = backgroundcolor | |
625 | pV.BorderColor3 = bordercolor | |
626 | pV.TextColor3 = fontcolor | |
627 | pV.FontSize = "Size10" | |
628 | pV.Changed:connect(function() | |
629 | pcall(function() | |
630 | obj.Text = pV.Text | |
631 | end) | |
632 | end) | |
633 | end | |
634 | if pcall(function() _ = obj["Value"] end) and (obj.ClassName == "StringValue" or obj.ClassName == "IntValue" or obj.ClassName == "NumberValue") then | |
635 | local pN = Instance.new("TextLabel", f) | |
636 | pN.Size = UDim2.new(.5,0,.05,0) | |
637 | pN.Position = UDim2.new(0,0, push,0) | |
638 | pN.Text = "Value" | |
639 | pN.BackgroundColor3 = backgroundcolor | |
640 | pN.BorderColor3 = bordercolor | |
641 | pN.TextColor3 = bordercolor | |
642 | pN.FontSize = "Size10" | |
643 | local pV = Instance.new("TextBox", f) | |
644 | pV.Size = UDim2.new(.5,0,.05,0) | |
645 | pV.Position = UDim2.new(.5,0,push,0) | |
646 | push = push + .05 | |
647 | pV.Text = obj.Value | |
648 | pV.BackgroundColor3 = backgroundcolor | |
649 | pV.BorderColor3 = bordercolor | |
650 | pV.TextColor3 = fontcolor | |
651 | pV.FontSize = "Size10" | |
652 | pV.Changed:connect(function() | |
653 | pcall(function() | |
654 | if type(obj.Value) == "number" then | |
655 | obj.Value = tonumber(pV.Text) or 0 | |
656 | else | |
657 | obj.Value = pV.Text | |
658 | end | |
659 | end) | |
660 | end) | |
661 | end | |
662 | end | |
663 | ||
664 | function CreateDropDownMenu(pos, obj) | |
665 | local f = Instance.new("Frame", sg) | |
666 | f.BackgroundColor3 = backgroundcolor | |
667 | f.BorderColor3 = bordercolor | |
668 | f.Size = UDim2.new(.1,0,.2,0) | |
669 | f.BackgroundTransparency = .3 | |
670 | f.Position = pos | |
671 | local d = Instance.new("TextButton", f) | |
672 | d.BackgroundTransparency = 1 | |
673 | d.Text = "Delete" | |
674 | d.FontSize = "Size10" | |
675 | d.TextColor3 = fontcolor | |
676 | d.Size = UDim2.new(1,0,.15,0) | |
677 | d.MouseButton1Click:connect(function() | |
678 | pcall(function() | |
679 | obj:Destroy() | |
680 | end) | |
681 | Clear() | |
682 | GetList() | |
683 | f:Destroy() | |
684 | end) | |
685 | local c = Instance.new("TextButton", f) | |
686 | c.BackgroundTransparency = 1 | |
687 | c.Text = "Copy" | |
688 | c.FontSize = "Size10" | |
689 | c.TextColor3 = fontcolor | |
690 | c.Size = UDim2.new(1,0,.15,0) | |
691 | c.Position = UDim2.new(0,0,.15,0) | |
692 | c.MouseButton1Click:connect(function() | |
693 | pcall(function() | |
694 | copy = obj:Clone() | |
695 | end) | |
696 | f:Destroy() | |
697 | end) | |
698 | ||
699 | local p = Instance.new("TextButton", f) | |
700 | p.BackgroundTransparency = 1 | |
701 | p.Text = "Paste into" | |
702 | p.FontSize = "Size10" | |
703 | p.TextColor3 = fontcolor | |
704 | p.Size = UDim2.new(1,0,.15,0) | |
705 | p.Position = UDim2.new(0,0,.3,0) | |
706 | p.MouseButton1Click:connect(function() | |
707 | pcall(function() | |
708 | copy.Parent = obj | |
709 | end) | |
710 | f:Destroy() | |
711 | end) | |
712 | ||
713 | local ka = Instance.new("TextButton", f) | |
714 | ka.BackgroundTransparency = 1 | |
715 | ka.Text = "Kill" | |
716 | ka.FontSize = "Size10" | |
717 | ka.TextColor3 = fontcolor | |
718 | ka.Size = UDim2.new(1,0,.15,0) | |
719 | ka.Position = UDim2.new(0,0,.65,0) | |
720 | ka.MouseButton1Click:connect(function() | |
721 | pcall(function() | |
722 | obj:BreakJoints() | |
723 | end) | |
724 | Clear() | |
725 | GetList() | |
726 | f:Destroy() | |
727 | end) | |
728 | local x = Instance.new("TextButton", f) | |
729 | x.BackgroundTransparency = 1 | |
730 | x.Text = "Close" | |
731 | x.FontSize = "Size10" | |
732 | x.TextColor3 = fontcolor | |
733 | x.Size = UDim2.new(1,0,.15,0) | |
734 | x.Position = UDim2.new(0,0,.45,0) | |
735 | x.MouseButton1Click:connect(function() | |
736 | f:Destroy() | |
737 | end) | |
738 | end | |
739 | ||
740 | function CreatePasteMenu(pos, obj) | |
741 | local f = Instance.new("Frame", sg) | |
742 | f.BackgroundColor3 = backgroundcolor | |
743 | f.BorderColor3 = bordercolor | |
744 | f.Size = UDim2.new(.1,0,.2,0) | |
745 | f.BackgroundTransparency = .3 | |
746 | f.Position = pos | |
747 | local p = Instance.new("TextButton", f) | |
748 | p.BackgroundTransparency = 1 | |
749 | p.Text = "Paste into" | |
750 | p.FontSize = "Size10" | |
751 | p.TextColor3 = fontcolor | |
752 | p.Size = UDim2.new(1,0,.15,0) | |
753 | p.Position = UDim2.new(0,0,0,0) | |
754 | p.MouseButton1Click:connect(function() | |
755 | pcall(function() | |
756 | copy.Parent = obj | |
757 | end) | |
758 | f:Destroy() | |
759 | end) | |
760 | local x = Instance.new("TextButton", f) | |
761 | x.BackgroundTransparency = 1 | |
762 | x.Text = "Close" | |
763 | x.FontSize = "Size10" | |
764 | x.TextColor3 = fontcolor | |
765 | x.Size = UDim2.new(1,0,.15,0) | |
766 | x.Position = UDim2.new(0,0,.45,0) | |
767 | x.MouseButton1Click:connect(function() | |
768 | f:Destroy() | |
769 | end) | |
770 | end | |
771 | ||
772 | function Clear() | |
773 | for i,v in pairs(fr:GetChildren()) do | |
774 | v:Destroy() | |
775 | cp = 0 | |
776 | end | |
777 | end | |
778 | ||
779 | function GetList() | |
780 | local max = 100 | |
781 | local it = 0 | |
782 | for i,v in pairs(current:GetChildren()) do | |
783 | if cp < .9 then | |
784 | CreateButtons(v) | |
785 | else | |
786 | CreateButtons(v, 1) | |
787 | end | |
788 | it = it + 1 | |
789 | if it == max then break end | |
790 | end | |
791 | end | |
792 | GetList() |