Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I am trying to shorten usernames, one answer I got is string.find, how would I use string.find()?

2 answers

you can use

if string.sub(message:lower(),1,5) == "/kill" then
  local PlayerSelect = string.sub(message:lower(),7)

for i, v in pairs(game.Players:GetPlayers()) do
if v.Name == PlayerSelect then
v.Character.Humanoid.Health = 0
end
end
end

like that

2 comments

0

well idk,it may,i dont remember

0

You can ask me if you want more lines

This discussion is preserved as it was. New answers, comments, and votes are closed.