Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you make a rope become visible using a script?

I am trying to figure out how to make a rope appear after not being visible by a player typing a keyword in the chat.

I know for a part the transparency changes from 1 to 0 to make it appear but ropes don't have transparency.

This is what I have for a part:

game.Players.PlayerAdded:connect(function(player)

player.Chatted:connect(function(chat)

	if chat == "XII" then

		script.Parent.Transparency = 0

		script.Parent.CanCollide = true

	end

end)

end)

Do I have to change much so it can work for a rope?

1 answer

✓ Accepted answer

It's pretty simple just use the Ropes RopeConstraint.Visible Property

#Example:

local Rope = game.Workspace.RopeFence.Rope

Rope.Visible = false -- <<Turns the rope invisible (Like transparency 1)

2 comments

0

They wanted it to be visible not invisible, in which case it'd be a simple change from Rope.Visible = false to Rope.Visible = true.

0

Just got it! Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.