Hello! I am trying to create a thing where when they right click it will clone the block and place it in a certain position. But it doesnt work
Code: (Local script in StarterCharacterScripts)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button2Down:Connect(function()
local block = game.ReplicatedStorage:WaitForChild("Block")
block:Clone()
block.Position = Vector3.new(mouse.X, mouse.Y, mouse.Z)
block.Parent = game.Workspace
end)
Anyone know the fix for this?

2 comments
ok but the block isnt cloning
Thats because you are referring to the block in replicated storage and not the cloned block