Trying to make a selection gui to select stuff in workspace?
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
01 | local player = game.Players.LocalPlayer |
02 | local mouse = player:GetMouse() |
03 | local gui = player.PlayerGui:WaitForChild( "ScreenGui" ).Frame |
05 | mouse.Button 1 Down:Connect( function (down) |
07 | local MouseCFrame = mouse.Hit.p |
08 | gui.Position = UDim 2. new(MouseCFrame) |
10 | mouse.Move:Connect( function () |
11 | gui.Size = UDim 2. new(mouse.Hit.p) |
might be doing it wrong, i haven't scripted in a while.