Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
iuufhr 0
2 years ago
Edited by Xapelize 2 years ago

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.
0
if its solved put a [SOLVED] tag in your title Xapelize 2658 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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
0
Thankyou for the help i managed to get it fixed by using lookvector so ye iuufhr 0 — 2y
0
Okay Rogue_Ram 40 — 2y
Ad

Answer this question