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

I need to create a prisoner booking system but need help. Can you help me please?

Asked by 3 years ago

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?

0
Look into RemoteFunctions, RemoteEvents, and datastores :) Heavenlyblobmaster 271 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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)
Ad

Answer this question