-
What do you want to achieve? a script that changes the player’s team from mortal to witch during (
ClockTime) 23-23.999 (which is as close as I can get to 24) -
What is the issue? I tried using a
NumberRangeto make it work but it didnt work (clearly) -
What solutions have you tried so far? not really bc I don’t even know how to make it work correctly
here’s my script so far
local proximityPrompt = script.Parent.ProximityPrompt
local gameTime = game:GetService("Lighting").ClockTime
local midnightHour = NumberRange.new(23, 23.9999)
proximityPrompt.Triggered:Connect(function(player)
if gameTime == midnightHour then
player.Team = game:GetService("Teams").Witch
end
end)