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: Placing a brick in a character?

Previous Thread :: Next Thread 
insanehog is not online. insanehog
Joined: 08 Jul 2012
Total Posts: 183
18 Jun 2014 02:16 PM
If I place a part into my character, how can I make the part follow the character like a hat?



.
Report Abuse
devLloyd is not online. devLloyd
Joined: 05 Feb 2014
Total Posts: 22
18 Jun 2014 02:24 PM
you have to weld it to the player.
Report Abuse
insanehog is not online. insanehog
Joined: 08 Jul 2012
Total Posts: 183
18 Jun 2014 04:06 PM
Ok I tried welding but the head is stuck to the brick and the player can't move. The brick is CanCollide off.

game.ServerStorage.Brick:Clone().Parent = game.Workspace.Player1


local function weldBetween(a, b)
local weld = Instance.new("ManualWeld")
weld.Part0 = a
weld.Part1 = b
weld.C0 = CFrame.new()
weld.C1 = b.CFrame:inverse() * a.CFrame
weld.Parent = a
return weld;
end

weldBetween(game.Workspace.Player1.Brick, game.Workspace.Player1["Head"])
Report Abuse
insanehog is not online. insanehog
Joined: 08 Jul 2012
Total Posts: 183
18 Jun 2014 04:26 PM
bump
Report Abuse
waterfalIs is not online. waterfalIs
Joined: 08 Mar 2014
Total Posts: 115
18 Jun 2014 04:52 PM
weld it
Report Abuse
Faxu is not online. Faxu
Joined: 08 Feb 2010
Total Posts: 2937
18 Jun 2014 04:55 PM
Make sure it's not anchored.
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