Hello
I just want make when value is 55 the size of frame will smaller and when 100 it's be back again
Here is my script
script.Parent.OxygenValue:GetPropertyChangedSignal("Value"):Connect(function()
local Change = UDim2.new(script.Parent.OxygenValue.Value/100*0,0,0.32)
script.Parent.GreenOxygen:TweenSize(Change)
end)
Results:
https://www.dropbox.com/s/evk3bid060f75tq/pVIcke3QRn.mp4?dl=0
I want like in this video:
https://www.youtube.com/watch?v=cYPB3BX_p6Q&t=4s
Just continously update your GUI like this:
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() char.Humanoid.GetPropertyChangedSignal("Health"):Connect(function() script.Parent.Size = Udim2.new(char.Humanoid.Health / 100,0,0.05,0) end)
Hope this helped!
Closed as Not Constructive by Shawnyg
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?