Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Should I tween a person's HumanoidRootPart via client or server?

Asked by
Misqueso 145
4 years ago

I am trying to create a dash ability and can't decide whether to tween on the client-side or server-side. Which way is better, or are there any pros and cons to doing client-side vs server-side? Something like this.

humroot.Anchored = true
local moveHRoot = tweenService:Create(humroot, TweenInfo.new(.5), {CFrame = CFrame.new(position, position + dir)})
moveHRoot:Play()
moveHRoot.Completed:connect(function()
    humroot.Anchored = false
end)

Answer this question