If anyone is asking, the plate is made of 6 TextLabels, each one got a Script inside it.
Use
if string.match(INAPPROPRIATE TEXT) then
Text = -- your code goes here
end
i think it should work like this.
Where should it go to?:
I would say in the frame or the GUI itself. It does not matter too much really.
Oh, i thout you were using 1 Text Label but, i have a solution!
You can do a check if Let1, Let2, and Let3 is matching into inappropriate text then you can refresh scripts(turn off and turn on)
@SSJ_Lemonade , @Mihaqwest5
I did it like this:
script.Parent.Let1.Changed:Connect(function()
if script.Parent.Let1.Text == "S" and script.Parent.Let2.Text == "E" and script.Parent.Let3.Text == "X" then
script.Parent.Let1.Text = "D"
script.Parent.Let2.Text = "A"
script.Parent.Let3.Text = "F"
elseif script.Parent.Let1.Text == "F" and script.Parent.Let2.Text == "A" and script.Parent.Let3.Text == "K" then
script.Parent.Let1.Text = "D"
script.Parent.Let2.Text = "A"
script.Parent.Let3.Text = "F"
elseif script.Parent.Let1.Text == "F" and script.Parent.Let2.Text == "U" and script.Parent.Let3.Text == "K" then
script.Parent.Let1.Text = "D"
script.Parent.Let2.Text = "A"
script.Parent.Let3.Text = "F"
elseif script.Parent.Let1.Text == "F" and script.Parent.Let2.Text == "U" and script.Parent.Let3.Text == "C" then
script.Parent.Let1.Text = "D"
script.Parent.Let2.Text = "A"
script.Parent.Let3.Text = "F"
--Numbers
elseif script.Parent.Num1.Text == "4" and script.Parent.Num2.Text == "2" and script.Parent.Num3.Text == "0" then
script.Parent.Num1.Text = "5"
script.Parent.Num2.Text = "1"
script.Parent.Num3.Text = "0"
elseif script.Parent.Num1.Text == "0" and script.Parent.Num2.Text == "6" and script.Parent.Num3.Text == "9" then
script.Parent.Num1.Text = "5"
script.Parent.Num2.Text = "1"
script.Parent.Num3.Text = "0"
end
end)
Tell me, If I missed something…
HttpService:GenerateGUID will never return something like that.
why does the license plate for the vehicle was turned backwards?
What do you mean by backwards?
Are you sure it connects the function? try to use print()
to know
hmm, can you try don’t make a custom changed numbers/letter but just make other script that detects inappropriate text/number then reloads the script which generates number?
get all the text (non numbers) from the plate and use robloxs filter system to check if its fine
Anyway, if it works for you then just let it be.
studio: FAK
test: DAF
i hate the character limit -_-
there is an example of filter system.
Search DAF in google
Its a truck company
The system is so strict, you cannot make a plate…
ohhh
-_- character limit again?
local Filter = {
"Inappropriate",
"Inappropriate2"
}
local function RandomString()
local Return = ""
for Index = 1, 3 do
Return = Return .. string.char(65, 98)
end
return Return
end
local TextLabel = ...
TextLabel:GetPropertyChangedSignal("Text"):Connect(function()
local Text = TextLabel.Text
for _, String in pairs(Filter) do
if string.match(string.lower(Text), String) then
TextLabel.Text = RandomString()
end
end
end)
then i suggest doing what empereans said and make ur own filter system as there arent many bad things within the range of 6 letters