In my game there are a lot of cutscene first person pov, and I noticed that when the client on purpose or because of the weakness of the device when it hangs then from the client side animation stops and does not go.
Here’s an example:
When the client doesn’t freeze:
When a client purposely freezes:
How it happens:
What I want:
The script is not local and is triggered by ProximityPrompt
script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
script.Parent.ProximityPrompt.Enabled = false
plr.Character.HumanoidRootPart.CFrame = CFrame.new(script.Parent.Parent.Test.Position) --
plr.Character.HumanoidRootPart.Orientation = Vector3.new(0, 0, 0)
plr.CameraMode = Enum.CameraMode.Classic
plr.PlayerGui.CameraScript.Value.Value = true
plr.Character.HumanoidRootPart.Anchored = true
local Anim1 = script.Parent.Parent:WaitForChild("AnimationPlr")
local AnimPlr = plr.Character.Humanoid:LoadAnimation(Anim1)
AnimPlr:Play()
wait(11.3)
AnimPlr:Stop()
plr.CameraMode = Enum.CameraMode.LockFirstPerson
plr.PlayerGui.CameraScript.Value.Value = false
plr.Character.HumanoidRootPart.Anchored = false
script.Parent.ProximityPrompt.Enabled = true
end)
Is it possible to fix this?