I understand how to actually spawn the brick, but only at a certain area using XYZ things. I'm trying to get it to spawn right in front of the character, but I can't figure it out. Is there a specific function I need?
COMMUNITY QUESTION
How would I create a brick relative to the characters position?
2 answers
part.Position = CFrame.new(player.Position)
hi
This should put the brick in the same position as the character
Also this is a request so please don't request here.
3 comments
0
Then why did you answer if it was a request.
0
For the karma
0
It's not a request, he's wondering what's the command for doing something, he didn't say "I need a script that does x y z now go and make one for me" Instead he wanted to know a specific command/concept and how to use it
CFrames. Mess with them until you get what you want. Take this as an example:
Brick.CFrame = workspace.Player.PrimaryPart.CFrame * CFrame.new(0,0,0) --insert values (negatives too!)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
devSledome, this isn't a request, I am asking for how I would start it. And your's does not work, I don't need a block spawned inside the character.
Check out this link: http://wiki.roblox.com/index.php?title=CFrame&redirect=no#toWorldSpace You can take the player's torso CFrame and multiply it by another CFrame.
More examples of toWorldSpace http://wiki.roblox.com/index.php?title=CFrame&redirect=no#Local_and_World_Space