I don't understand, the selection box won't show up no matter what I try... Maybe it's the event? If so, what would the correct event be since it's a brick?
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local SB = Instance.new("SelectionBox")
Mouse.Target.MouseEnter:connect(function()
if Mouse.Target.Parent:FindFirstChild("Humanoid") then
SB.Parent = Mouse.Target
SB.Adornee = Mouse.Target
end
end)
Mouse.Target.MouseLeave:connect(function()
if Mouse.Target.Parent:FindFirstChild("Humanoid") then
SB.Parent = nil
end
end)
