I Have An Animation And Since I Am Developing A Horror Game It Is In First Person So When The Animation Plays It Is Meant To Move With The Animation But It Just Stays Were The Players Head Would Be. I Don't Know How To fix this.

This My Animation Script:

game.Workspace.Part.Touched:Connect(function()
	local plr = script.Parent.Parent
	local anim = Instance.new("Animation", plr.Character)
	anim.AnimationId = "http://www.roblox.com/asset/?id=6297374590"
	local pAnimm = plr.Character:WaitForChild("Humanoid"):LoadAnimation(anim)
	plr.Character.Humanoid.WalkSpeed = 0
	pAnimm:Play()
	script.Disabled = true
end)

2 comments

0

I'm developing the same concept but more complicated, You should attach the camera to the character head and play with the Camera Type that suits best.

0

And also you should load your animation from Humanoid:WaitForChild("Animator"):LoadAnimation(). Since the way you're doing it is deprecated.