Rope constraint won't form when i activate the Proximity Promt

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    A rope that ties between player 1 and player 2

  2. What is the issue? Include screenshots / videos if possible!
    The rope doesnt work

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

print("Button script is online")

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)

		local attachment = Instance.new("Attachment")
		attachment.Parent = char:WaitForChild("Torso")
		attachment.Name = "RopeAttachment"

		local ProximityPrompt = Instance.new("ProximityPrompt")
		ProximityPrompt.Parent = char:FindFirstChild("Torso")
		ProximityPrompt.ActionText = "Request Bond"
		ProximityPrompt.ObjectText = plr.DisplayName

		ProximityPrompt.Triggered:Connect(function(trig)
			game.ReplicatedStorage.Events.SentRequest:FireClient(trig)

			local otherPlayer = game.Players:GetPlayerFromCharacter(trig.Parent)

			if otherPlayer then
				local otherAttachment = otherPlayer.Character:FindFirstChild("RopeAttachment")
				if otherAttachment then
					local rope = Instance.new("RopeConstraint")
					rope.Attachment0 = attachment
					rope.Attachment1 = otherAttachment
				end
			end
		end)
	end)
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

Rope supposed to be descendant of workspace

Oh yea… my bad i never realized that

… wait what should parent the rope then

Anywhere in workspace, it would be better to make folder for all ropes

it still doesnt work…

message limit