How to use Vector3Value

Hello, I’m currently working on a nuke system which’s going pretty good for now, my only problem is that I don’t know why the Value in the Vector3Value won’t work.
Here’s the script.


function OnClick()
	local part = game:GetService("ReplicatedStorage").nukes.Nuke:clone()
	part.Parent = game.Workspace
	part.Position = Vector3.new(script.Parent.Parent.Coordenate.Value)
end

script.Parent.MouseButton1Click:Connect(OnClick)

It doesn’t show me any error on the Output, any help would be appreciated!

2 Likes

It’s already a V3 so you don’t need to use Vector3.new. but if you aren’t getting an error, you should check if your code is running at all

1 Like

I’ve used your suggestion and it works, thanks for answering!