Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Point system not adding up with boost in game!?

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

0

well first off all, you never changed the boost value with the script

0

use a local script

0

so when you say "change the boost to 70", do you mean with the command bar?

0

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

0

That is true, he should use client to server events to make it fully clean

0

ehh, depends on what you mean by fully clean

0

like after taking a sponge bath with spongebob clean

1 answer

✓ Accepted answer

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.

Image

1 comment

0

It worked if I change it to script and change the boost with a script and not explorer it will show up when I check the server and not just the client.

This discussion is preserved as it was. New answers, comments, and votes are closed.