so i recently used a script and i wanted to know how i could add a image instead of using a emoji due the there not being the image i need i’ve been looking but i couldn’t find anything here is the script
Inside of your local script put an image label, put in your image id, and put your textLabel inside of it. Once you do that try this script (you might need to change a few names)
local Players = game:GetService("Players")
local plr = script.Parent.Parent.Parent
local leaderstats = plr:WaitForChild("leaderstats")
local clicks = leaderstats:WaitForChild("Clicks")
local dif = 0
clicks.Changed:Connect(function()
if dif ~= clicks.Value then
local random = math.random(1, 900)
local xnew = random / 1000
local new = script:WaitForChild("ImageLabel"):Clone()
new:WaitForChild("Clicks Main").Text = "+".. clicks.Value - dif
new.Position = UDim2.new(xnew, 0, 1, 0)
new.Parent = script.Parent
dif = clicks.Value
wait(0.1)
new:TweenPosition(UDim2.new(new.Position.X, 0, -0.1, 0))
wait(2)
new.Parent = nil
end
end)