I'm new to coding and I was wondering if someone could help me out by helping me make a script that would allow "police officers" (Team: Police) to be able to open up a database and look at the person's name that they are dealing with and see if they have had and citation's or arrests, etc to add on to this I would like help with a script that when you arrest people with handcuffs it comes up with a panel where you can enter in how long to put them in jail and the reason you are arresting them then after you have filled in that information the player is kicked from the server for that amount of time (in seconds) and all that info that you added in goes to the database, also a citation book that when you write a citation it goes to the offending player they have to "sign it" and then it goes and is displayed on the database when someone looks up said playes name..
Hope this makes sense contact me if you would like further information either through this or on discord my code is #8877
game.Players.PlayerAdded:connect(function(plr) local stats = Instance.new("IntValue", plr) stats.Name = "stats" local arrest = Instance.new("IntValue", stats) arrest.Name = "TimesArrested" local function Arrest(arre) local reason = Instance.new("StringValue", stats) reason.Name = "ReasonArrested" reason.Value = game.Players[plr.Name].PlayerGui.ScreenGui.TextBox.Text arrest.Value = arrest.Value + 1 print(arrest.Value) print(reason.Value) end workspace.arres.Touched:connect(Arrest) end)