You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a part lerp to look at my mouse -
What is the issue? Include screenshots / videos if possible!
I cant figure out how to make the lerp work with CFrame.lookat -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried a lot of different things, but they wont give me what I want
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
script.Parent.Hit.OnServerEvent:Connect(function(p, MHP)
print("recieved")
--This works, but doesnt lerp
script.Parent.CFrame = CFrame.lookAt(script.Parent.Position,MHP)
--[
--this lerps, but I cant get the Vector3Up value correctly
local lookAt = script.Parent.CFrame:PointToWorldSpace(Vector3.new(0,0,-3)):Lerp(MHP,.1)
script.Parent.CFrame = CFrame.lookAt(MHP, lookAt, MHP)
--]]
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.