Hello, I am trying to make a telekinesis script where u can telekinetically pull a stake towards you and it will stay at the side following you, However its currently not working as well as i would want it too
This is what i want:
This is what I’ve made up to now:
Here is the script:
local Character = Player.Character
Character.Humanoid.WalkSpeed = 10
Target.CanCollide = false
local BP = Instance.new("BodyPosition", Target)
BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BP.Position = Character.HumanoidRootPart.CFrame.Position + Vector3.new(2.847, 0.5, 2)
Target.Orientation = Character.HumanoidRootPart.Orientation + Vector3.new(0,90,0)
task.spawn(function()
Character.Humanoid.Changed:Connect(function()
BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BP.Position = Character.HumanoidRootPart.CFrame.Position + Vector3.new(2.847, 0.5, 2)
Target.Orientation = Character.HumanoidRootPart.Orientation + Vector3.new(0,90,0)
end)
end)
The Target is ofc the stake and its my first time using body position so i was just wondering if there’s any way to get it to look exactly like the videos?
I want it to be on the left side of the character and it to smoothly go to the position, Animations and the other functions will be added later on i just wanna know how i get it to move smoothly and in the correct place where i want it to be also to rotate correctly facing the same way the character is facing