Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a=game.Players.LocalPlayer local function b() local c=a.Character or a.CharacterAdded:Wait() return c:WaitForChild("HumanoidRootPart") end local d=Instance.new("ScreenGui") d.ResetOnSpawn=false d.Parent=a:WaitForChild("PlayerGui") local e=Instance.new("Frame") e.Size=UDim2.new(0,200,0,100) e.Position=UDim2.new(0.5,-100,0.5,-50) e.BackgroundColor3=Color3.new(0,0,0) e.Active=true e.Draggable=true e.Parent=d local f=Instance.new("TextButton") f.Size=UDim2.new(0,180,0,50) f.Position=UDim2.new(0.5,-90,0.5,-25) f.BackgroundColor3=Color3.new(0,1,0) f.Text="Bring" f.Parent=e f.MouseButton1Click:Connect(function() local c=b() if not c then return end local g=game:GetService("Workspace"):FindFirstChild("RuntimeItems") if not g then return end for _,h in pairs(g:GetChildren()) do for _,i in pairs(h:GetDescendants()) do if i:IsA("BasePart") and not i.Anchored then i.Position=c.Position+Vector3.new(math.random(-5,5),2,math.random(-5,5)) end end end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement