Why does it say it's not a valid member of the Part?
Asked by
5 years ago Edited 5 years ago
So I made a script that Clones the "Part" from the ReplicatedStorage and adds it to the player character and there's a localscript inside the part which doesn't seem to recognise the Vector3Value instance as a member aswell.
Here's the localscript:
01 | local head = script.Parent.Parent.Parent:WaitForChild( "LowerTorso" ) |
02 | local pet = script.Parent |
03 | local vector = pet.PetPosition |
09 | local p = head.CFrame * vector.Value |
10 | pet.BodyGyro.CFrame = head.CFrame |
11 | pet.BodyPosition.Position = Vector 3. new (p.x, p.y, p.z) |
And here's a photo of the Explorer:
https://imgur.com/seoYvrI
Also by the way, the script does set the disabled value of the localscript as false.
The output error is: PetPosition is not a valid member of Part