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

How to add arguments to command?

Asked by 2 years ago
local groupID = 14041302

game.Players.PlayerAdded:Connect(function(Player)
    if Player:GetRankInGroup(groupID) >= 69 then

        Player.Chatted:Connect(function(message)
            if message == "!meetingtopic" then
                game.Workspace.TextPart.SurfaceGui.OnPartText.Text = "This is new" -- there change to second argument
            else
                return message
            end
        end)
    end
end)
0
I'd love to see an attempt first. Something to look into would be string.sub() as it'd help you out Shawnyg 4330 — 2y

Answer this question