generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Welds

Previous Thread :: Next Thread 
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
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
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
12 Jul 2014 09:22 PM
Bump...
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
12 Jul 2014 09:55 PM
;c
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
12 Jul 2014 10:29 PM
I'll pay if I have to. Just please, somebody help me? :c
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
12 Jul 2014 11:04 PM
Bump... again...
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
12 Jul 2014 11:29 PM
Does nobody know, or does nobody want to answer? :/
Report Abuse
tarrdo is not online. tarrdo
Joined: 24 Jun 2008
Total Posts: 476
12 Jul 2014 11:32 PM
Have you tried googling for a similar issue?
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
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 is not online. 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
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
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 is not online. 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
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
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 is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
13 Jul 2014 01:37 AM
CanCollide?
~Tynexx
Report Abuse
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
13 Jul 2014 01:44 AM
The hats are not CanCollide. Should they be? Would that make any difference?
Report Abuse
Tynexx is not online. 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
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
13 Jul 2014 01:57 AM
Changing ManualWeld to Weld fixed the problem. Thank you both so much! :D :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image