it says i cant add a vector3 value…
try this actualy
part.Position:lerp(HumanoidRootPart.Position+Vector3.new(0,5,0),.1)
replace humanoidrootpart with your
thats the same thing u did before
My version involves CFrames. Your version involves Positions which excludes the orientation. If OP considered making the part follow the player without changing orientation, then he may use your answer.
ok maybe
local RootPart = HumanoidRootPart
part.Position:lerp(Vector3.new(RootPart.X,RootPart.Y+5,RootPart.Z),.1)
Oh ok . I understand aaaowAAAAAAAAAAAAAA
Wait no!, actually, try this.
Part.CFrame:Lerp(CFrame.New(HumanoidRootPart.Position)*CFrame.new(0,5,0),.1)
you copied me!!!
Proof1?!?!?!?!??!?!?!?!?!?!?!!?!?!?!?!?!?!?!?!?!?!?!?!?! Hm Proof?!?!?!
stop copying people or whatevers happpening, i got an error
"attempt to call a nil value "
Idk help
Actually if you look at the time I uploaded my post saying “Proof,” you will notice that it’s upload date is before you posted the code you had saved for later. The code you have saved for later actually was posted after I had asked for proof, therefore shutting down your accusation.
Where did it happen ?!?!?!??!!??!??!?!?!?!?!?!??!?!?!?
line 6, aka the line YOUUUU WROTE!!! maybe you stole it :0
False accusation. This is not true
The only thing I have stolen is I can assure you I did not steal that line of code. Maybe you can try this: (its not the same I fixed something
Part.CFrame:Lerp(CFrame.new(HumanoidRootPart.Position)*CFrame.new(0,5,0),.1)
But as you can see it clearly is a true.
Bro get yo “Hi, my name is reggie” looking ah out of there
I believe you have not gotten the HumanoidRootPart so I’m going to edit my script with everything included.
local runService = game:GetService("RunService")
local offset = CFrame.new(0,0,0) -- set this to anything you want
local rate = 0.5 -- same with this one
local lastCFrame = CFrame.new()
local object -- path to selected object you want to follow de player
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character.HumanoidRootPart
runService.Heartbeat:Connect(function()
object.CFrame:Lerp(humanoidRootPart.CFrame * offset, rate)
end)