#Can sombody help me with this progress gui
88 messages · Page 1 of 1 (latest)
ive got this gui right here
so when your leaderstats meets the same requirements
you get a new sword
and then it changes to like Next Sword at strength: 5000
but
i decided i didnt want that
so i made this
progress gui
what works
but when you hit 300
it just doesnt work
can sombody help me?
i can send scripts
and everything just dm
kk
could you help me maybe if you want to
im really new
here is code if you do because i tried that function if number > 300
but i like dont know how to stop it
here is code tho
wait(1)
local player = game.Players.LocalPlayer
local Power = player.leaderstats.Power
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1') --Make the "250" the X value of your bar size and make the "10" the goal you want the player to reach
player.leaderstats.Power:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1')--Make the "250" the X value of your bar size and make the "10" the goal you want the player to reach
script.Parent.ProgressFrame.TextLabel.Text = Power.Value.."/300" --Make the "10" the goal you want the player to reach
end)
wait(1)
local player = game.Players.LocalPlayer
local Power = player.leaderstats.Power
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1') --Make the "250" the X value of your bar size and make the "10" the goal you want the player to reach
player.leaderstats.Power:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1')--Make the "250" the X value of your bar size and make the "10" the goal you want the player to reach
script.Parent.ProgressFrame.TextLabel.Text = Power.Value.."/300" --Make the "10" the goal you want the player to reach
end)
so u want if the first number is the same as the second then first number reset and set second number to 5000?
thanks
its question not solution xd
ooh lol
so?
very good
** You are now Level 5! **
emmm what?
this is a question..
oh
i dunno
i dont know how to awnser that question
i learnt roblox scripting but some of the basics but ive only learnt for 1 week
but ive learnt most of the basics
so i was
gonna
try make somthing
and
then get better along the way
soo.. u want to make
if number one is same as number2
then reset number1
and number2 set to 5000
number1/number2
this is a thing what u want to make or?
no
ahhh
okay so
wait(1)
local player = game.Players.LocalPlayer
local Power = player.leaderstats.Power
local PowerValue = player.leaderstats.Power.Value
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1')
player.leaderstats.Power:GetPropertyChangedSignal("Value"):Connect(function()
if PowerValue >= 300 then
PowerValue = 300
end
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (PowerValue/300 * 250), 1, 0), 'Out', 'Linear', '1')
script.Parent.ProgressFrame.TextLabel.Text = PowerValue.."/300"
end)```
mby like that
ooh that makes sense
nope that didnt work
oh wait
i changed
wrong script
nope that
just broke it
u have it badly maked
next game use number1 and number2 like stats in player and manage it on server side
wait(1)
local player = game.Players.LocalPlayer
local Power = player.leaderstats.Power
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (Power.Value/300 * 250), 1, 0), 'Out', 'Linear', '1')
player.leaderstats.Power:GetPropertyChangedSignal("Value"):Connect(function()
local PowerValue = player.leaderstats.Power.Value
if PowerValue >= 300 then
PowerValue = 300
end
script.Parent.ProgressFrame.Bar:TweenSize(UDim2.new(0, (PowerValue/300 * 250), 1, 0), 'Out', 'Linear', '1')
script.Parent.ProgressFrame.TextLabel.Text = PowerValue.."/300"
end)```
try that bcs i made mistake