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
6 years ago
01local LocalPlayer = game:GetService("Players").LocalPlayer
02local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
03 
04local Orb = Instance.new("Part", Character)
05Orb.Name = "Orb"
06Orb.Shape = Enum.PartType.Block
07Orb.CanCollide = false
08Orb.BrickColor = BrickColor.new("Really black")
09Orb.Material = Enum.Material.Neon
10Orb.Transparency = 0
11Orb.Size = Vector3.new(1,1,1)
12Orb.TopSurface = Enum.SurfaceType.Smooth
13Orb.BottomSurface = Enum.SurfaceType.Smooth
14 
15local BodyPosition = Instance.new("BodyPosition", Orb)
16 
17while wait(0) do
18    BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0))
19end

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

1 answer

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

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

Ad

Answer this question