Whatever Player clicks somewhere on the screen with the mouse, LocalScript should get an mouse hit position and create an part, then whatever the Player clicks again, the part will be placed in the mouse click position in the Workspace. Like in the game has in Tower Defense Simulator
I've tried this code in LocalScript
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local HitPos = nil
Mouse.Button1Down:Connect(function()
HitPos = Mouse.Hit
-- I dont know what to do after this :/
end)

2 comments
https://developer.roblox.com/en-us/api-reference/property/Mouse/Hit
Thank You!