IntValue not changing for no reason?
Im trying to make a GUI Shop in Roblox but the value only prints 0. Here's the code:
01 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
02 | local remoteEvent 1 = ReplicatedStorage:WaitForChild( "RemoteEvent1" ) |
03 | local DataStore 2 = require( 1936396537 ) |
05 | local function Buy(player) |
06 | local Price = script.Parent.Parent.StarterGui.ShopGUI.ShopFrame.ItemInfo.Int |
07 | local Coins = game.Players [ player.Name ] .Coins |
09 | if Price.Value < = Coins.Value then |
10 | local CoinsStore = DataStore 2 ( "Coins" , player) |
11 | CoinsStore:Increment(-Price.Value) |
15 | remoteEvent 1. OnServerEvent:Connect(Buy) |
Any help will be appreciated very much!