How to make rage for jojo game!

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.

1 Like

true???

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.

1 Like

I am sorry but this is just straight untrue.

1 Like

Do what @SkyWalk1n said, that is a brilliant idea.

2 Likes

true @SkyWalk1n ???

1 Like

You’re not meant to copy our code exactly, it’s just little hints to push you forward.

2 Likes

ohhhhhhhhhhhhhhhhhhh im sorry.

1 Like