RtxyRBLX
(LuaPlus)
June 5, 2023, 10:00pm
#1
I have this issue when I tween the player the server and client positions are different
and other people see you weirdly
Client :
Server :
The Tween code
local Info = TweenInfo.new(.05, Enum.EasingStyle.Linear)
local Tween = TweenService:Create(HumanoidRootPart,Info,{Position=hit})
Tween:Play()
Does anyone know the fix? I’m trying to smoothly get the player to a position
1 Like
If I could, may I get the full code so I can test it out myself? Without the full code, I will not be able to help you with your problem.
You never know what other things could be damaging your code.
1 Like
RtxyRBLX
(LuaPlus)
June 5, 2023, 10:18pm
#3
script.Parent.OnServerEvent:Connect(function(plr,hit)
local Character = plr.Character
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Info = TweenInfo.new(.05, Enum.EasingStyle.Linear)
local Tween = TweenService:Create(HumanoidRootPart,Info,{Position=hit})
Tween:Play()
end)
1 Like
Maybe try adding the Tween:Play()
into a spawn(function()
?
I think you also forgot to add another Enum
in the TweenInfo()
section.
RtxyRBLX
(LuaPlus)
June 5, 2023, 10:27pm
#5
No that doesn’t change anything
and spawn is deprecated so use task.spawn instead
RtxyRBLX
(LuaPlus)
June 5, 2023, 10:36pm
#6
I figured out the issue
I Changed the property to CFrame instead of position
1 Like
Ohhh, duhh. Makes total sense lol
system
(system)
Closed
June 19, 2023, 10:41pm
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.