Help with script

The highlighted line (bold) in the script is giving this error:
RunService:fireRenderStepEarlyFunctions unexpected error while invoking callback: Center is not a valid member of Workspace “Workspace”
Center is not a valid member of Workspace “Workspace”

if player == plr then
			if yourPets == false then
				for petId, pet in pairs(PlayerPets[player.Name]) do
					**pet:Update(Workspace.Center, hipHeight, false)**
				end
			else
				for petId, pet in pairs(PlayerPets[player.Name]) do
					pet:Update(character.PrimaryPart, hipHeight, isMoving)
				end
			end
		else

pet:Update(Workspace.Center, hipHeight, false) is the line I mean (didn’t get bold)

What is Workspace.Center? That is probably the issue.

The center position of workspace.

Workspace doesn’t have a property called center. You can just type Vector3.new() to get the center of the world.

The workspace has no center position, I think what you mean is Vector3.new(0,0,0), which is the center of the world.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.