#help with dragdetectors locally

1 messages · Page 1 of 1 (latest)

modern phoenix
#

I want to make that dragdetectors are handled on client side for optimization. what i know is that i need to check the RunLocally value and i need to update the position in a local script based on mouse position but how can i make the drag smoother like how it is on server, cause there u can change the dragstyle making it appear smoother.

rustic oasis
#

make the player as the network owner when they start dragging the part

local part = script.Parent.Parent
local dragDetector = part.DragDetector

dragDetector.DragStart:Connect(function(plr)
  -- !!!
    part:SetNetworkOwner(plr)
end)
echo galleonBOT
#

studio** You are now Level 1! **studio

modern phoenix
rustic oasis
tender stirrup
rustic oasis
#

Yeah

rustic oasis
tender stirrup
#

is it good for performance too?

#

or should i try to make that the part gets replicated on server every like 15 frames

rustic oasis