Universal Script πŸ“Œ
1.3k Views
2.0k Executions

sky changer

Universal Script πŸ“Œ
acaymanuel16
acaymanuel16Published 5
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

change sky of games using texture ids!

View Raw
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")

local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

if PlayerGui:FindFirstChild("SkyChangerGUI") then
	PlayerGui:FindFirstChild("SkyChangerGUI"):Destroy()
end

local OriginalSkyData = nil
local ExistingSky = Lighting:FindFirstChildOfClass("Sky")

if ExistingSky then
	OriginalSkyData = {
		SkyboxBk = ExistingSky.SkyboxBk,
		SkyboxDn = ExistingSky.SkyboxDn,
		SkyboxFt = ExistingSky.SkyboxFt,
		SkyboxLf = ExistingSky.SkyboxLf,
		SkyboxRt = ExistingSky.SkyboxRt,
		SkyboxUp = ExistingSky.SkyboxUp,
		SunTextureId = ExistingSky.SunTextureId,
		MoonTextureId = ExistingSky.MoonTextureId,
		StarCount = ExistingSky.StarCount,
		CelestialBodiesShown = ExistingSky.CelestialBodiesShown,
	}
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "SkyChangerGUI"
ScreenGui.Parent = PlayerGui
ScreenGui.ResetOnSpawn = false
ScreenGui.IgnoreGuiInset = true

local Main = Instance.new("Frame")
Main.Parent = ScreenGui
Main.Size = UDim2.new(0, 340, 0, 182)
Main.Position = UDim2.new(0.5, -170, 0.5, -91)


Comments

1
Log in to join the conversation. Login
acaymanuel16's profile picture
acaymanuel16Uploader8 months ago

0 key

1

More universal scripts

See all
Universal Script πŸ“Œ
214
1.6k
Bumped 27 minutes ago
Key System
Script hub
158.1k
496.6k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script πŸ“Œ
597.7k
4.2M
Bumped 2 hours ago
Script hub
50.9k
320.4k
Bumped 4 hours ago

Script hub

Nameless Admin

Script hub
176.9k
1.6M
Bumped 6 hours ago
Key System