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

How to manipulate strings?

Asked by
sheepposu 561 Moderation Voter
5 years ago
Edited 5 years ago

I need to manipulate some strings in a certain way and I have know idea how.

local msg = '/kick Player1'
if "Check if msg starts with a '/'" then
    local cmd = --Get part after '/' as cmd
    local arg = --Get argument after cmd

Thx in advance

0
idk what you're asking for Imperialy 149 — 5y

Answer this question