Jailbreak's Robbery Opening and Closing System

Hey,

I’m a small YouTuber and I make ROBLOX studio related videos, and this time my video idea was to create the ROBLOX Jailbreak Casino robbery which released on April 2nd 2022. Everything works, except one thing, how do I make a robbery opening and closing system? I have no idea how Jailbreak did it, and hoping to see if anybody else has some good ideas.

I’m a good programmer overall, I just need ideas.

Thanks!

4 Likes

Hmm, have you tried checking the Lighting.TimeOfDay and firing events to open and close the robbery when the times align the time you want said casino to be robbed? not really sure if you can do that with Lighting.TimeOfDay but it’s worth a shot?

try mixing it with :GetPropertyChangedSignal() but I don’t know if that would work or not since I dont really get the property changed signal yet-

good luck on your video! lmk if I can be of help:)

2 Likes

Add a bool value that can show opened or closed. and make script like

local coolTime = math.random(100,120)
local boolValue = script.Parent
local robbingTime = 100

while wait(coolTime) do
    boolValue.Value = true
    wait(robbingTime)
    boolValue.Value = false
end

(other script)

boolValue.Changed:Connect(function(value) 
    if value == true then
     -- run if opened
else
     -- run if closed
  end
end)

It might work!

1 Like

The thing is that You can check Lighting.ClockTime.
You can make an event like

game.Lighting.ClockTime.Changed:Connect(function() 
-- do ur code here
end) 

The function returns new ClockTime value, therefor You can do if condition here

game.Lighting.ClockTime.Changed:Connect(function(newTime) 
      local openTime, closeTime = -- values of your choice
      if newTime == openTime then
            -- ur code
      elseif newTime == closeTime then
            -- ur code
      end
end) 

Obviously You have to make day of time Changing script. Based on f.e. while loop

It can’t work if his game don’t have day cycle.

I know it, that’s why I suggested it.

Alright! These ideas will do

Thank you all so much!
@1NoFree, @hopeshusbvnd and @BloxxyLenny thank you! :slight_smile:

2 Likes

No problem, good luck on video. :wink:

1 Like

Good luck! Personally, I’ve been watching your YouTube for a long time.

1 Like

could you mark a reply as the solution or change the title so other people don’t keep answering this post? that can cause a lot of confusion often

4 Likes