So I tried to tween HumanoidRootPart but it didn’t go so well.
Basically, the player falls down and I tween their HumanoidRootPart back to their original position.
This is client view:
This is server view:
As you can see, for some reason, on the client-side it looks normal but on server-side only HumanoidRootPart was actually moved. The blocks are actually local so I don’t know if that’s the problem but I check the block’s position on the client and pass them to the server to do the tweening.
Here’s the code:
local rs = game:GetService("ReplicatedStorage")
local ts = game:GetService("TweenService")
rs.ghost.OnServerEvent:Connect(function(plr,char,des)
char.HumanoidRootPart.Anchored = true
for _,part in next,char:GetChildren() do
if part:IsA("BasePart") then
if part.Name ~= "HumanoidRootPart" then
part.Color = Color3.new(255,255,255)
ts:Create(part,TweenInfo.new(2),{Transparency = 0.3}):Play()
end
end
end
task.wait(2)
char.HumanoidRootPart.Anchored = false
ts:Create(char.HumanoidRootPart,TweenInfo.new(3),{Position = des}):Play()
task.wait(3)
rs.ghost:FireClient(plr)
end)
Also there’s this weird glitch that happens when it tweens:
I have tried tweening both CFrame and Position, they produced the same results.