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

How to make a local grouped model that follows you?

Asked by 4 years ago
Edited 4 years ago

I need to have a grouped model that only the local player can see follow the player while they move. It looks like this: https://ibb.co/1QP43mX The player needs to always be in the middle of this model, and no other players must see it.

Please help I have tried a lot. I would appreciate a bit of help :) I am beginner!

EDIT: Script I have so far (not working at all, nothing happens):

player = game.Players.LocalPlayer
character = player.Character
hmndrootpart = character:FindFirstChild("HumanoidRootPart")

while true do
    local playerPos = Vector3.new()
    game.Workspace.Table.PrimaryPart:MoveTo(hmndrootpart.Position.X, hmndrootpart.Position.Y, hmndrootpart.Position.Z)
    wait()
end
0
Set the model's PrimaryPart to one of the parts inside of the model, and do a while loop setting the position of the PrimaryPart doing :SetPrimaryPartCFrame, or you can do :WalkTo, :MoveTo, etc. killerbrenden 1537 — 4y
0
We only help with Already existing scripts, Show us one of your attempts and we will attempt to improve and fix problems Luka_Gaming07 534 — 4y
0
I added some code, but it doesn't work. lolfacehappy 0 — 4y

Answer this question