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: Help?

Previous Thread :: Next Thread 
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 07:08 PM
local weld = Instance.new("Weld",clone)
weld.Part0 = clone
weld.Part1 = p.Character.Torso


This works. it clones the flag and welds it to the player's torso. It appears right on the torso. I want to know how to modify it to appear more on the player's back. I forgot how to do this :/
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 Jan 2015 07:10 PM
Offset it with the C0 property(:

local weld = Instance.new("Weld",clone)
weld.Part0 = clone
weld.Part1 = p.Character.Torso
weld.C0 = CFrame.new(0,0,-4) * CFrame.Angles(math.rad(45),0,0)
--Not sure if these are accurate but mess around with them.
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
20 Jan 2015 07:10 PM
CFrame
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 07:12 PM
Ahhh goulsteam! Thank you! I knew about C0 but i forgot if it was like

weld.Part1.C0

or

weld.C0


:P


Thanks :3
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 08:13 PM
Had a power surge and it erased the working code I had. Now when i tried doing it again it didn't position it on the back. I totally forgot the strategy I had. Help??

weld.C0 = CFrame.new(0,0,-8)
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 08:17 PM
Bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 Jan 2015 08:22 PM
Look at my code again and redo what you did lol
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 08:23 PM
It went kerplunk in my mind. All I remember was this line:


CFrame.new(0,0,-8)


Culd you remember for me Dx



That's the CFrame it needs to be set to.
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
20 Jan 2015 08:44 PM
Come onnnnnnn I totally forgot how to do it. For those who don't know: I'm trying to fix the C0 property to weld on the player's back using CFrame(0,0,-8) That worked. But I'm not sure how to get it to work again. Here's the line that doesn't work


weld.C0 = CFrame.new(0,0,-8)
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 Jan 2015 09:24 PM
Scroll up.. it's still on the thread lol
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