Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

RopeConstraints not showing physical rope, just imaginary?

Asked by 7 years ago

I have been trying to use the new RopeConstraint class to create Balloons but there is no visible rope between the parts. Here is what I have so far:

function Activated()
    -- Create A New Balloon
    local NewBaloon = Instance.new("Part")
    NewBaloon.Name = "Balloon"
    NewBaloon.Shape = "Ball"
    NewBaloon.BrickColor = BrickColor.Random()
    NewBaloon.Position = script.Parent.Handle.Position + Vector3.new(0,5,0)
    NewBaloon.Size = Vector3.new(2,2,2)
    NewBaloon.CanCollide = true
    NewBaloon.BottomSurface = "Smooth"
    NewBaloon.TopSurface = "Smooth"
    NewBaloon.Material = "SmoothPlastic"
    NewBaloon.Parent = script.Parent.Balloons
    -- Create An Attachment For The Baloon
    local NewBaloonAttachment = Instance.new("Attachment")
    NewBaloonAttachment.Parent = NewBalloon
    -- Create An Attachment For The Player
    local NewPlayerAttachment = Instance.new("Attachment")
    NewPlayerAttachment.Parent = script.Parent.Handle
    -- Create A RopeConstraint For The Balloon
    local NewBaloonRopeConstraint = Instance.new("RopeConstraint")
    NewBaloonRopeConstraint.Attachment0 = NewPlayerAttachment
    NewBaloonRopeConstraint.Attachment1 = NewBaloonAttachment
    NewBaloonRopeConstraint.Parent = script.Parent.Handle
    local Helium = script.Parent.BodyForce:Clone()
    Helium.Parent = NewBalloon
end

script.Parent.Activated:connect(Activated)

Any help as to why the rope isn't showing will be greatly appreciated!

1
If I'm not wrong Ropes won't be shown unless you change your Settings in ROBLOX Studio but that only works locally. Slazerick 55 — 7y

2 answers

Log in to vote
1
Answered by
N43FGXL 169
4 years ago

I know I'm just a little bit late to the party but:

Make sure RopeConstraint.Visible is true and RopeConstraint.Thickness is above 0. Also, check RopeConstraint.Enabled.

Ad
Log in to vote
-1
Answered by
sammiya1 134
7 years ago

Its not implemented yet thats just a place holder atm i think using gametest1 or something shows it but at the mean time they are not enabled.

Answer this question