This is true. Most all method names in Luau are case sensitive, however, :clone() will still work. It is a depreciated method name, but still functions the same. This is the case with other methods as well, such as :connect(). The methods still work and function the same, and are still part of the Luau method library, they just aren’t used/updated.
Back to the issue, I don’t believe that it is an issue with using main:clone() instead of main:Clone(), as I have just tried it and both work just fine.
My hypothesis is that there is an error occurring elsewhere in the code.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local main = game.Workspace.MainPart -- Replace 'MainPart' with the actual name of the part you want to clone
mouse.Button1Down:connect(function()
local new = main:Clone()
new.Parent = workspace
new.Anchored = true
new.CanCollide = true
new.BrickColor = BrickColor.Random()
local targetPosition = mouse.Hit.p
new.Position = targetPosition
new:MakeJoints()
end)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local main = workspace:WaitForChild("main") -- Replace 'MainPart' with the actual name of the part you want to clone
mouse.Button1Down:connect(function()
local new = main:Clone()
new.Parent = workspace
new.Anchored = true
new.CanCollide = true
new.BrickColor = BrickColor.Random()
local targetPosition = mouse.Hit.p + Vector3.new(0,2.5,0)
new.Position = targetPosition
new:MakeJoints()
end)
set your part name that gonna be cloned to main and should work fine.