So I'm making this simulator and the points(popularity) you earn for a click should be (currency.Value) + 1 + boost.Value and you earn boost by buying stuff.But when I change the bosst to like 70 it still gives me +1 currency value.Plz help!
Script:
local tool = script.Parent local debounce = false tool.Activated:Connect(function() local char = tool.Parent local player = game.Players:GetPlayerFromCharacter(char) if not debounce then debounce = true local stats = player:WaitForChild('leaderstats') local popularity = stats:WaitForChild('Popularity') local boost = stats:WaitForChild("Boost") if popularity and boost then popularity.Value = popularity.Value + (boost.Value + 1) print(boost.Value) wait(.5) debounce = false end end end)
Make sure when you make the change you change Roblox Studio to server instead of client or else the changes will be equivalent to using a localscript to change the values.