I made a script that will put a border around what your mouse is pointing at it works but it prints hundreds of errors when I'm pointing at the sky
Here is the script
-- Get Player
local Player = game.Players.LocalPlayer
-- MainThings
local TileGrid = workspace.Tiles
local Mouse = Player:GetMouse()
-- Border
local Border = Instance.new("SelectionBox")
Border.Parent = workspace
Border.LineThickness = .01
Border.Color3 = Color3.new(255,255,255)
-- Services
local RunService = game:GetService("RunService")
RunService.Heartbeat:Connect(function()
local Target = Mouse.Target
if Target.Parent == TileGrid then
Border.Adornee = Target
else
Border.Adornee = nil
end
end)
