Hello, how do I make a body always point towards another player. I want to make something like this:
But not have the head point at the player:
I hope anyone can help
Hello, how do I make a body always point towards another player. I want to make something like this:
But not have the head point at the player:
I hope anyone can help
I am not sure what you exactly want
But Try something like this:
local Dummy1 = game.Workspace.Dummy1
local Dummy2 = game.Workspace.Dummy2
Dummy1.HumanoidRootPart.CFrame = CFrame.lookAt(Dummy1.HumanoidRootPart.Position,Dummy2.HumanoidRootPart.Position)
thanks! But how do I implement this in a player?
player.Character.PrimaryPart
so works with both R6 and R15.
If you want the LocalPlayer Character look at an Other Player Character Then Try This:
local LocalPlayer = game.Players.LocalPlayer
local Target = game.Workspace["Player"] --Replace this with the Character you want the Player to look at.
LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.lookAt(LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position,Target:FindFirstChild("HumanoidRootPart").Position)
You can also put it in a loop so the player will keep looking at it:
local LocalPlayer = game.Players.LocalPlayer
local Target = game.Workspace["Player"] --Replace this with the Character you want the Player to look at.
game:GetService("RunService").Heartbeat:Connect(function()
LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.lookAt(LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position,Target:FindFirstChild("HumanoidRootPart").Position)
end)
If you want to get a player character then Try this
game.Players["Player"].Character
Wow thanks so much! It helped!
Ok I’m having a problem, so I’m trying to make the player look at another player, but everything I tried didn’t work. Can you help me?
Just change the Target variable to the player’s character
local Target = game.Players["Player"].Character