Security Scanner HELP

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to make a security scanner that shows your tools and name.

  2. What is the issue? I don’t know how to make it show your tools and the name is not working.

  3. What solutions have you tried so far? YouTube Videos

This is my script so far.

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

local tool = script.Parent

local Frame = game.Players.LocalPlayer.PlayerGui:WaitForChild('ScreenGui'):WaitForChild('Frame') --Object path to the GUI frame containing the age and rank textboxes.
local groupID = 4796549 --ID of your group.

tool.Activated:Connect(function()
	for _,Target in pairs(game.Players:GetPlayers()) do
		if Mouse.Target:IsDescendantOf(Target.Character) then
			Frame.Visible = true
			Frame.AccAge.Text = Target.AccountAge
			Frame.RoleInGroup.Text = Target:GetRoleInGroup(groupID)
			Frame.Name.Text = Target.DisplayName
			wait(3)
			Frame.Visible = false
		end
	end
end)




-- Make sure they can't use the tool while it is not selected.
tool.Unequipped:Connect(function()
	Frame.Visible = false
end)

Thank you guys for reading this.

1 Like