So im working on a game where your character is ragdolly and stuff. im trying to make a system where you can grab things and then “slide” while grabbing them.
This is what i have working currently.
External MediaIm trying to add limits to it so you cant just fly off. any help would be useful!
this is the part of the script where it moves the character around (not the whole script)
local newSocket = Instance.new("BallSocketConstraint",armSocket.Attachment0.Parent)
newSocket.Parent = chr.Torso
chr:PivotTo(script.Parent.Parent.CFrame)
newSocket.Attachment1 = script.Parent.Parent.Grab2
newSocket.Attachment0 = chr["Right Arm"].GrabAttachment
task.spawn(function()
while task.wait() do
script.Parent.Parent.Grab2.WorldCFrame += hum.MoveDirection
end
end)
Any help would be useful!