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
 

Adding a brick to your character?

Previous Thread :: Next Thread 
Wizlyc is not online. Wizlyc
Joined: 27 Mar 2015
Total Posts: 312
22 Oct 2015 12:05 AM
So, welding is an option to adding it to your character. However, there's ways to add something that moves with the character (probably changed event/function, or a loop), that will allow the brick to spin as well and move smooth just like a welded brick. Say I was lazy, how would I do this?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
22 Oct 2015 12:46 AM
local plr = workspace.Player;
local part = Instance.new("Part",workspace);
part.Size = Vector3.new(1,1,1);
local weld = Instance.new("Weld",plr.Torso);
weld.Part0 = part;
weld.Part1 = plr.Torso;
weld.C0 = CFrame.new(0,0,1);

while wait() do
weld.C0 = weld.C0 * CFrame.Angles(0,0,math.rad(tick()%math.pi/2));
end
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