I dont know to make it work with keyword
what do you mean with keyword?!
it will work if it detects that word, even if its not exact. “agerhe rapture”
ok nevermind this is good enough
its ok, tell me maybe i can help you
I told u but u didnt understand
The end is not correct. After the output text it should be end end)
. I’ll show the finished script later.
Ok, so for the whole script instead of doing if textbox.Text == textbox.Text:find("word here")
you should do if script.Parent.ContentText:match("wordhere") == "wordhere"
so if it is nested inside of something it can still be found. Examples: A swear word surrounded by random letters, or a person typing ‘a’ in front of rapture.
Try this code out, with the ends fixed and the things changed:
local plr = game.Players.LocalPlayer
--
local terminalscreen = script.Parent.Parent.Parent
local textbox = script.Parent
textbox:GetPropertyChangedSignal("Text"):Connect(function()
print("work")
task.wait(0.7)
if textbox.ContentText:match("####") == "####" or textbox.ContentText:match("####") == "####" or textbox.ContentText:match("####") == "####" or textbox.ContentText:match("####") == "####" then -- I censored it
plr:Kick("No Swear Words.")
end
if textbox.ContentText:match("rapture") == "rapture" then
print("yes2")
task.wait()
terminalscreen.SurfaceGui:FindFirstChild("Output").Text = [[(c.o.i informational terminal)
this is a local database. be sure to update before each descent. last updated today
[5/3781]
[entry]
the quiet rapture
[body]
in 357 eic, without any prior warning, radio contact with our respective planets was suddenly cut. nobody can recall having visual contact with any planets when the incident occurred, or experiencing any other unusual phenomena, so it's uncertain what exactly might have happened. upon investigation, it was observed independently by several stations that where there had previously been planets, nothing remained. further investigation over the following months revealed that all known planets with sentient life, floura and fauna, a habitable atmosphere, or any sort of natural resources were likewise gone, along with all known stars. the only celestial bodies that have been found since are either uninhabitable moons or asteroids.
many theories have been proposed for this disaster, including religious interpretations of it as a literal rapture, some unknown quantum anomaly, or something more cosmic and sinister. no concrete answers yet. there are no concrete answers]]
end
end)
if textbox.Text == textbox.Text:find("mars") then
end
if textbox.Text == textbox.Text:find("iron lung") or textbox.Text:find("sm13") then
end
if textbox.Text == textbox.Text:find("interstellar martian calander") or textbox.Text:find("imc") then
end
What should happen if you type it correctly:
Edit: You can also just do textbox.ContentText:find(“rapture”) to shorten it.
I just need to fix the stuttering and the text getting to small
Ok. Maybe you could try finding something to delete previous letters when the whole screen gets full. Or maybe you can just make it so it’s not scaled and when it goes off the screen it dissappears.
So it works, right?
yes, I am very bad with text stuff. how would i do the letters thing?
You could try ticking off TextScaled in the output and see if that works.
Make sure the SurfaceGui is not bigger than the size of the screen though.
If i dont have it scaled the text just goes off screen
Could you make the Surface GUI the same size as the computer screen and then just resize the text?
it is the same size, it just doesn’t go down to query so it doesn’t overlap
Ok. Then I am not really sure of how to go about deleting the previous letters to not make it that small, but I will tell you if I figure something out. The good thing is that at least the script works. I’ll still try to fix this though.
should i make a new thread for this issue?
Sure, because technically this thread’s issue is already solved.