Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local SpeedGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIGradient = Instance.new("UIGradient")
- local SpeedBox = Instance.new("TextBox")
- local ConfirmButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local UIGradient_2 = Instance.new("UIGradient")
- local TextLabel = Instance.new("TextLabel")
- -- Properties:
- SpeedGui.Name = "SpeedGui"
- SpeedGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- SpeedGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = SpeedGui
- Frame.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.266396761, 0, 0.0960629955, 0)
- Frame.Size = UDim2.new(0, 500, 0, 432)
- UICorner.Parent = Frame
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))}
- UIGradient.Parent = Frame
- SpeedBox.Name = "SpeedBox"
- SpeedBox.Parent = Frame
- SpeedBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SpeedBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- SpeedBox.BorderSizePixel = 0
- SpeedBox.Position = UDim2.new(0.334707767, 0, 0.425260812, 0)
- SpeedBox.Size = UDim2.new(0, 200, 0, 50)
- SpeedBox.Font = Enum.Font.SourceSans
- SpeedBox.Text = ""
- SpeedBox.PlaceholderText = "Decal ID gir"
- SpeedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- SpeedBox.TextSize = 14.000
- ConfirmButton.Name = "ConfirmButton"
- ConfirmButton.Parent = Frame
- ConfirmButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ConfirmButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ConfirmButton.BorderSizePixel = 0
- ConfirmButton.Position = UDim2.new(0.226999998, 0, 0.694148183, 0)
- ConfirmButton.Size = UDim2.new(0, 309, 0, 56)
- ConfirmButton.Font = Enum.Font.Unknown
- ConfirmButton.Text = "Confirm"
- ConfirmButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- ConfirmButton.TextScaled = true
- ConfirmButton.TextSize = 14.000
- ConfirmButton.TextWrapped = true
- UICorner_2.Parent = ConfirmButton
- UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(157, 255, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(157, 255, 0))}
- UIGradient_2.Parent = ConfirmButton
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.064000003, 0, 0.020833334, 0)
- TextLabel.Size = UDim2.new(0, 449, 0, 50)
- TextLabel.Font = Enum.Font.Unknown
- TextLabel.Text = "Rip_BinosBey Skybox Changer"
- TextLabel.TextColor3 = Color3.fromRGB(0, 213, 206)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- -- Lua Script to change skybox:
- -- Get the player and their character
- local player = game.Players.LocalPlayer
- -- Handle button click to change the skybox
- ConfirmButton.MouseButton1Click:Connect(function()
- local decalID = SpeedBox.Text -- Get the Decal ID from the TextBox
- if decalID and decalID ~= "" then
- -- Create a new Sky instance if it doesn't exist
- local sky = game.Lighting:FindFirstChildOfClass("Sky")
- if not sky then
- sky = Instance.new("Sky", game.Lighting)
- end
- -- Apply the Decal ID to Skybox textures
- local decalUrl = "rbxassetid://"..decalID
- sky.SkyboxBk = decalUrl
- sky.SkyboxDn = decalUrl
- sky.SkyboxFt = decalUrl
- sky.SkyboxLf = decalUrl
- sky.SkyboxRt = decalUrl
- sky.SkyboxUp = decalUrl
- print("Skybox değiştirildi: " .. decalID)
- else
- warn("Geçersiz Decal ID")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment