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

[SOLVED] Why wont my part face the way my character is facing/looking?

game.ReplicatedStorage.Kame.RemoteEvent.OnServerEvent:Connect(function(plr) local Folder = game.ReplicatedStorage.Kame local core = Folder.Core:Clone() local core2 = Folder.Core2:Clone() local core3 = Folder.Core3:Clone()

-- Appear
core.Parent = plr.Character

core.CFrame = plr.Character:FindFirstChild("HumanoidRootPart").CFrame *               
    CFrame.new(0, 0, -7)

core.Rotation = Vector3.new(0, 100, 0)

end)

core.Rotation = Vector3.new(0, 100, 0) .. This is the rotation that it faces when im using it while my character is facing front or back however when i face left or right it uses the same code so the part faces front.

1 comment

0

if its solved put a [SOLVED] tag in your title

1 answer

Though I am confused about exactly what you are asking I believe you need to change the Rotation of the part dynamically like this:

core.Rotation = plr.Character:FindFirstChild("HumanoidRootPart").Rotation

2 comments

0

Thankyou for the help i managed to get it fixed by using lookvector so ye

0

Okay

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