SCP-173 is known for its speed and stealth. In SCP: Containment Breach , it moves unpredictably and becomes completely motionless when observed. Currently, I’ve implemented its movement by setting Humanoid.WalkSpeed = 100 and stopping its pathfinding cycle abruptly when a player detects it. The issue is that this creates a sudden, jarring halt when players notice it, which looks unnatural.
Additionally, it must be accounted for that SCP-173 can be shot at, with hits detected using raycasts.
How can I improve this? I’m open to any suggestions!
Could you clarify what you’re looking for? You mention SCP-173 is supposed to become motionless when observed, but that it stopping when being observed is jarring. What is it that you are envisioning, exactly?
Yeah I’d do this if the problem is that it’s not stopping fast enough. That or toggle on custom physical properties for SCP-173’s primary part and set the density way up (this affects momentum). Otherwise we need more context
Try either what zerod suggested or what I suggested. If it still does that then you’ll have to implement a workaround to stop roblox from interpolating the rig, like anchoring the rig on the client when the client sees it.
local function MoveToStopped(model, position)
local start = tick()
local distance = 9999
repeat
distance = (model.PrimaryPart.Position - position).Magnitude
until distance < 5 or tick() - start > 8
end