Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why this "Hand to" works if i give the item to me, but if i use to another player it doesn't work?

Asked by
caipira 29
7 years ago

this script is supposed to give a tool to another player when i put the name in a TextGui, but it just works if i put my name, what's wrong?

01local playaa = game.Players.LocalPlayer
02 
03repeat wait() until playaa.Character
04 
05local open = true
06local mouse = playaa:GetMouse()
07 
08function FullName(name)
09    for _,v in pairs(game.Players:GetPlayers()) do
10        if v.Name:lower():match(name:lower()) then
11            return v.Name
12        else
13            return "Couldn't find player"
14        end
15    end
View all 59 lines...
0
Are you trying to make it so that a player can shorten names? UgOsMiLy 1074 — 7y
0
no caipira 29 — 7y

Answer this question