script.Parent.ChildAdded:connect(function(child) if (child.Name == "SeatWeld") then local Char = child.Part1.Parent local Human = game.Players:GetPlayerFromCharacter(Char)-- Relocate if (not Human) then return end local heli = script.Parent.Parent heli.Parent = game.Players.LocalPlayer.Character end end) script.Parent.ChildAdded:connect(function(child) while wait(0.2) do if script.Parent:FindFirstChild("SeatWeld") == nil then local Char = child.Part1.Parent local Human = game.Players:GetPlayerFromCharacter(Char) -- Locate out (if left seat) if (not Human) then return end local heli = script.Parent.Parent heli.Parent = game.Workspace end end end)
This is placed in a seat. It works perfectly fine in studio but in server mode, the helicopter model doesn't move into the player model
Line 13, change it to ChildRemoved event, instead, since it seems this would be code for that type of situation.