Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPlayer(shortcut)
- local player = nil
- local g = game.Players:GetPlayers()
- for i = 1, #g do
- if string.lower(string.sub(g[i].Name, 1, string.len(shortcut))) == string.lower(shortcut) then
- player = g[i]
- break
- end
- end
- return player
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement