|
| 12 Jul 2014 08:50 PM |
So I have this script I made that welds a hat to the players body when morphed:
(This isn't the whole script, just the part that doesn't work)
w = Instance.new("ManualWeld") w.Parent = player.Character.Chest.Body w.Part0 = player.Character.Chest.Body w.Part1 = p w.C0 = CFrame.new(0,2.1,0)
I also have this similar script that welds a different hat onto the players body:
w = Instance.new("ManualWeld") w.Parent = player.Character.Chest.Body w.Part0 = player.Character.Chest.Body w.Part1 = p w.C0 = CFrame.new(0,0.75,-0.3)
The first script runs fine, it welds the hat on perfectly. Then when the second script runs, the second hat goes on perfectly, but it moves the first hat down. I think it is doing this because of the fact that both scripts are welding the body, but how would I fix it? I'm not sure what to change the Body to.
Please help quickly, people are waiting for this to be fixed. Thanks :) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 12 Jul 2014 10:29 PM |
| I'll pay if I have to. Just please, somebody help me? :c |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jul 2014 11:29 PM |
| Does nobody know, or does nobody want to answer? :/ |
|
|
| Report Abuse |
|
|
tarrdo
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 476 |
|
|
| 12 Jul 2014 11:32 PM |
| Have you tried googling for a similar issue? |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2014 11:35 PM |
| Google took me to the Wiki and I researched welds, that's how I learned how to do this. The wiki never explained how to fix this issue. Unless I misunderstood something...? |
|
|
| Report Abuse |
|
|
tarrdo
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 476 |
|
|
| 12 Jul 2014 11:36 PM |
| Have you tried welding the hat to the other hat? might work better |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2014 11:37 PM |
| They're in different scripts though. The play can choose when to wear each hat, so if I weld the first hat to the other, they might not have the second hat on. What could I do about that? |
|
|
| Report Abuse |
|
|
tarrdo
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 476 |
|
|
| 13 Jul 2014 12:30 AM |
| If they choose when to wear each hat why not make it so they can only wear one hat at a time? |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2014 12:49 AM |
| Because one hat is shades and the other is a top hat. I want them to be able to wear both, because just shades would look weird. Do you know how to fix this? |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
| |
|
|
| 13 Jul 2014 01:44 AM |
| The hats are not CanCollide. Should they be? Would that make any difference? |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 13 Jul 2014 01:52 AM |
Try it off, and try Weld instead of ManualWeld.. ~Tynexx |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2014 01:57 AM |
| Changing ManualWeld to Weld fixed the problem. Thank you both so much! :D :D |
|
|
| Report Abuse |
|
|