Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a Part Appear at Night? But not Morning.

Asked by 7 years ago

How do i make a Part Appear at Night but, not morning.

1 answer

Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago

This a crazy guess and correct me if I'm wrong.

Throw this in a script somewhere and NOT a LocalScript .

Perhaps put this script in the part you want???

local Morning = game.Lighting.TimeofDay.--Right after that period, put the time of day you want here for morning.

local Night = game.Lighting.TimeofDay.--Right after that period, put the time of day you want here for Nighttime.

if Morning then
game.Workspace.WhateverPartYouWant.Transparency = 1

if Night then
game.Workspace.WhateverPartYouWant.Transparency = 0

Reply if this script works or not!

0
but you didnt close the if statements and that only scans once noposts 75 — 7y
Ad

Answer this question