Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I get the Vector3 Value for in front of a character in a script?

I am trying to make a spawn part script that spawns a part right in front of the player and to do so I need to make a script like

if script.Parent.MouseButton1Click:Connect(function()
Instance.new("Part", game.Workspace)
Part.Position = Vector3.New( )

The script above may have been scuffed because I haven't really experimented with Instance.new but I hope that helps you guys further understand what I am trying to do here.

Also, if you don't know how to do this that's perfectly fine. Thanks!

3 comments

0

the second argument of Instance.new() is deprecated. Instead, set the parent of the new object after its other properties have been set.

0

Also have to ask, do you want everyone to see the part or just the player?

0

you have to do

1 answer

✓ Accepted answer
local ? = Instance.new("Part", game.Workspace)   ?.Position = Vector3.new(?,?,?)

always make a new instance a variable

1 comment

0

your welcome

This discussion is preserved as it was. New answers, comments, and votes are closed.