Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.ClickDetector.MouseHoverEnter:Connect(function()
- if not script.Parent:FindFirstChild("SelectionBox") then
- local Selection = Instance.new("SelectionBox")
- Selection.Adornee = script.Parent
- Selection.Parent = script.Parent
- Selection.Color3 = Color3.new(1, 1, 1)
- Selection.Transparency = 0.8
- end
- end)
- script.Parent.ClickDetector.MouseHoverLeave:Connect(function()
- if script.Parent:FindFirstChild("SelectionBox") then
- script.Parent.SelectionBox:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement