So whenever the Activated event Fires a Image of cup of tea appears. I am trying to move the Cup of tea image slowly to the top of the players screen then the Image will delete its self .
local EmptyCup = script.Parent
local plr = game.Players.LocalPlayer
local ToolUi = game.Players.LocalPlayer.PlayerGui:WaitForChild("ToolUi")
local Im = ToolUi.ImageLabel
local mouse = plr:GetMouse()
EmptyCup.Activated:Connect(function()
wait(1)
plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + 1
local ImClone = Im:Clone()
ImClone.Parent = ToolUi
local Rand = math.random(1,5)-- the Tea cup Image could Clone in 5 area the Coordinates are labeled in the image above
print(Rand)
if Rand == 1 then
ImClone.Position = UDim2.new(0.16,0,0.8, 0)
elseif Rand == 2 then
ImClone.Position = UDim2.new(0.32,0,0.8, 0)
elseif Rand == 3 then
ImClone.Position = UDim2.new(0.48,0,0.8, 0)
elseif Rand == 4 then
ImClone.Position = UDim2.new(0.64,0,0.8, 0)
elseif Rand == 5 then
ImClone.Position = UDim2.new(0.80,0,0.8, 0)
end
end)

