Alright so im working on a reverse horror game that i need a grapple script for. So i got it working but i cant get the character to move. It just disconnects. I have tried everything so this is my last resort.
No errors btw.
local player = game.Players.LocalPlayer
local character = player.Character
local arm = character:WaitForChild("Right Arm")
local root = character:WaitForChild("HumanoidRootPart")
local mouse = player:GetMouse()
local a0 = Instance.new("Attachment")
local a1 = Instance.new("Attachment")
local rope = Instance.new("RopeConstraint")
mouse.Button1Up:Connect(function()
a0.Parent = arm
a1.Parent = workspace.Terrain
a1.Position = mouse.hit.p
rope.Attachment0 = a0
rope.Attachment1 = a1
rope.Parent = workspace
rope.Visible = true
local Info = TweenInfo.new(1,Enum.EasingStyle.Circular,Enum.EasingDirection.In,0,false,0)
local Goal = {Position = mouse.hit.p} -- getting it to the position
local Tween = game:GetService("TweenService"):Create(root,Info,Goal) -- the tween
Tween:Play() -- playing it
end)

1 comment
Have you tried using a BodyVelocity for this perhaps?