I have been using @polarisprog Multiplier tutorial on how to make a pet hatching system. I have been watching and comprehending throughout his tutorials as I am a beginner at coding. However, I have come across a mini bug that I am struggling to solve:
Add a seperate newline which uses *= and the multiplier instead of together with the +=:
local a = 5
local multiplier = 2
-- what you are doing --
local value = 15
value += a * multiplier -- value becomes 25
-- compared to --
local value = 15
value += a -- value becomes 20
value *= multiplier -- value becomes 40
Thanks for helping me out with that. It worked
However, I have found a slight issue that when the player Unequips the Tool it doesn’t give the player Points?
I have added prints to help. However, its only printing “Normal Currency Amount” instead of “Multiplier Amount” When the player Unequips a pet it stops giving the player points which is strange …
try putting the tool.Equipped part in the elseif and the multiplier part in the if. the script will not do the elseif part if the condition in the if part is met so that might be the issue
Its a pleasure that I could get all your tips but this is not working I might just restart the tutorial I have been trying to learn from. Soon as though I might learn something else from it