You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to move some models that are in a model named Plane…a players name -
What is the issue? Include screenshots / videos if possible!
well i have the plane and it turns but it dosen’t move/teleports it only moves the piviot of the model -
What solutions have you tried so far? Did you look for solutions on the Developer Hub? i have tried nothing becuase there is nothing i can think of i tried to use piviot to for others models and those worked
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
game.ReplicatedStorage.edit.OnServerEvent:Connect(function(plr)
if game.Workspace:FindFirstChild("Plane"..plr.Name) then
local plane = game.Workspace:FindFirstChild("Plane"..plr.Name)
--Instance.new("Model").PrimaryPart =
plr.Character.Humanoid.Jump = true
wait(.5)
plr.Character:MoveTo(game.Workspace.owners:WaitForChild(plr.Name).position1.Position)
plane:PivotTo(CFrame.new(game.Workspace.owners:FindFirstChild(plr.Name).position1.Position )*CFrame.fromEulerAnglesXYZ(0,math.rad(0),0))
wait(5)
plane:PivotTo(CFrame.new(game.Workspace.owners:FindFirstChild(plr.Name).position1.Position )*CFrame.fromEulerAnglesXYZ(0,math.rad(0),0))
if plane:FindFirstChild("cockpit") then
local cockpit = plane:FindFirstChild("cockpit")
if cockpit:FindFirstChild("nose") then
cockpit:FindFirstChild("nose").Anchored = true
game.ReplicatedStorage.edit:FireClient(plr,"big")
else
if plane:FindFirstChild("nose") then
plane:FindFirstChild("nose").nose.Anchored = true
game.ReplicatedStorage.edit:FireClient(plr,"small")
end
end
end
plane:PivotTo(CFrame.new(game.Workspace.owners:FindFirstChild(plr.Name).position1.Position )*CFrame.fromEulerAnglesXYZ(0,math.rad(0),0))
print("moved")
wait(.2)
plane:PivotTo(CFrame.new(game.Workspace.owners:FindFirstChild(plr.Name).position1.Position )*CFrame.fromEulerAnglesXYZ(0,math.rad(0),0))
wait(2)
plane:PivotTo(CFrame.new(game.Workspace.owners:FindFirstChild(plr.Name).position1.Position )*CFrame.fromEulerAnglesXYZ(0,math.rad(0),0))
for _, model in ipairs(plane:GetChildren()) do
model.Parent = game.Workspace.owners:FindFirstChild(plr.Name).planestorage
end
if game.Workspace.owners:FindFirstChild(plr.Name):FindFirstChild("cockpit") then
local cockpit = game.Workspace.owners:FindFirstChild(plr.Name):FindFirstChild("cockpit")
if cockpit:FindFirstChild("nose") then
cockpit:FindFirstChild("nose").Anchored = true
else
if game.Workspace.owners:FindFirstChild(plr.Name):FindFirstChild("nose") then
game.Workspace.owners:FindFirstChild(plr.Name):FindFirstChild("nose").Anchored = true
end
end
end
plane:Destroy()
end
end)