So I made a script to to create parts on where the mouse is but the brick wont rotate in the direction the mouse is facing also thank you for reading and helping with this fourm!

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
	if key == "f" then
		local part = game.ReplicatedStorage.AcidT:Clone()
		part.Parent = game.Workspace
		part.Position = mouse.Hit.p
	end
	end)