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)

7 comments
well first off all, you never changed the boost value with the script
use a local script
so when you say "change the boost to 70", do you mean with the command bar?
V3N0M_Z, no, using a local script will probably hurt his cause more than help it, as changes to objects on a local script aren't replicated to the server
That is true, he should use client to server events to make it fully clean
ehh, depends on what you mean by fully clean
like after taking a sponge bath with spongebob clean