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

why is show_room model not moving? [SOLVED]

Asked by 3 years ago
Edited by JesseSong 3 years ago

This question has been solved by the original poster.

i am trying to make it so that each player has their own show room but i managed to make the model copy but it is not moving

local show_room = script.Parent
local copy = show_room:Clone()

function new_child(child)
    if child.p_or_o.Value == "player" then
        copy:MoveTo(Vector3.new(show_room.camera_part.Position.X + 10))
        copy.Name = child.Name .. "'s show room"
        copy.camera_script.player.Value = child.Name
        copy.Parent = game.Workspace
    end
    if child.p_or_o.Value == "object" then

    end
end

game.Workspace.ChildAdded:Connect(new_child)

1 answer

Log in to vote
0
Answered by 3 years ago

fixed it i just needed to put

copy.Parent = game.Workspace

right after

 if child.p_or_o.Value == "player" then
Ad

Answer this question