-- Configuration local TARGET_WALKSPEED = 16 local TARGET_JUMPPOWER = 50 -- Variables to track position local lastDeathPosition = nil local isTeleporting = false local player = game:GetService("Players").LocalPlayer local RunService = game:GetService("RunService") -- Function to handle character setup local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") humanoid.UseJumpPower = true -- Teleport back on respawn if lastDeathPosition and isTeleporting then task.wait(0.1) rootPart.CFrame = CFrame.new(lastDeathPosition) isTeleporting = false end -- Track death position humanoid.Died:Connect(function() if rootPart then lastDeathPosition = rootPart.Position isTeleporting = true end end) -- --- THE ULTRA-FAST LOOPS --- -- Connects directly to the engine's frame render steps to continuously force values local connection1 local connection2 connection1 = RunService.Heartbeat:Connect(function() if character:IsDescendantOf(game) and humanoid.Health > 0 then humanoid.WalkSpeed = TARGET_WALKSPEED humanoid.JumpPower = TARGET_JUMPPOWER else connection1:Disconnect() end end) connection2 = RunService.PreSimulation:Connect(function() if character:IsDescendantOf(game) and humanoid.Health > 0 then humanoid.WalkSpeed = TARGET_WALKSPEED humanoid.JumpPower = TARGET_JUMPPOWER else connection2:Disconnect() end end) end -- Connect to characters if player.Character then task.spawn(onCharacterAdded, player.Character) end player.CharacterAdded:Connect(onCharacterAdded) -- Initial reset if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.Health = 0 end