So in this video the character tweens over to a golem(I’m eventually going to use this code for the golem but it was just easier to use regular character for now)
My problem is that I don’t want the character to change their rotation but anytime I use only the positions (for example goal.Position = HRP.Position) it sends the character up in the air.
Im very confused so please help me out! Much appreciated.
local dummyHRP = game.Workspace.Golem:WaitForChild("HumanoidRootPart")
local goal = {}
goal.CFrame = dummyHRP.CFrame
local LockOn = Ts:Create(script.Parent.HumanoidRootPart,info,goal)
LockOn:Play()
yeah reason this is happening is because you set the goal to golem’s cframe which means the player turns the same direction as the golem, what you might want to do is:
local dummyHRP = game.Workspace.Golem:WaitForChild("HumanoidRootPart")
local goal = {}
goal.CFrame = CFrame.new(dummyHRP.CFrame.Position*script.Parent:GetPivot().Rotation)
local LockOn = Ts:Create(script.Parent.HumanoidRootPart,info,goal)
LockOn:Play()
Btw I know why the dummy is rotating to the golems cframe. My problem is that when I use something like HRP.Position it shoots the character up in the air
im confused, sorry. What part of the code needs to be fixed? For what I gave you all i did was change the end goal so that the cframe was the position of the golem and the original direction the dummy was facing