Detect player writing mistakes?
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')
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" , |
09 | local LineScript = script.Parent.Parent.LineOne |
10 | local ActivateButton = script.Parent |
11 | local Output = script.Parent.Parent.Output.OutputText |
13 | local AllCityTV = game.Workspace:WaitForChild( "AllCityTv" ):GetChildren() |
15 | local Player = game.Players.LocalPlayer |
19 | local ContentProvider = game:GetService( "ContentProvider" ) |
21 | repeat wait() until ContentProvider.RequestQueueSize = = 0 |
23 | ActivateButton.MouseButton 1 Click:Connect( function () |
25 | if LineScript.Text = = Commands [ 1 ] then |
26 | script.Parent.Parent.Ding:Play() |
27 | script.Parent.Parent.Choices.Visible = true |
28 | script.Parent.Parent.LineOne.Text = "" |
29 | script.Parent.Parent.Tutorial.Visible = false |
30 | script.Parent.Parent.Activate.Visible = false |
32 | if LineScript.Text = = Commands [ 3 ] then |
33 | Output.Text = (Player.PlayerIP.Value.. " is your IP!" ) |
38 | if LineScript.Text = = "" then |
39 | script.Parent.Parent.Alarm:Play() |
41 | ErrorCounter = ErrorCounter + 1 |
42 | if ErrorCounter = = 4 then |
43 | script.Parent.Parent.Detected:Play() |
44 | script.Parent.Parent.Alarm:Stop() |
45 | script.Parent.Parent.Tutorial.Visible = false |
46 | script.Parent.Parent.Activate.Visible = false |
47 | Output.Text = "Police have detected you!" |
49 | if ErrorCounter ~ = 4 then |
51 | script.Parent.Parent.Alarm:Stop() |
Thank you