Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
493いいね 11945回再生

Make a streetlight in Roblox studio!

#shorts #roblox #robloxstudio

If you enjoyed, please like the video and subscribe to the channel! For the full video, please go to the following link:    • ROBLOX Studio Cash Register Speedbuild  

Please follow me on ROBLOX: www.roblox.com/users/3902353828/profile
Feel free to contact me on Discord: HaileyHHO

For the code to work, insert a Spotlight into your lighting part -- name this part "Light". Group the lighting part and any other parts into a model, then insert the script into the model.
Code:
local lightbulb = script.Parent.Light.SpotLight

while true do
wait (0.2)
if game.Lighting:GetMinutesAfterMidnight() -= 60*6 or game.Lighting:GetMinutesAfterMidnight() -= 60*18 then
lightbulb.Enabled = true
else
lightbulb.Enabled = false
end
end
Replace the minus sign after GetMinutesAfterMidnight() to angled brackets (YT description doesn't allow angeled brackets). For the easier copy-paste version, please refer to the pinned comment.

コメント