So for instance, i have this:
game:GetService("Players").randomplayer.Chatted:Connect(function(msg) if msg == "range" then end end)
How would i check if after the range, it's a number value and what number it is?
I think it's something to do with using dots like "range" .. something i don't know though..
i would use string.sub
game:GetService("Players").randomplayer.Chatted:Connect(function(msg) if string.sub(msg, 1, 5) == "range" then local num = tonumber(string.sub(msg, 6,#msg)) end end)
also .. is used for "concatenating" string together
print("Hello " .. "World") >Hello World