of     1   

toxicbyte
#149916185Monday, November 17, 2014 12:56 AM GMT

So, I recently discovered that you can place objects a certain space away from a Position (Vector3 value). For example, if you wanted to place a brick on your characters head, as a function, you would do a = Instance.new("Part", game.Workspace) a.Position = game.Workspace.YOURNAMEHERE.Head.Position + Vector3.new(0,1,0) But the question is, is there any other way to do something like this without adding a Vector3 value to the head position?
cntkillme
#149916825Monday, November 17, 2014 1:04 AM GMT

Well you could do: local pos = game.Workspace.YOURNAMEHERE.Head.Position a = Instance.new("Part", game.Workspace) a.Position = Vector3.new(pos.X, pos.Y + 1, posZ); But why don't you want to add a Vector3?
toxicbyte
#149917037Monday, November 17, 2014 1:07 AM GMT

@cnt No reason. Just wondering if there were any alternatives. I actually discovered the Vector3 adding all by myself.
cntkillme
#149917109Monday, November 17, 2014 1:08 AM GMT

Thank metatables for that. You should also look up multiplying a V3 by a constant. Adding a V3 to a CF Multiplying a V3 to a CF Multiplying a CF to a CF (CF meaning CFrame and V3 meaning Vector3)
toxicbyte
#149917267Monday, November 17, 2014 1:10 AM GMT

@cnt Ok, but I won't do too much work with CFrames. I'm still new to lua.
JarodOfOrbiter
#149917329Monday, November 17, 2014 1:11 AM GMT

I understand that CFrames and what not use tables, but if so, why doesn't Roblox add a "Type" property to it? print(Part.Position.Type) -->Vector3 It would be so much easier than using pcalls to check type.
cntkillme
#149917436Monday, November 17, 2014 1:12 AM GMT

Well I mean usually you wouldn't need the type, but I guess it would be useful.

    of     1