Im making a GUI where If you press It a part will spawn below you but In this situation I want to make a GUI that spawns a part on the tool your holding (The tool I want the part spawn Is a sword name "Part" but It appears to not be working, this Is the code:
local Button = script.Parent
Button.MouseButton1Down:Connect(function(activate) local Part = Instance.new("Part") Part.Size = Vector3.new(2.33, 2.788, 2.519) Part.Position = Vector3.new(game.Workspace.Starterpack.part) Part.Parent = workspace Part.Anchored = true Part.BrickColor = BrickColor.new("Black") end)

2 comments
Hey I'm not sure what you mean , also please use the text-formats for posting the post.
Basically I want a GUI that spawns a part below the players feet