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

I Have Renamed The Cash Name On My Game, Does This Effect The Script Down below?

Hello As I Said In My Title I Renamed The Cash Name And This Script I Have Put In Is Not Working So Any Help Would Be Great. Also The Name Of The Cash Is JCoins

if productId == (Insert Here) then local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + 100 end

1 comment

0

That code alone doesn't even work.

1 answer

local PlayerMoney = game.ServerStorage.PlayerMoney

if productId == (Insert Here) then
	local cashmoney = PlayerMoney:FindFirstChild(player.Name)
	if cashmoney then
		cashmoney.Value = cashmoney.Value + 100
	end
end

If you changed the name of the money model or whatever it is, then replace the "PlayerMoney" part at the end of line 1 to it's new name

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