Hello i have problem with my coin popup bc i dont know how like i tried to make it but everytime when i try to add custom value it just adds the leaderstats value, can someone help?
Can you send the script you use to add it?
like its just it bc i cant figure it out
local StrenghText = script.Parent.Strengh.TextLabel
local Lstats = game.Players.LocalPlayer:WaitForChild(“leaderstats”)
local Strengh = Lstats.Strengh
local function LoadRandomAnimationStrengh(RSanim)
StrenghText.Text = “+”…Strengh.Value
end
What do you mean coin popup? I don’t see anything related to coins in your script.
i said coins popup but its a strengh sorry
You want the strength value to popup on the screen?
If its a gui you have to access it through Player.Gui and from there you can make changes that are replicated onto the player’s gui.
yea, something similar to this
Alright, what you want to do is make the gui and have everything set up. Then, you want to call the gui you’re going to be changing as a variable like this,
local player = game.Players.LocalPlayer
local variable = player.PlayerGui.(the path to the gui)
Then using the function you created,
local function LoadRandomAnimationStrength(RSanim)
variable.Text = "+" ... tostring(Strength.Value)
end)
The you can change the varibales to match what they were previously. Also, what is the purpose of the function you made?
like i was trying to make something like this
when the value is changed this pop up on screen with the value that is added (sorry for wrong explaining)
and this function is to load random tween animation like 2 or 3
I suggest you make the strength value an attribute then. You can detect when it changes with a built in function. See Instance Attributes
Properties Window | Documentation - Roblox Creator Hub
but like how do i make it so it will show the added value
i figured it out and thx for helping me out
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.