local man = script.Parent
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
print('FIN')
local parts = game.Workspace.box.bust:GetChildren()
for i,v in pairs(parts) do
v.Anchored = false
end
print("hi")
wait(0)
local tweenService = game:GetService("TweenService")
local part = script.Parent
local tweeningInformation = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0)
local tweeningProperties = {
["Position"] = Vector3.new(-8.572, 17.175, 6.652);
}
local Tween = tweenService:Create(part,tweeningInformation,tweeningProperties)
Tween:Play()
man.Anchored = true
Tween.Completed:connect(function()
--local search = game.Workspace:FindFirstChildWhichIsA("Model")
--local root = search:WaitForChild("HumanoidRootPart")
repeat
local part1 = script.Parent
local tweeningInformation1 = TweenInfo.new(
0.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0)
local tweeningProperties1 = {
["Position"] = Vector3.new(player.Character.HumanoidRootPart.Position); --player from the remoteevent client to server data transfer
}
local Tween1 = tweenService:Create(part1,tweeningInformation1,tweeningProperties1)
Tween1:Play()
print("lopp")
wait(1)
until script.Parent.clear.Value == true
end)
end)
No errors but it just doesnt move from the spot where player spawned but print (lopp) like it should

11 comments
.Position returns a vector3.
Since you didn't specify, I thought the error was talking about the string "Position"
Everything else looks fine except for root.Position.
Replace line 40 with: local root = search:WaitForChild("HumanoidRootPart")
let me know if it solved it, or if you still encounter an error
@JesseSong I did it and got a warning: Infinite yield possible on 'Workspace.box:WaitForChild("HumanoidRootPart")
i can't help you now, but the error is because humanoidrootpart is nil
how do i fix it
check my answer again, make sure you try it!
@JesseSong I put your script in and replaced it with mine but still the same thing happens
check my answer i finally solved it. also, if it works do some editing to your preference.