I am trying to make an admin script that ranks players when the admin says ":rank " and then any player's name.
I've accomplished this, but you need to say the whole name in it's entirety which can be a lot of unnecessary typing.
What I wish to do is for the admin to type a shortened version of the player's name. (Ex: "Shedletsky", :rank Sh)
I've tried many methods from others that have helped, but all have led to me becoming more confused and not learning how to do this, which is the ultimate goal. What would you suggest?
for i,v in pairs (game.Players:GetChildren()) do if Cmd:lower() == (":rank "..v.Name):lower() then local Message = P:WaitForChild("PlayerGui"):WaitForChild("MessageBoard"):WaitForChild("Frame") Message:TweenPosition(UDim2.new(0,0,0,0)) if v:GetRankInGroup(964060) > 0 then Message:WaitForChild("Text").Text = (v.Name.." is a "..v:GetRoleInGroup(964060).." of Spectrum Security") elseif v:GetRankInGroup(964060) <= 0 then Message:WaitForChild("Text").Text = (v.Name.." is not in Spectrum Security") end wait(2) Message:TweenPosition(UDim2.new(0,0,-.25,0))
end
end

2 comments
Put the code inside the two long "~~~~" Lines.
^_^