I’ve added the model to my game and put it in ReplicatedStorage and it doesn’t seem to be working at all.
Am I doing something wrong?
Did you create a local script in StarterPlayerScripts? Also, remember to use the require() function to access the APi for creating and modifying buttons.
I didn’t as far as I know.
I’ll fix it up when I can and let you know.
Thanks!
icon:get("iconImage", iconState)
Thanks very much for your help!
This is a very helpful tool for novice developers like me. It makes making topbars much easier and less time consuming.
Is it possible to set a Label as a local value? I’ve been trying a couple of things and can’t get it to work.
local player = (game.Players.LocalPlayer )
local Icon = require(game:GetService("ReplicatedStorage").Icon)
-- money display
Icon.new()
:setImage(9596803582)
:setLabel(player.Pointsthings.Points.Value)
:lock()
I have a problem,
Every time the player dies, it adds another similar icon/button.
I don’t know what’s the issue
Is it possible to make a music system like this with topbar+?
Friends is the songs name and the dot means how long the song has played
Oh, I think I fixed it. The problem was I put it inside StarterGui.
Labels should take strings (although you should be fine with numbers/ints too)
We don’t support features like this although I believe somebody above shared a music players which they achieved by modifying TopbarPlus
I see, are you able to help me though? I’ve been trying multiple things and I’m getting nowhere and no errors.
Icon.new()
:setImage(6251279794)
:give(function(icon)
while wait() do
local player = game.Players.LocalPlayer
:label(player:WaitForChild("Pointsthings"):FindFirstChild("Points").Value)
end
end)
:lock()
What are the errors in the output, if any?
You put “:label”. You’re supposed to put :setLabel
and you’ll need to put :WaitForChild for the Points.
Try this:
Icon.new()
:setImage(6251279794)
:give(function(icon)
while task.wait() do
local player = game.Players.LocalPlayer
:setLabel(player:WaitForChild("Pointsthings"):WaitForChild:("Points").Value)
end
end)
:lock()
If that doesn’t work, try this
Icon.new()
:setImage(6251279794)
:give(function(icon)
while task.wait() do
local player = game.Players.LocalPlayer
local Points = player:WaitForChild("Pointsthings"):WaitForChild("Points").Value)
:setLabel(tostring(Points))
end
end)
:lock()
Ah! I see what I was doing wrong now, after some playing around I got it to work. Thank you for your help I appreciate it.