RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script for a part that follows me with comments telling me where to put it"
-- put this script inside the part you want to follow the player in Roblox local part = script.Parent local Players = game:GetService("Players") local RunService = game:GetService("RunService") local function followPlayer() local player = Players.LocalPlayer local character = player.Character if character and character:FindFirstChild("HumanoidRootPart") then local targetPosition = character.HumanoidRootPart.Position + Vector3.new(0, 5, 0) part.Position = part.Position:Lerp(targetPosition, 0.1) end end RunService.RenderStepped:Connect(followPlayer)