Thank you for using our website
Your script:
local client = game.Players.LocalPlayer
local repStorage = game:GetService('ReplicatedStorage')
local startTrialRemote = repStorage:WaitForChild('Remotes'):WaitForChild('StartTimeTrial')
local trialName = 'Backwards Compatibility'
local trial = workspace:WaitForChild('Map'):WaitForChild('TimeTrials'):WaitForChild(trialName)
local trialStart = trial:WaitForChild('Start')
local trialEnd = trial:WaitForChild('End')
local trialTextLabel = client:WaitForChild('PlayerGui'):WaitForChild('MainUI'):WaitForChild('TimeTrial'):WaitForChild('Label')
while task.wait() do
local trialTime = 0
repeat
client.Character:PivotTo(trialStart:GetPivot())
task.wait()
startTrialRemote:FireServer(trialName)
if trialTextLabel.Text:match('50s') then
trialTime = tonumber((string.gsub(trialTextLabel.Text, "s / 50s", "")))
end
until trialTime > 2
task.wait()
repeat
client.Character:PivotTo(CFrame.new(trialEnd:GetPivot().Position) * CFrame.new(math.random() - 0.5, 3 + (math.random() - 0.5), math.random() - 0.5))
task.wait()
until trialTextLabel.Parent.Visible == false
end