How could I make this part spawn near the player and not above?
Everytime I click it spawns above the player,I wan't to spawn the near the player,how would I do that?
02 | local Tool = script.Parent |
03 | local Handle = script.Parent.Handle |
04 | local Player = game.Players.LocalPlayer |
05 | local PlayersMouse = Player:GetMouse() |
08 | Tool.Equipped:connect( function (Mouse) |
10 | Mouse.Button 1 Down:connect( function () |
12 | Handle.BrickColor = BrickColor.new( "Bright green" ) |
16 | local Part = Instance.new( "Part" ,game.Workspace) |
17 | Mouse.Move:connect( function () |
18 | Part.CFrame = CFrame.new(Mouse.Origin.p) |
24 | Mouse.Button 1 Up:connect( function () |
29 | Handle.BrickColor = BrickColor.new ( "Bright red" ) |