So i try to clone a part with ClickDetector and script in it, but MouseHoverEnter and MouseHoverLeave don’t work in cloned’s script
Here the video (Left one is non-cloned, right one is cloned)
robloxapp-20220308-1039559.wmv (567.9 KB)
I can’t find solution elsewhere, i try the localscript but it didn’t work either
Here the script of script in part
script.Parent.ClickDetector.MouseHoverEnter:Connect(function()
script.Parent.Box.Visible = true
print("Enter")
end)
script.Parent.ClickDetector.MouseHoverLeave:Connect(function()
script.Parent.Box.Visible = false
print("Exit")
end)
Here is a cloning script (it run by click gui button)
script.Parent.MouseButton1Click:Connect(function()
local new = game:GetService("Workspace").Stuff.Part:Clone()
new.Parent = game:GetService("Workspace").Stuff
new.Position = new.Position + Vector3.new(5,0,0)
new.Script.Disabled = false
end)
Here is how the part look on explorer
I hope anyone help me out with this thank!