So i'm trying to make it so when a player left clicks anywhere on the screen, a brick spawns exactly on where the mouse clicked, It is giving me and error saying that Mouse.X expected a CFrame but a PlayersMouse doesnt have a CFrame action. Could anyone help?
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Button1Down:connect(function()
local part = Instance.new('Part')
part.Parent = game.Workspace
part.CFrame = Mouse.X
end)

3 comments
Or just simply do "Mouse.Hit.Positon". :P
true
Thanks guy's much appreciated!