Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local BtoolActive = false
- local m = plr:GetMouse()
- if BtoolActive then
- local sb = Instance.new("SelectionBox", workspace.CurrentCamera)
- local ev = m.Button1Down:Connect(function()
- if m.Target then
- m.Target:Destroy()
- end
- end)
- while BtoolActive do
- wait()
- if m.Target then
- sb.Adornee = m.Target
- end
- end
- ev:Disconnect()
- else
- local sb = workspace.CurrentCamera:FindFirstChildOfClass("SelectionBox")
- if sb then sb:Destroy() end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement