The script isn't cloning the object

Hi, so, I made a script, when player clicks, the object will clone at Mouse’s X and Y.

So the problem is the object ISN’T cloning. Like, even not appearing in Explorer.

Here’s script:

local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Button1Down:Connect(function()
	
	local X = Mouse.X
	local Y = Mouse.Y
	
	local ClickFX = script.CliclFX:Clone()
	ClickFX.Parent = script.Parent
	ClickFX.Position = UDim2.new(X,0,Y,0)
	ClickFX.Rotation = math.random(-3,3)
	
end)

Edit: The event works, I made the print check and it did well, but still isn’t cloning

1 Like

I fixed it, don’t know how I did this, but I fixed.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.