Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by 4z#0001, do not steal.
- Lock or unlock your game/experience using this script.
- How do I do that?:
- Set AutoShutdown to true if you want your game to not be joined.
- Set AutoShutdown to false if you want your game to be joined/unlocked.
- ]]
- local ServerAction = {
- ["AutoShutdown"] = false -- make sure this is set to true to lock your game
- }
- local AutoLockMessage = "[AutoShutdown]: You cannot join this experience! Come back when this experience is unlocked via Roblox Studio."
- local function ShutdownExperienceServer()
- game.Players.PlayerAdded:Connect(function(JoinAction)
- JoinAction:Kick(AutoLockMessage)
- end)
- end
- if ServerAction.AutoShutdown == true then
- ShutdownExperienceServer() -- AutoShutdown = true
- end
Advertisement
Add Comment
Please, Sign In to add comment