hiiii so im trya and do when the player hovers over a part itll show the selection box and when the player is not hovering over itll disappear. Id like it to be on the client but it doesnt work heres my current code in starterplayerscripts
`'local blocksFolder = workspace.Blocks
local selectionBoxTemplate = Instance.new(“SelectionBox”)
selectionBoxTemplate.Color3 = Color3.new(1, 0, 0)
selectionBoxTemplate.LineThickness = 0.1
selectionBoxTemplate.Transparency = 1
for _, dirtBlock in ipairs(blocksFolder:GetChildren()) do
if dirtBlock:IsA(“Model”) then
local selectionBox = selectionBoxTemplate:Clone()
selectionBox.Adornee = dirtBlock
selectionBox.Parent = dirtBlock
dirtBlock.MouseEnter:Connect(function()
selectionBox.Transparency = 0
})
dirtBlock.MouseLeave:Connect(function()
selectionBox.Transparency = 1
})
end
end
`’