This won’t be to hard i just want to know what functions change the time and stuff
Can you elaborate on what you mean by “game time”? We need a specific example of what you are trying to achieve.
Pretty easy. For workspace time just do this:
game.Lighting:SetTimeOfDay("14:00:00") -- Sets the time to 2:00 PM
For a Wait part in your script you can simply use this:
wait(5) -- Pauses the script execution for 5 seconds
DistributedGameTime: This property returns the current game time as a number. It can be used to access and manipulate the game’s time value. For example:
local currentTime = game.Workspace.DistributedGameTime
Then lastly TweenService Time. This allows you to smoothly transition something over time. For example:
local tweenService = game:GetService("TweenService")
local part = game.Workspace.Part -- The part you want to animate
local tweenInfo = TweenInfo.new(5) -- 5 seconds duration
local goal = {Size = Vector3.new(10, 10, 10)} -- Target size of the part
local tween = tweenService:Create(part, tweenInfo, goal)
tween:Play()
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.