Unclickable Button

local button = script.Parent


local TweenService = game:GetService('TweenService')


local tweenInfo = TweenInfo.new(


0.5, --time

Enum.EasingStyle.Linear, --https://developer.roblox.com/en-us/api-reference/enum/EasingStyle

Enum.EasingDirection.Out, --https://developer.roblox.com/en-us/api-reference/enum/EasingDirection

0, --repeat count (how many times)

false, --reverses (true or false)

0 -- delay time

)


button.MouseEnter:Connect(function()

local new_x = math.random(1,100) / 100

local new_y = math.random(1,100) / 100

local tween = TweenService:Create(button, tweenInfo, {Position = UDim2.new(new_x,0,new_y,0)})

tween:Play()

end)