im tweening the players' hrp from one position to another while its anchored but i think its breaking everything up cuz the client sees things perfectly, but the serves buggin tf out and idk why
heres the relevent code :
--On Client Side script
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://108142427409895"
local AnimationTrack = char.Humanoid.Animator:LoadAnimation(Anim)
AnimationTrack:Play()
AnimationTrack:GetMarkerReachedSignal("Mouse"):Connect(function()
local Mouse = LocalPlayer:GetMouse()
local MouseCFrame = Mouse.Hit
ReplicatedStorage.Lucario.SunBecoming:FireServer("Mouse", MouseCFrame)
end)
--Server Script (didn't add the whole event thing cuz who cares
--First tween
local TSInfo = TweenInfo.new(2.06, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out)
local PosTween = TS:Create(hrp, TSInfo, {Position = hrp.Position + Vector3.new(0,100,0)})
PosTween:Play()
--Second tween
local Speed = (MouseCFrame.Position - hrp.Position).Magnitude
local Time = Speed / 200
local TSInfo = TweenInfo.new(Time, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
local CrashDownTween = TS:Create(hrp, TSInfo, {Position = MouseCFrame.Position})
CrashDownTween:Play()
Client POV :
https://gyazo.com/a0f07842817cd9af80fa41bbc84928a1
Server POV:
https://gyazo.com/6c714f04c5cbaee4774261fd474f4a71