Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lighting = game.Lighting
- local btn = script.Parent
- btn.MouseButton1Click:Connect(function()
- if lighting.ClockTime == 10 then
- lighting.ClockTime = 19
- btn.Text = "Day" -- Text will change when you pressed the TextButton --
- else
- lighting.ClockTime = 10
- btn.Text = "Night" -- Text Changed after pressed the Button --
- end
- end)
- ---[[ Script created by AliefAthallah ]]---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement