the example is like Miners Haven where you can select multiple parts i thought it was a gui and position and size according to the mouse but this doesn't work
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local gui = player.PlayerGui:WaitForChild("ScreenGui").Frame
mouse.Button1Down:Connect(function(down)
local MouseCFrame = mouse.Hit.p
gui.Position =UDim2.new(MouseCFrame)
mouse.Move:Connect(function()
gui.Size =UDim2.new(mouse.Hit.p)
end)
end)
might be doing it wrong, i haven't scripted in a while.

3 comments
That only selects one part though. I'm trying to select multiple by dragging the mouse (while Mouse1Down is active) over them
Oh sorry,I hadn't readed your question correctly,I don't think i can make drag selection :(
No worries. Im just trying to get the gui to respond to the mouse. It's not going to the right position or changing size. That's why there's no selection in the script yet