Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The BodyGyro doesn't do anything and no errors are showed up. Why?

So I want to make the player face a Part in workspace. I tried with Body Gyro but it doesn't do anything, although there are no errors in the Output. Any ideas why?

This is the code:

local g = Instance.new("BodyGyro")
			g.Parent = character.Torso
			g.CFrame = CFrame.new(Vector3.new(character.Torso, workspace.Point))
        	wait(1)
			g.Parent = nil

1 comment

0

instances cant give errors

1 answer

Try the script below Now the player will look to that part. Succes! Jonas

character.HumanoidRootPart.CFrame = CFrame.lookVector(part.Position)

1 comment

0

Doesn't work: attempt to call field 'lookVector' (a nil value)

This discussion is preserved as it was. New answers, comments, and votes are closed.