1 | if getgenv().prtGrabLoaded then return print'Part Grabber is running already' end |
2 | getgenv().prtGrabLoaded=true |
3 | |
4 | local prtGrab = Instance.new("ScreenGui") |
5 | local Main = Instance.new("Frame") |
6 | local Container = Instance.new("Frame") |
7 | local UICorner = Instance.new("UICorner") |
8 | local UIGradient = Instance.new("UIGradient") |
9 | local grab = Instance.new("TextButton") |
10 | local Found = Instance.new("TextLabel") |
11 | local Topbar = Instance.new("Frame") |
12 | local Icon = Instance.new("ImageLabel") |
13 | local Exit = Instance.new("TextButton") |
14 | local ImageLabel = Instance.new("ImageLabel") |
15 | local Minimize = Instance.new("TextButton") |
16 | local ImageLabel_2 = Instance.new("ImageLabel") |
17 | local TopBar = Instance.new("Frame") |
18 | local ImageLabel_3 = Instance.new("ImageLabel") |
19 | local ImageLabel_4 = Instance.new("ImageLabel") |
20 | local Title = Instance.new("TextLabel") |
21 | local UICorner_2 = Instance.new("UICorner") |
22 | local UIGradient_2 = Instance.new("UIGradient") |
23 | |
24 | prtGrab.Name = "prtGrab" |
25 | prtGrab.Parent = (game:GetService("CoreGui") or game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui")) |
26 | prtGrab.ZIndexBehavior = Enum.ZIndexBehavior.Sibling |
27 | |
28 | Main.Name = "Main" |
29 | Main.Parent = prtGrab |
30 | Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
31 | Main.BackgroundTransparency = 0.140 |
32 | Main.BorderColor3 = Color3.fromRGB(139, 139, 139) |
33 | Main.BorderSizePixel = 0 |
34 | Main.ClipsDescendants = true |
35 | Main.Position = UDim2.new(0.307999998, 0, 1.26199996, 0) |
36 | Main.Size = UDim2.new(0, 402, 0, 146) |
37 | |
38 | Container.Name = "Container" |
39 | Container.Parent = Main |
40 | Container.AnchorPoint = Vector2.new(0.5, 1) |
41 | Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
42 | Container.BackgroundTransparency = 0.500 |
43 | Container.BorderColor3 = Color3.fromRGB(255, 255, 255) |
44 | Container.BorderSizePixel = 0 |
45 | Container.ClipsDescendants = true |
46 | Container.Position = UDim2.new(0.5, 0, 1.02057612, -5) |
47 | Container.Size = UDim2.new(1, -10, 1.0325762, -30) |
48 | |
49 | UICorner.CornerRadius = UDim.new(0, 9) |
50 | UICorner.Parent = Container |
51 | |
52 | UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(12, 4, 20)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(12, 4, 20)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(12, 4, 20))} |
53 | UIGradient.Parent = Container |
54 | |
55 | grab.Name = "grab" |
56 | grab.Parent = Container |
57 | grab.BackgroundColor3 = Color3.fromRGB(24, 24, 24) |
58 | grab.BorderColor3 = Color3.fromRGB(139, 139, 139) |
59 | grab.BorderSizePixel = 0 |
60 | grab.Position = UDim2.new(0.354591846, 0, 0.75548321, 0) |
61 | grab.Size = UDim2.new(0, 110, 0, 29) |
62 | grab.Font = Enum.Font.SourceSans |
63 | grab.Text = "Copy Path" |
64 | grab.TextColor3 = Color3.fromRGB(255, 255, 255) |
65 | grab.TextScaled = true |
66 | grab.TextSize = 14.000 |
67 | grab.TextWrapped = true |
68 | |
69 | Found.Name = "Found" |
70 | Found.Parent = Container |
71 | Found.Active = true |
72 | Found.BackgroundColor3 = Color3.fromRGB(24, 24, 24) |
73 | Found.BorderColor3 = Color3.fromRGB(0, 0, 0) |
74 | Found.BorderSizePixel = 0 |
75 | Found.Position = UDim2.new(0.0127551025, 0, 0.183681354, 0) |
76 | Found.Size = UDim2.new(0, 376, 0, 29) |
77 | Found.Font = Enum.Font.SourceSans |
78 | Found.Text = ". . ." |
79 | Found.TextColor3 = Color3.fromRGB(255, 255, 255) |
80 | Found.TextScaled = true |
81 | Found.TextSize = 14.000 |
82 | Found.TextWrapped = true |
83 | |
84 | Topbar.Name = "Topbar" |
85 | Topbar.Parent = Main |
86 | Topbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
87 | Topbar.BackgroundTransparency = 1.000 |
88 | Topbar.Size = UDim2.new(1, 0, 0, 25) |
89 | |
90 | Icon.Name = "Icon" |
91 | Icon.Parent = Topbar |
92 | Icon.AnchorPoint = Vector2.new(0, 0.5) |
93 | Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
94 | Icon.BackgroundTransparency = 1.000 |
95 | Icon.Position = UDim2.new(0, 10, 0.5, 0) |
96 | Icon.Size = UDim2.new(0, 13, 0, 13) |
97 | Icon.Image = "rbxgameasset://Images/menuIcon" |
98 | |
99 | Exit.Name = "Exit" |
100 | Exit.Parent = Topbar |
101 | Exit.BackgroundColor3 = Color3.fromRGB(12, 4, 20) |
102 | Exit.BackgroundTransparency = 0.500 |
103 | Exit.BorderSizePixel = 0 |
104 | Exit.Position = UDim2.new(0.870000005, 0, 0, 0) |
105 | Exit.Size = UDim2.new(-0.00899999961, 40, 1.04299998, -10) |
106 | Exit.Font = Enum.Font.Gotham |
107 | Exit.Text = "X" |
108 | Exit.TextColor3 = Color3.fromRGB(255, 255, 255) |
109 | Exit.TextSize = 13.000 |
110 | |
111 | ImageLabel.Parent = Exit |
112 | ImageLabel.BackgroundColor3 = Color3.fromRGB(36, 36, 36) |
113 | ImageLabel.BackgroundTransparency = 1.000 |
114 | ImageLabel.Position = UDim2.new(0.999998331, 0, 0, 0) |
115 | ImageLabel.Size = UDim2.new(0, 9, 0, 16) |
116 | ImageLabel.Image = "http://www.roblox.com/asset/?id=8650484523" |
117 | ImageLabel.ImageColor3 = Color3.fromRGB(12, 4, 20) |
118 | ImageLabel.ImageTransparency = 0.500 |
119 | |
120 | Minimize.Name = "Minimize" |
121 | Minimize.Parent = Topbar |
122 | Minimize.BackgroundColor3 = Color3.fromRGB(12, 4, 20) |
123 | Minimize.BackgroundTransparency = 0.500 |
124 | Minimize.BorderSizePixel = 0 |
125 | Minimize.Position = UDim2.new(0.804174006, 0, 0, 0) |
126 | Minimize.Size = UDim2.new(0.00100000005, 27, 1.04299998, -10) |
127 | Minimize.Font = Enum.Font.Gotham |
128 | Minimize.Text = "-" |
129 | Minimize.TextColor3 = Color3.fromRGB(255, 255, 255) |
130 | Minimize.TextSize = 18.000 |
131 | |
132 | ImageLabel_2.Parent = Minimize |
133 | ImageLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
134 | ImageLabel_2.BackgroundTransparency = 1.000 |
135 | ImageLabel_2.Position = UDim2.new(-0.441000015, 0, 0, 0) |
136 | ImageLabel_2.Size = UDim2.new(0, 12, 0, 16) |
137 | ImageLabel_2.Image = "http://www.roblox.com/asset/?id=10555881849" |
138 | ImageLabel_2.ImageColor3 = Color3.fromRGB(12, 4, 20) |
139 | ImageLabel_2.ImageTransparency = 0.500 |
140 | |
141 | TopBar.Name = "TopBar" |
142 | TopBar.Parent = Topbar |
143 | TopBar.BackgroundColor3 = Color3.fromRGB(12, 4, 20) |
144 | TopBar.BackgroundTransparency = 0.500 |
145 | TopBar.BorderSizePixel = 0 |
146 | TopBar.Position = UDim2.new(0.265715331, 0, -0.00352294743, 0) |
147 | TopBar.Size = UDim2.new(0, 186, 0, 16) |
148 | |
149 | ImageLabel_3.Parent = TopBar |
150 | ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
151 | ImageLabel_3.BackgroundTransparency = 1.000 |
152 | ImageLabel_3.Position = UDim2.new(1, 0, 0.0590000004, 0) |
153 | ImageLabel_3.Size = UDim2.new(0, 12, 0, 15) |
154 | ImageLabel_3.Image = "http://www.roblox.com/asset/?id=8650484523" |
155 | ImageLabel_3.ImageColor3 = Color3.fromRGB(12, 4, 20) |
156 | ImageLabel_3.ImageTransparency = 0.500 |
157 | |
158 | ImageLabel_4.Parent = TopBar |
159 | ImageLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
160 | ImageLabel_4.BackgroundTransparency = 1.000 |
161 | ImageLabel_4.Position = UDim2.new(-0.0817726701, 0, 0, 0) |
162 | ImageLabel_4.Size = UDim2.new(0, 16, 0, 16) |
163 | ImageLabel_4.Image = "http://www.roblox.com/asset/?id=10555881849" |
164 | ImageLabel_4.ImageColor3 = Color3.fromRGB(12, 4, 20) |
165 | ImageLabel_4.ImageTransparency = 0.500 |
166 | |
167 | Title.Name = "Title" |
168 | Title.Parent = TopBar |
169 | Title.AnchorPoint = Vector2.new(0, 0.5) |
170 | Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
171 | Title.BackgroundTransparency = 1.000 |
172 | Title.BorderSizePixel = 0 |
173 | Title.Position = UDim2.new(-0.150533721, 32, 0.415876389, 0) |
174 | Title.Size = UDim2.new(0.522161067, 80, 1.11675644, -7) |
175 | Title.Font = Enum.Font.SourceSansLight |
176 | Title.Text = "Part Grabber" |
177 | Title.TextColor3 = Color3.fromRGB(255, 255, 255) |
178 | Title.TextSize = 17.000 |
179 | Title.TextWrapped = true |
180 | |
181 | UICorner_2.CornerRadius = UDim.new(0, 9) |
182 | UICorner_2.Parent = Main |
183 | |
184 | UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(12, 4, 20)), ColorSequenceKeypoint.new(0.38, Color3.fromRGB(4, 4, 4)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(4, 4, 4)), ColorSequenceKeypoint.new(0.68, Color3.fromRGB(4, 4, 4)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(12, 4, 20))} |
185 | UIGradient_2.Parent = Main |
186 | |
187 | local idk=nil |
188 | |
189 | |
190 | local function BLBPRD_fake_script() |
191 | local script = Instance.new('LocalScript', Found) |
192 | |
193 | local players = game:GetService("Players") |
194 | local player = players.LocalPlayer |
195 | local mouse = player:GetMouse() |
196 | |
197 | local function getFullPath(object) |
198 | local path = {} |
199 | while object.Parent and object.Parent ~= game do |
200 | local name = object.Name |
201 | if name:match("^%d") or name:match("%s") or name:match("[^%w_]") then |
202 | name = '["' .. name .. '"]' |
203 | end |
204 | table.insert(path, 1, name) |
205 | object = object.Parent |
206 | end |
207 | local name = object.Name |
208 | if name:match("^%d") or name:match("%s") or name:match("[^%w_]") then |
209 | name = '["' .. name .. '"]' |
210 | end |
211 | table.insert(path, 1, name) |
212 | |
213 | return table.concat(path, "."):gsub("%.%[", "[") |
214 | end |
215 | |
216 | local function prt() |
217 | if mouse.Target then |
218 | script.Parent.Text = getFullPath(mouse.Target) |
219 | else |
220 | warn("Error while getting path") |
221 | end |
222 | end |
223 | if idk then idk:Disconnect() idk=nil end |
224 | idk=mouse.Button1Down:Connect(prt) |
225 | end |
226 | coroutine.wrap(BLBPRD_fake_script)() |
227 | local function UUVHNZD_fake_script() |
228 | local script = Instance.new('LocalScript', Found) |
229 | |
230 | script.Parent.Parent.grab.MouseButton1Click:Connect(function() |
231 | setclipboard(script.Parent.Text) |
232 | end) |
233 | end |
234 | coroutine.wrap(UUVHNZD_fake_script)() |
235 | local function AUPMILR_fake_script() |
236 | local script = Instance.new('LocalScript', Exit) |
237 | |
238 | script.Parent.MouseButton1Click:Connect(function() |
239 | script.Parent.Parent.Parent.Parent:Destroy() |
240 | if idk then idk:Disconnect() idk=nil end |
241 | getgenv().prtGrabLoaded=false |
242 | end) |
243 | end |
244 | coroutine.wrap(AUPMILR_fake_script)() |
245 | local function XOURFQ_fake_script() |
246 | local script = Instance.new('LocalScript', Minimize) |
247 | |
248 | p = false |
249 | script.Parent.MouseButton1Click:Connect(function() |
250 | if not p then |
251 | p = not p |
252 | script.Parent.Parent.Parent:TweenSize(UDim2.new(0, 402, 0, 20), "Out", "Quint", 1, true) |
253 | else |
254 | p = not p |
255 | script.Parent.Parent.Parent:TweenSize(UDim2.new(0, 402, 0, 146), "Out", "Quint", 1, true) |
256 | end |
257 | end) |
258 | |
259 | end |
260 | coroutine.wrap(XOURFQ_fake_script)() |
261 | local function PLFU_fake_script() |
262 | local script = Instance.new('LocalScript', Main) |
263 | |
264 | script.Parent.Active = true |
265 | script.Parent.Parent.ResetOnSpawn = false |
266 | script.Parent.Draggable = true |
267 | end |
268 | coroutine.wrap(PLFU_fake_script)() |
269 | local function BSHNZC_fake_script() |
270 | local script = Instance.new('LocalScript', Main) |
271 | |
272 | script.Parent:TweenPosition(UDim2.new(0.308, 0,0.262, 0), "Out", "Quint",1,true) |
273 | end |
274 | coroutine.wrap(BSHNZC_fake_script)() |