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

Detect player writing mistakes?

Asked by 5 years ago

Im making a 'hack gui' to my game. Players will buy a gamepass, and player with this gamepass will be able to do cool things with this gui (Like turn on fire brigade alarm or change TV image). But im trying to make script that detects if player made a mistake when writing. Then a message will be sent to Police that somebody is trying to hack.

So im trying to make script that detects writing mistakes by player. I would be grateful if somebody could write answer to this question (sorry for my bad english if it is) and also if this is impossible then sorry.

Script (StarterGui button called 'Activate')

01-- Written by kujekmarek (On other account kujekmarekALT)
02 
03local Commands = {
04"<GetFunc>:New[Class{:Obj:},type:TV(Placement<City,All>]:ChangeSignal[New(ID),New],ID[new]=.",
05"<GetFunc>:New[Class{:obj:},type:Billboards(Placement<City,All>]:ChangeSignal[New(ID),New],ID[new]=.",
06"<GetFunc>:New[Class{:Plr:},type:IP(Placement<LocalPlr, local>]:CheckSignal[LocalPlayerIP]:Print",
07}
08 
09local LineScript = script.Parent.Parent.LineOne
10local ActivateButton = script.Parent
11local Output = script.Parent.Parent.Output.OutputText
12 
13local AllCityTV = game.Workspace:WaitForChild("AllCityTv"):GetChildren()
14 
15local Player = game.Players.LocalPlayer
View all 59 lines...

Thank you

0
I think what you're looking for is string.find(), you can use it to check if the string is somewhat close to a command and then change the text of the gui to the command mixgingengerina10 223 — 5y
0
Thanks kujekmarek 24 — 5y

Answer this question