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

How can It so when I hit a certain amount of strength different values get increased?

Asked by 2 years ago

So I am making a simulator game but I do not know how to make it so when you get a certain amount of Strength different values increase

The values I am trying to make increase is Damage and health.

At the same time I also don't have a level system...

Anyone got any tutorials or examples I can use?

0
There're not much tutorials that I know of that do this exact thing you're asking for. I should be able to help you do some stuff but it would be easier communicating on discord. If you can, add me on discord: LoxiGoose#9553. DocGooseYT 110 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

We can make the script listen for changes in the Strength using Changed or GetPropertyChangedSignal

Strength:GetPropertyChangedSignal("Value"):Connect(function() -- This is assuming it's an intVal or NumberVal
    if Strength.Value >= 100 then
        Health.Value = (Health.Value * 1.8)
    end
end)

Then you can mess around with this script, modifying it, etc.

0
good explanation!...However, I feel like you didn't properly explain that if it checks for the value being over 100 every time it's over 100 it will just keep multiplying... Antelear 185 — 2y
0
Yea, I forgot to address that. NotThatFamouss 605 — 2y
0
what im hoping for is that the script doubles the strength you earn whenever you click and the health and damage avraels 2 — 2y
0
the only problem is, that i dont have a damage nor a health script and the damage script was just a script i took off of the roblox sword in free models avraels 2 — 2y
0
btw, I was wondering if i could get into direct contact with you if u wanted to help out with the game? The game just needs 3 more scripts to be released, i understand if you dont got time or just dont want to do it. if you do make up your mind message me on discord - agikmanV2#0836 avraels 2 — 2y
Ad

Answer this question