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

Change time using ontouch?

Hello, I'm a beginner scripter and I'm wondering if one of you guys know how to make the time change when a player touches a brick, thanks.

1 answer

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		game.Lighting.ClockTime = 23
	end
end)

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