local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local StarterGui = game:GetService("StarterGui") local Player = game.Players.LocalPlayer local Camera = workspace.CurrentCamera local WALK_SPEED = 16 local SPRINT_SPEED = 20 local BLOCKED_IDS = { ["rbxassetid://279229192"] = true, ["rbxassetid://287112271"] = true } local lastPosition = nil local lastCameraCFrame = nil local spawnProtectionActive = false Player.CharacterAdded:Connect(function(character) local savedPos = lastPosition local savedCam = lastCameraCFrame local rootPart = character:WaitForChild("HumanoidRootPart", 10) if rootPart and savedPos then spawnProtectionActive = true task.wait(0.1) rootPart.CFrame = savedPos if savedCam then Camera.CameraType = Enum.CameraType.Scriptable Camera.CFrame = savedCam task.wait() Camera.CameraType = Enum.CameraType.Custom end task.spawn(function() repeat task.wait(0.1) until not character:FindFirstChildOfClass("ForceField") spawnProtectionActive = false end) end end) RunService.Heartbeat:Connect(function() pcall(function() StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) end) local character = Player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") local rootPart = character:FindFirstChild("HumanoidRootPart") local ff = character:FindFirstChildOfClass("ForceField") if humanoid and rootPart then if not ff and humanoid.Health > 0 then lastPosition = rootPart.CFrame lastCameraCFrame = Camera.CFrame elseif ff and humanoid.Health > 0 and not spawnProtectionActive then if lastPosition then rootPart.CFrame = lastPosition end end for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do if track.Animation and BLOCKED_IDS[track.Animation.AnimationId] then track:Stop() end end local isSprinting = UIS:IsKeyDown(Enum.KeyCode.LeftShift) or UIS:IsKeyDown(Enum.KeyCode.RightShift) humanoid.WalkSpeed = isSprinting and SPRINT_SPEED or WALK_SPEED end end end)