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

How would I make a model follow me?

Asked by
Synth_o 136
5 years ago
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()

local Orb = Instance.new("Part", Character)
Orb.Name = "Orb"
Orb.Shape = Enum.PartType.Block
Orb.CanCollide = false
Orb.BrickColor = BrickColor.new("Really black")
Orb.Material = Enum.Material.Neon
Orb.Transparency = 0
Orb.Size = Vector3.new(1,1,1)
Orb.TopSurface = Enum.SurfaceType.Smooth
Orb.BottomSurface = Enum.SurfaceType.Smooth

local BodyPosition = Instance.new("BodyPosition", Orb)

while wait(0) do
    BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0))
end

Right now only a part follows me, how would I incorporate a model?

1 answer

Log in to vote
0
Answered by
wentman 19
5 years ago
Edited 5 years ago

Pathfind is the answer: http://wiki.roblox.com/index.php?title=Pathfinding

Ad

Answer this question