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:
The ProximityScript is located under the Proximity Prompt.