
1.3k Views
2.0k Executions
sky changer
Universal Script π
acaymanuel16Published 5
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
change sky of games using texture ids!
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)









0 key