
25 Views
0 Executions
go to room
Universal Script 📌
17 hours ago
Reviewed by QueueSpeedDemonPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
If you press the "go to secret room" button, you will be transported to a secret room; if you press the same button while inside that room, you will return.
Updates
Script edited: Update script
Script edited: Update script
Script edited: Update script
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
if PlayerGui:FindFirstChild("SecretRoomGui") then
PlayerGui.SecretRoomGui:Destroy()
end
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "SecretRoomGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui
local TextButton = Instance.new("TextButton")
TextButton.Size = UDim2.new(0, 200, 0, 50)
TextButton.Position = UDim2.new(0.5, -100, 0.1, 0)
TextButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton.TextSize = 18
TextButton.Font = Enum.Font.SourceSansBold
TextButton.Text = "Go to Secret Room"
TextButton.BorderSizePixel = 2
TextButton.Parent = ScreenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = TextButton
local SavedPosition = nil
local InSecretRoom = false
local function CreateRoom(pos)
local roomName = "ClosedSecretRoom"
local Folder = workspace:FindFirstChild(roomName)
if not Folder then
Folder = Instance.new("Folder", workspace)
Folder.Name = roomName
end
Folder:ClearAllChildren()
local parts = {
Floor = {Size = Vector3.new(30, 1, 30), Position = Vector3.new(pos.X, 7000, pos.Z)},
Roof = {Size = Vector3.new(30, 1, 30), Position = Vector3.new(pos.X, 7015, pos.Z)},
Wall1 = {Size = Vector3.new(1, 15, 30), Position = Vector3.new(pos.X + 15, 7007.5, pos.Z)},
Wall2 = {Size = Vector3.new(1, 15, 30), Position = Vector3.new(pos.X - 15, 7007.5, pos.Z)},
Wall3 = {Size = Vector3.new(30, 15, 1), Position = Vector3.new(pos.X, 7007.5, pos.Z + 15)},
Wall4 = {Size = Vector3.new(30, 15, 1), Position = Vector3.new(pos.X, 7007.5, pos.Z - 14.5)}
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!




