I am making a :warn command but to have their own custom message. here is how it goes.
local RS = game:GetService('Replicated Storage')
local event = RS:WaitForChild('Event')
function onWarn(warn)
local args = warn:split(' ')
if args[1] == ':warn' then
local plrToWarn = game.Players:FindFirstChild(args[2])
if plrToWarn then
local warnReason = args[3] -- How to i make it like args[3 to when input ends]
end
end
end
Dont worry about the Client bit that bit works its just the local warnReason im stuck on. It works as in this for example
:warn player You have been banned
Shows to Client You have been warned Reason: You

1 comment
ok lemme try