Hi I’m KEFF and I want to ask you how you can do “Rage” (for JoJo but it’s not necessary) (as in YBA) in the game you need to fill the scale and so there will be more damage. Thx.
You can make the damage variable in your damage script a global, then look up a GUI bar making tutorial. When it gets higher, make that global variable higher by using +
if ragebar == FULL then
dmg = dmg + 100
end
Thanks. but I have a question to do it as other script or it is necessary to insert in a script which I already have?
A different script, but change the script you already have to have the damage variable as a global by removing the local, like below.
-- Remove the 'local' to make it a global!
local dmg = 1000 -- Local Variable
dmg2 = 1000 -- Global Variable
well tomorrow I’ll try to do if I have errors can I show you and you tell me what to do?
sorry to bother you.
you cannot access the variable from one script in another script
you need to elaborate your question further, because I can’t understand
I want to make a Ragebar and when it is charged then the damage becomes greater. To fill the Ragebar you need to damage other players
Create a bool value named dmg and instead of
dmg = 1000
-- add
dmg = script.Parent.DmgValue.Value
that way, you can access it from different scripts.
I am sorry but this is just straight untrue.
You’re not meant to copy our code exactly, it’s just little hints to push you forward.
ohhhhhhhhhhhhhhhhhhh im sorry.