Do you mind adding some print functions for me? I don’t know exactly where to put them.
Just add some before and after every statement
WE MADE PROGRESS!!! Alright, so, there is an error on line 15. FYI: whenever I click my alt account, the frame pops up for like a millisecond then goes away. Let me send you a screen shot of the error.
I believe that the frame disappears because I made it so you have to hold the mouse key
Can you make it so you click the player, then you wait for five seconds, then it disappears?
Sure thing, simply remove the
Mouse.Button1Up:Connect(function()
Frame.Visible = false
end)
and change the first part to
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:GetRolesInGroup(groupID)
wait(5)
Frame.Visible = false
end
end
end)
That is the next error. The account age works but the Get roles in group makes that error.
Change
Target:GetRolesInGroup(groupID)
to
Target:GetRoleInGroup(groupID)
Dude thank you so much! If you have time can you help me with another thing?
Its with the security scanner not something else.
Sure thing, what is it you need help with?
So I also want it to show the name of the player and the tools in the players backpack. How do I do that?
Name of the player is simple, you can get that by doing
Target.Name
The tools on the other hand, depends on how you want to show the tools.
Do you just want to show a list of the tool names?
Also, there is an error with line 15 (the account name). It says this - attempt to index string with text.
Hello??? Are you there???
--MouseButton1DownEvent
local ray = Ray.new(tool.Handle.Position,(Mouse.Hit.Position - tool.Handle.Position).unit * 500)--500 is your max distance that the ray can reach
local part,pos = workspace:FindPartOnRayWithIgnoreList(ray,tool:GetChildren(),false,false)
if part then
if part.Parent:FindFirstChild("Humanoid") then
--Add a line that checks if its a player then if it is then do you're thing
There is no need at all to use RayCasting, detecting the player was already done.
Add this to your script:
local text = ""
for _, tool in ipairs(Target.Backpack:GetChildren()) do
text = text..(tool.Name)..", "
end
Frame.ToolList.Text = text