Jumpscare lobby open source
Key Required

Jumpscare lobby open source

Lost in the Desert - Abu Fanous1w691w69 5.2K views 393 executesUpdated Jul 18, 2025
5.0/ 5(4 votes)
40100% Positive
Lua Script•130 lines (4256 chars)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local gui = Instance.new("ScreenGui", PlayerGui)
gui.Name = "RainbowEdgeGui"

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 320, 0, 90)
frame.Position = UDim2.new(0.5, -160, 0.5, -45)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12)

local topBar = Instance.new("Frame", frame)
topBar.Size = UDim2.new(1, 0, 0, 35)
topBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
topBar.BorderSizePixel = 0
Instance.new("UICorner", topBar).CornerRadius = UDim.new(0, 12)

local function addRainbowGradient(parent)
	local grad = Instance.new("UIGradient", parent)
	grad.Color = ColorSequence.new{
		ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
		ColorSequenceKeypoint.new(0.2, Color3.fromRGB(255, 127, 0)),
		ColorSequenceKeypoint.new(0.4, Color3.fromRGB(255, 255, 0)),
		ColorSequenceKeypoint.new(0.6, Color3.fromRGB(0, 255, 0)),
		ColorSequenceKeypoint.new(0.8, Color3.fromRGB(0, 0, 255)),
		ColorSequenceKeypoint.new(1, Color3.fromRGB(139, 0, 255)),
	}
	grad.Rotation = 45
	local tweenService = game:GetService("TweenService")
	local info = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true)
	tweenService:Create(grad, info, {Rotation = 405}):Play()
end

addRainbowGradient(frame)
addRainbowGradient(topBar)

local discordLabel = Instance.new("TextLabel", topBar)
discordLabel.Size = UDim2.new(0, 200, 1, 0)
discordLabel.Position = UDim2.new(0, 10, 0, 0)
discordLabel.BackgroundTransparency = 1
discordLabel.Text = "discord:1w69"
discordLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
discordLabel.Font = Enum.Font.SourceSansBold
discordLabel.TextSize = 16
discordLabel.TextXAlignment = Enum.TextXAlignment.Left

local closeBtn = Instance.new("TextButton", topBar)
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -40, 0, 2)
closeBtn.BackgroundColor3 = Color3.fromRGB(180, 30, 30)
closeBtn.Text = "❌"
closeBtn.TextColor3 = Color3.new(1, 1, 1)
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.TextSize = 20
Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 12)

closeBtn.MouseButton1Click:Connect(function()
	gui:Destroy()
end)

local buttonHolder = Instance.new("Frame", frame)
buttonHolder.Size = UDim2.new(1, 0, 0, 50)
buttonHolder.Position = UDim2.new(0, 0, 0, 35)
buttonHolder.BackgroundTransparency = 1

local UIList = Instance.new("UIListLayout", buttonHolder)
UIList.Padding = UDim.new(0, 10)
UIList.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIList.SortOrder = Enum.SortOrder.LayoutOrder

local function createButton(text)
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(0.8, 0, 0, 40)
	btn.BackgroundColor3 = Color3.fromRGB(40, 70, 120)
	btn.TextColor3 = Color3.fromRGB(255, 255, 255)
	btn.Font = Enum.Font.SourceSansBold
	btn.TextSize = 18
	btn.Text = text
	Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 12)
	addRainbowGradient(btn)
	btn.Parent = buttonHolder
	return btn
end

local RunService = game:GetService("RunService")
local active = false
local connection

local btn1 = createButton("Jumpscare only lobby ❌")

local function randomValue()
	local values = {
		"test", 123, true, false,
		Vector3.new(math.random(), math.random(), math.random()),
		Color3.new(math.random(), math.random(), math.random()),
		Enum.Material.Neon,
		Enum.KeyCode.A,
	}
	return values[math.random(1, #values)]
end

btn1.MouseButton1Click:Connect(function()
	active = not active
	btn1.Text = "Jumpscare only lobby " .. (active and "✅" or "❌")

	if active then
		local remote = ReplicatedStorage:FindFirstChild("JumpscareRemote")
		if remote and remote:IsA("RemoteEvent") then
			connection = RunService.Heartbeat:Connect(function()
				pcall(function()
					remote:FireServer(randomValue(), randomValue(), randomValue())
				end)
			end)
		else
			active = false
			btn1.Text = "Jumpscare only lobby ❌"
		end
	else
		if connection then
			connection:Disconnect()
			connection = nil
		end
	end
end)

Features & Information

The interface comes with a single button to activate the Jump scare in the lobby. 🔐License: This script is open source. You are free to modify, improve, or use it in any project without restrictions.

Community Comments (5)

ts is so W

1w691w69Jul 18, 2025

@The_Doc040 bro Publishing open-source code reflects the principle of transparency in the programming world and helps empower others to learn and build upon existing ideas.

lee61007lee61007Jul 18, 2025

i love it i love it i love it

The_Doc040The_Doc040Jul 18, 2025(edited)

@1w69 Ik. I just made it a loadstring for convenience. I didn't change anything in it, and I didn't say to obfuscate it

1w691w69Jul 19, 2025

@the_Doc040 Bro, I know that if my texts were long I would have done it, but they are short and open to everyone.