Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.