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

Model is not going where its primary part is going???

Asked by 3 years ago

https://medal.tv/clips/67944098/d13373CyAYbe?invite=cr-MSxKcnAsMjQ5MTMwNTks

local sound = Instance.new("Sound", script.Parent)
sound.SoundId = "rbxassetid://1858323537"
local meow = true
local tent = script.Parent:GetChildren()
local orginal = game.ServerStorage.Monster1
local copy = orginal:Clone()
local spawnspots = game.Workspace.SpawnArea:GetChildren()
local randomItem = spawnspots[math.random(1, #spawnspots )]


script.Parent.Humanoid2.HealthChanged:Connect(function(changer)
    if script.Parent.Humanoid2.Health <= 0 then
        if meow == true then
            meow = false
            sound:Play()
            wait(3)
            script.Parent:Remove()
            wait(3)
            meow = true
            copy.Parent = game.Workspace
            print(randomItem)
            copy.PrimaryPart.Position = Vector3.new(spawnspots.Position)
        end
    end
end)

so basically this is supposed to bring my model to one of the spawnspots, but it will only bring the primary part, and not the rest of the model. Do I need to weld it or is there something else I can do?

0
Weld all the parts that are inside of the model to the primary part. xInfinityBear 1777 — 3y
0
sorry but it didn't work FantasticFrontierGuy 33 — 3y
0
It likely will require welding all the parts together. Additionally, set the primary part's CFrame instead of position to move it. Setting position typically breaks the welds. GuestOfChaos 2 — 3y

Answer this question