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 » Scripters
Home Search
 

Re: Why does my character freeze when welding a part?

Previous Thread :: Next Thread 
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
13 Dec 2014 10:32 PM
I weld a part to my torso, yet I freeze.

The part is unanchored, uncollidable, but I STILL freeze. I'm a huge noob to welding, so any help is appreciated. Thanks!

Script:

tar.CFrame = player.Character.Torso.CFrame * CFrame.new(0, 30, 0)
w1 = Instance.new("Weld", player.Character.Torso)
w1.Part0 = player.Character.Torso
w1.C0 = player.Character.Torso.CFrame:inverse()
w1.Part1 = tar
w1.C1 = tar.CFrame:inverse()

tar.CanCollide = false
tar.Anchored = false

Thanks again if you can help :P
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
13 Dec 2014 10:45 PM
am i inversing wrong? I tried flipping but no avail..
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
13 Dec 2014 10:49 PM
You should never parent a weld before setting its C0 and C1 and Part0 and Part1

Is the part attached to something else?

Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
13 Dec 2014 10:54 PM
I changed it so it parents at the end, but nothing changed.

It is only located in workspace.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
14 Dec 2014 12:43 AM
'tar' might be attached to something thats anchored though
Like the ground
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
14 Dec 2014 12:45 AM
Learn to properly weld, then come back
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
14 Dec 2014 07:38 AM
Analyze, learn that this is a helping forum. If you are too arrogant to help, there's a door. Thanks, bud.
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
14 Dec 2014 08:34 AM
^

oooooooooooooooooooooooooo
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Dec 2014 10:12 AM
Except that this isn't a helping forum. This is for scripters. If you want a helping forum, the correct one is Game Development. Of course, most people come here, so all the people willing to help are normally here too.
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
14 Dec 2014 12:58 PM
Your problem is your using :inverse(); incorrectly. Now get out.


Report Abuse
BlacksmithEric is not online. BlacksmithEric
Joined: 10 Dec 2011
Total Posts: 3893
14 Dec 2014 01:00 PM
What surfaces does your part have? Does it have studs and indents? It may be attached to the baseplate.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
14 Dec 2014 01:16 PM
weld.C0 = weld.Part1.CFrame:toObjectSpace(weld.Part0.CFrame):inverse()
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
15 Dec 2014 04:20 PM
@Jarod


Game Development never has any scripters that help whatsoever. If you look at the Scripters forum threads, almost 50% are help requests.

I am a scripter myself, pretty good when it doesn't come to welding. I was just starting to learn it, and the fact that I get told to go learn how to weld properly after I did indeed attempt to learn from the wiki is just rude.


@analyze

Thanks for helping, but one tip. Don't tell get out to someone who has been here 5 almost 6 years longer, as well as over 3,000 more posts. There's no point in it.
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
15 Dec 2014 04:28 PM
and thanks guys who helped.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
15 Dec 2014 04:45 PM
tar.CFrame = player.Character.Torso.CFrame * CFrame.new(0, 30, 0)
local cf = tar.CFrame -- get CF because as soon as Part0/1 is set, tar changes pos
w1 = Instance.new("Weld", player.Character.Torso)
w1.Part0 = player.Character.Torso
w1.Part1 = tar
w1.C0 = player.Character.Torso.CFrame:inverse() * cf
w1.C1 = CFrame.new()

tar.CanCollide = false
tar.Anchored = false
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
15 Dec 2014 08:20 PM
I've been here since 2008, and I'm still smarter than you.
Report Abuse
lateregistration is not online. lateregistration
Joined: 02 Apr 2013
Total Posts: 2630
15 Dec 2014 08:54 PM
analyze is a troll, its best to just ignore him from now on guys :) peace
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
15 Dec 2014 09:09 PM
Lol, I'm not even trolling. Don't listen to above, just a attention seeking idiot
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
15 Dec 2014 09:25 PM
'just a attention seeking idiot'
Ironic.
Report Abuse
lateregistration is not online. lateregistration
Joined: 02 Apr 2013
Total Posts: 2630
15 Dec 2014 09:55 PM
indeed :)
Report Abuse
DerProgrammierer is not online. DerProgrammierer
Joined: 16 Aug 2007
Total Posts: 12992
15 Dec 2014 09:56 PM
"Except that this isn't a helping forum. This is for scripters. If you want a helping forum, the correct one is Game Development. Of course, most people come here, so all the people willing to help are normally here too."

I don't know this Game Development thread. You mean Game Design? Game Design != Game Development. This and Game Design are both under Game Creation and Development, however. Not trying to be rude or anything, just saying.

"I've been here since 2008, and I'm still smarter than you. "

It's the arrogant who are usually the worst at what they do best.
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
16 Dec 2014 03:36 PM
"I've been here since 2008."

Yeah... okay. Seeing that half your places are copied and/or mass disliked, you have much evidence to support your intelligence.
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
16 Dec 2014 03:45 PM
@analyze

Kids these days...
Report Abuse
lateregistration is not online. lateregistration
Joined: 02 Apr 2013
Total Posts: 2630
16 Dec 2014 06:38 PM
like i said, giving analyze any attention will probably just encourage him, after all thats all he really wants. please just ignore him and he'll go away after he gets bored
Report Abuse
needathinkholdon is not online. needathinkholdon
Joined: 05 Jun 2014
Total Posts: 61
16 Dec 2014 07:23 PM
If you still are confused about welding check out PeasFactory on youtube he has a guid on basic welding that might help
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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