As the name says it all, need help on GUI Clone
. i’m making a button that Goes down, up, and changes colors. it also launches Magnifying Glasses up. I need to find out how to Clone
and Randomly put those Clone
s in random locations. Here’s the Script:
local glassClone = --Glass Clone identifier
local frame = script.Parent
local button = script.Parent.Parent
local function onButtonActivated()
frame.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
button:TweenPosition(UDim2.fromScale(0.394,0.700),Enum.EasingDirection.In,Enum.EasingStyle.Sine, 0)
task.wait(0.1)
frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
button:TweenPosition(UDim2.fromScale(0.394,0.654),Enum.EasingDirection.In,Enum.EasingStyle.Sine, 0)
--Random location code
glassClone:TweenPosition(UDim2.fromScale(0.5,8),Enum.EasingDirection.In,Enum.EasingStyle.Sine, 3)
end
button.Activated:Connect(onButtonActivated)
I hope you have an solution.