Hello everyone I need help scripting. I am trying to make a prisoner booking system in roblox. So a GUI comes up when a player clicks a part and then they will type the players username and then select the reason for them to go to jail. Then it would send the player to jail with a time and it will save there time so if the player leaves or resets they will have the same time when they left/reset. Can anyone please help me?
I can't make the entire script for you because I only know very little on how to script that. But somethings that you should learn about for this situation are datastores and remote events. But I'll give you the script for the gui popup for you.
So first, you need to add a remote event to replicated storage, next add a click detector into the part you want to be clicked. Next, add a script into server script service and type this:
game.Workspace.Part.ClickDetector.MouseClick:Connect(function(Click) game.ReplicatedStorage.OpenGui:FireClient(Click) end)
Next make a screengui and insert a local script into startergui and type this:
game.ReplicatedStorage.OpenGui.OnClientEvent:Connect(function() script.Parent.ScreenGui.Enabled = true end)