What’s the code your are using to fire the event?
I suspect you are trying to provide the local player as an argument, when it’s actually provided automatically
local textlabel = script.Parent
local startTime = 130
local event = game.ReplicatedStorage.Events:WaitForChild("TimeIncrease")
local function startTimer(timeinseconds)
for i=1, timeinseconds do
script.Tick:Play()
timeinseconds -= 1
textlabel.Text = os.date('%M:%S', timeinseconds)
event.OnServerEvent:Connect(function(player, timegiven)
print(timegiven)
timeinseconds += timegiven
end)
if timeinseconds < 120 then
workspace.Ambience.Playing = true
else
workspace.Ambience.Playing = false
end
if timeinseconds == 0 then
textlabel.Text = "ur cooked"
return
end
task.wait(1)
end
end