Im making a tank i im not sure how to make a block rotate where im looking at. Can you guys help?
2 Likes
Look at roblox documentation about CFrame, CFrame is what you need to make that
2 Likes
A physics-based tank or an anchored tank?
1 Like
im using a-chassis so physics based tank
Try making the CFrame face the players camera. ![]()
Camera Info:
CFrame info:
Alright so I’ve tried it, and it works.
local cam = workspace.CurrentCamera
local player = game.Players.LocalPlayer
while wait() do
local part = game.Workspace.Part
part.CFrame = CFrame.lookAt(part.Position, cam.CFrame.p)
end
you would need to change “part” into whatever