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

RopeConstraint wont work with Character, why?

Asked by 6 years ago

I made this rope swinging script, using rope constraints. But whenever I shoot the rope I get stuck midair, unable to move. I have no idea why. Any help please?

01--// Variables
02 
03local players = game:GetService("Players")
04local plr = players.LocalPlayer
05 
06local char = plr.Character
07local head = char:FindFirstChild("Head")
08 
09local athA = Instance.new("Attachment")
10local athPart = game.Workspace.AttachPart --This is a specific part that the rope attaches to
11local athB = Instance.new("Attachment")
12athB.Parent = athPart
13athA.Position = Vector3.new(0,0,-1)
14athA.Parent = head
15local length
View all 47 lines...
0
Trying to hang someone? MarkHasReset 77 — 6y
0
Ye there is someone I really hate lol HeyItzDanniee 252 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

To figure out the process of whats going on make sure you double check by playing the character and then looking if the attachment is there or not, a simple bug can be easily fixed if you look hard enough. I'm guessing you just didn't name the attachment 0 or one. Example

1local athA = Instance.new("Attachment")
2local athPart = game.Workspace.AttachPart
3local athA.Name = "Attachment0"
0
The attachments and rope are there I just get stuck midair unable to move. I used a LocalScript and placed it inside StarterCharacterScripts HeyItzDanniee 252 — 6y
0
you probably should just place a regular script unless the startplayer gets himself hanged by a rope example: ClickDetector needs and event and a local script. but if its when the server does something for example 60 seconds and the everyone is hanged then do a regular script. when i think of local i think of local player. MarkHasReset 77 — 6y
Ad

Answer this question