Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

I need make frame that tween depends on value or health of player? [closed]

Asked by 3 years ago

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

0
Use the lua button instead of the ` `. Your code looks messy if you don't use it. Dovydas1118 1495 — 3y
0
stp and better help me Pixeluted -9 — 3y
0
I'm trying to help you so that people may understand your code. Since I can't understand since you used ` `, it looks messy. Here's how to post good questions: https://scriptinghelpers.org/help/how-post-good-questions-answers Dovydas1118 1495 — 3y
0
Closing this question due to your attitude towards people who are attempting to help. Consider it a warning before I suspend your account. Shawnyg 4330 — 3y

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?

1 answer

Log in to vote
0
Answered by
Nckripted 580 Moderation Voter
3 years ago

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!

0
....... Are you serius ??? LOOK https://i.imgur.com/QMVoARq.png Pixeluted -9 — 3y
0
I have value that I want work with Pixeluted -9 — 3y
0
Really ,????????? LOK AT MY SCRIPT IM GOING MAD STOP DOING ME MAD MORE Pixeluted -9 — 3y
0
@vojta1587 I reported you for being rude to people. We wanna help you, but if you're gonna be rude. then no. Dovydas1118 1495 — 3y
0
You are off-topic stop doing me mad, You can¨'t look in my topic I see what I doing no Pixeluted -9 — 3y
Ad