Model not fully parenting

Hello. I’ve got a bizarre problem.

For some reason as the title states, the model does not want to parent fully

Video

Code

local ProximityPromptService = game:GetService("ProximityPromptService")


local Name = script.Parent.Parent.Parent.Name
local function onPromptTriggered(promptObject, Player)
	
	if script.Parent.Parent.Parent.MainUser.Value.Parent == Player.Character and Player.Character[Name] then
		script.Parent.Enabled = false
		print(script.Parent.Parent.Parent.Name)
		script.Parent.Parent.Parent.RadarSphere.CanCollide = false
		script.Parent.Parent.Parent:SetPrimaryPartCFrame(Player.Character[Name].Handle.CFrame)
		Player.Character[Name].Handle.WeldConstraint.Enabled = true
		script.Parent.Parent.BodyPosition.MaxForce = Vector3.new(0,0,0)
		script.Parent.Parent.Parent = Player.Character[Name]

	end
end

ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)

I parent the model to the tool inside the player character here:

script.Parent.Parent.Parent = Player.Character[Name]

But as you can see on the video, only the part gets parented.

Any idea how to fix?

EDIT:
018d117acbeaa1682cfafb2b628dbeef
The ProximityScript is located under the Proximity Prompt.

well given that its kinda hard to tell where this script is i guess you could add another parent

script.Parent.Parent.Parent.Parent = Player.Character[Name]

though could you show us where the proximity script is

1 Like

Edited the question. Proximity Prompt script is located under the proximityprompt, which itself is located under the RadarSphere

018d117acbeaa1682cfafb2b628dbeef

thank you for showing where it is

so if we are to count starting at the script,


script = script
script.Parent = ProximityPrompt / the script’s parent
script.Parent.Parent = RadarSphere / ProximityPrompt’s parent
script.Parent.Parent.Parent = HSD-2 / RadarSphere’s parent


so when you set script.Parent.Parent.Parent your chaning the balls parent instead of the model’s parent.
by adding one more parent to that your now settings hsd-2’s parent fixing your problem.

1 Like

Wow, I totally missed that. Thanks a lot!