When I try to change the parent of a suitcase from the player to the body of a plane, I used the script below. This will change the parent, but when I try to move the plane, it won't move with it. What should I do to fix it?
local part = script.Parent
local function OnTouched(hit)
--if it's a suitcase, anchor it and change it's parent to the plane's body
if hit and hit.Name == "Suitcase" then
hit.Parent = game.Workspace.LS.Values.PlaneBody.Value
hit.Anchored = false
end
end
--connect events
part.Touched:connect(OnTouched)
