Reproduction Steps
As of right now, while walking around, moving, teleporting from a place to another place, etc… The game will unexpectedly freeze and instantly spit out a crash message.
Further Testing, happened when holding the jump key as people mentioned as well.
Expected Behavior
The game to function normally.
Actual Behavior
An unexpected crash, windows box, pops up on the screen.
Issue Area: Engine Issue Type: Crashing Impact: Critical Frequency: Often Date First Experienced: 2021-08-24 07:08:00 (-04:00)
https://www.roblox.com/games/6678877691/ZO-WIP
My game of 6,000+ people just experienced this.
Everyone crashes the instant you jump, ROBLOX encountered an error and needs to quit.
FFlags just updated, i think it’s something with those
We just lost more than half of our players because of this issue, possibly because of actions we do when a player first joins (teleporting them around)
In addition to the last regard, this is the code I singled out to cause it.
ROBLOX engineers may want to look at this, I don’t see anything I am doing out of the “general ordinary” so LOTS of games may be crashing right now.
local character = script.Parent.Parent
local humanoid = character:WaitForChild("Humanoid")
_G.CanJump = true
local jumps = {}
local lastJump = 0
local jumpDB = tick()
humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
local defaultJumpPower = 50
if humanoid.FloorMaterial ~= Enum.Material.Air and _G.CanJump and (character and not character:FindFirstChild("Ragdolled")) and humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
if character:FindFirstChildOfClass("Tool") then
if tick()-lastJump < 1.5 then
humanoid.Jump = false
return
end
if tick()-lastJump > 3.5 then
jumps = {}
end
local amountOfJumpsRecently = math.clamp(math.log(#jumps), 1, math.huge)
print(amountOfJumpsRecently)
humanoid.JumpPower = defaultJumpPower/(amountOfJumpsRecently)
table.insert(jumps, tick())
lastJump = tick()
return
else
if tick()-lastJump > 1.5 then
humanoid.JumpPower = defaultJumpPower
lastJump = tick()
return
end
end
end
humanoid.Jump = false
end)
Working on a big update, and I have to pause because players are getting crashed instantly joining a server, player count has been more than halved as a result of this.
As stated in the replies above, this is some change to the engine that has caused this.
Figured out the crash seems to have something to do with the humanoid’s FloorMaterial, those are the FFlags that got updated recently and my jump cooldowns seem to be working if i ignore floormaterials.
With a game as big as yours, that may be of help to know and not have to dig for hours.