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

How to make floaty follower (edit) Without delay?

Asked by 5 years ago
Edited 5 years ago

Im trying to make a part follow a player with smooth movement and least amount of lag. I have tried using cframe, tweening and welding. None have given me the desired effect. Heres an example of what I want the part to do https://i.gyazo.com/6df2a8ae62337b4da3139b7f55105478.mp4

Edit:So no I have a block following my player and it looks exactly as I want. The only issue now is that there is a decent delay between the player moving and the block starting to move. Here is the code and a gif to demonstrate. https://gyazo.com/b16234226916461ca073db4aa9497b70

01local RunService = game:GetService("RunService")
02local Players = game:GetService("Players")
03local TweenService = game:GetService("TweenService")
04local ReplicatedStorage = game:GetService("ReplicatedStorage")
05 
06function createPart(c)
07    local part = Instance.new("Part",c)
08    part.Size = Vector3.new(1,1,1)
09    part.Position = c.HumanoidRootPart.Position + c.HumanoidRootPart.CFrame.LookVector * -2 + Vector3.new(0,2,0)
10    return part
11end
12 
13 
14 
15Players.PlayerAdded:Connect(function(player)
View all 27 lines...
1
Probably the easiest way would be to use a BodyPosition and other body movers. MrLonely1221 701 — 5y
0
Even though that is a good way, I like to tween parts, no need for welding. greatneil80 2647 — 5y
0
MrLonely1221 that works pretty good thanks. The only issue now is its lagging behind more than I would like VoltiCoio 19 — 5y
0
lag is probably because of the client lagging on the server. speedyfox66 237 — 5y

Answer this question