Why is my placement system acting weird?
So im making a placement system right now and something weird is happening the code and a short vid are below
02 | local plan = game.ReplicatedStorage.Floor.Selection |
03 | local build = game.ReplicatedStorage.Floor.floor |
04 | local pos = Vector 3. new( 0 , 0 , 0 ) |
05 | script.Parent.Equipped:Connect( function (mouse) |
06 | local plan 1 = plan:Clone() |
07 | plan 1. Parent = game.Workspace |
08 | mouse.Button 1 Down:connect( function () |
10 | local build 1 = build:Clone() |
11 | build 1. Parent = game.Workspace |
12 | build 1. Position = plan 1. Position |
15 | pos = Vector 3. new(math.floor(mouse.Hit.p.X),math.floor(mouse.Hit.p.Y),math.floor(mouse.Hit.p.Z)) |
16 | plan 1. Position = pos+Vector 3. new( 0 , 0 , 0 ) |
https://medal.tv/clips/33015914/d13373Haqm99
can anyone help me solve this issue?