In todays video I show you how to make a shadows on and off button in Roblox Studio. Shadows can sometimes cause lag in a players game which could cause them to leave if there isn't a solution to help with the lag, this shadow button controls if shadows are enabled or not.
So..... if you did want this type of feature in your game make sure to watch to the end of the video to find out how!
I really enjoy making these videos for you all so I hope you enjoy them just as much as I do!
Have a lovely rest of your day!
Script: (Script must be inside a local script in a gui button).
local Gui = script.Parent
Gui.MouseButton1Click:Connect(function()
if game.Lighting.GlobalShadows == false then
Gui.Text = "Turn Shadows OFF" -- This is the text that will be shown when the shadows are enabled.
game.Lighting.GlobalShadows = not game.Lighting.GlobalShadows
else
Gui.Text = "Turn Shadows ON" -- This is the text that will be shown when the shadows are disabled.
game.Lighting.GlobalShadows = not game.Lighting.GlobalShadows -- This controls when and if the GlobalShadows are true or false.
end
end)
-- Made with love by Floppy
---------------------
If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!
NEW! Floppys Obby Game : www.roblox.com/games/14917960...
Floppys Simulator Game: www.roblox.com/games/13963457...
FloppyFish Merch Store: itz-floppyfish.creator-spring...
If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Game : www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Негізгі бет Ойындар How to make a SHADOWS ON or OFF Button | Roblox Studio Tutorial
Пікірлер: 33