Back to Scripts
Beyond the sky

Beyond the sky

ScriptBlox
Universal Free

Game: Universal Script 📌

174 Views
0 Likes
0 Dislikes
GdvinnyYt

GdvinnyYt

offline

Features

Experience the color box?

Script Code

-- Beyond the Sky Experience (Fixed)
-- Place this in StarterPlayerScripts as a LocalScript

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local skyDistance = 1000 -- distance to go beyond sky
local teleportBackKey = Enum.KeyCode.B
local teleportBeyondKey = Enum.KeyCode.Space

-- Wait for character
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")

local originalCFrame = hrp.CFrame

-- Function to create a simple starry void
local function createVoid()
	local voidPart = Instance.new("Part")
	voidPart.Size = Vector3.new(500, 500, 500)
	voidPart.Anchored = true
	voidPart.CanCollide = false
	voidPart.Transparency = 1
	voidPart.Position = hrp.Position + Vector3.new(0, skyDistance, 0)
	voidPart.Parent = workspace

	-- add some stars
	for i = 1, 50 do
		local star = Instance.new("PointLight")
		star.Color = Color3.fromRGB(255, 255, 255)
		star.Brightness = math.random(3,6)
		star.Range = math.random(50,150)
		star.Position = Vector3.new(
			math.random(-250,250),
			math.random(-250,250),
			math.random(-250,250)
		)
		star.Parent = voidPart
	end

	return voidPart
end

local voidPart

-- Teleport beyond the sky
local function teleportBeyondSky()
	originalCFrame = hrp.CFrame
	if not voidPart then
		voidPart = createVoid()
	end
	hrp.CFrame = hrp.CFrame + Vector3.new(0, skyDistance, 0)
end

-- Teleport back
local function teleportBack()
	hrp.CFrame = originalCFrame
end

-- Key detection
UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.KeyCode == teleportBeyondKey then
		teleportBeyondSky()
	elseif input.KeyCode == teleportBackKey then
		teleportBack()
	end
end)

print("Beyond the Sky Experience ready! Press SPACE to go beyond the sky and B to return.")

Ratings & Reviews

No reviews yet. Be the first to review this script!

Comments (0)

Please login to comment

Login with Discord

Loading comments...