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

How can I make a certain instance or model appear a certain time of day then dissapear at another?

Asked by 5 years ago
Edited 5 years ago
if game.Lighting.TimeOfDay >= 12 then
    else print("dealer nibba no spawn")
    for i,v in pairs(game.ServerStorage.Dealer:GetChildren()) do
    v.Parent = script.Parent.Dealer
    end
end

that's what I've started with but I don't know what else I could do, and this code doesn't work just somewhat of an example of what im trying to do.

1 answer

Log in to vote
0
Answered by 5 years ago

You must use Lighting:GetMinutesAfterMidnight. Example:

if game.Lighting.GetMinutesAfterMidnight() >= 12 * 60 then
    else print("dealer no spawn")
    for i,v in pairs(game.ServerStorage.Dealer:GetChildren()) do
    v.Parent = script.Parent.Dealer
    end
end

btw dont use the n word as that might get you banned from roblox.

Ad

Answer this question