This script is uses for Startergear. For example I say !Weaponsets sword then it puts it in the starter gear so when you die you will still have it.
names = {"GTDRIVER"} -- Add in the names of the people you want to be able to use the command script here.} game.Players.PlayerAdded:connect(function(player) for i, v in pairs(names) do if v == player.Name then player.Chatted:connect(function(chatmsg) if chatmsg:sub(1,4) == "!Weaponsets" then tool = game.ReplicatedStorage.tool tool = tool:Clone() tool.Parent = plr.StarterGear end
You did msg:sub(1,4) it should be msg:sub(1,11) since your string is 11 digits long