I am just about done with my game so I decided to move my game from my profile to my group so that it will be easier to pay commissions with group funds and it will have a newer created date. Since I moved everything over everything works fine except for one remote event.
It makes no sense because it still works perfectly fine in the place on my profile. All the other remote events in the game work fine. It is literally just this one remote event that doesn’t work. What the script is trying to accomplish is it is a local script inside of playerGUI. It is inside of a menu to buy power ups. So when a player clicks it, it is supposed to then check the server to see if the player has enough coins and if they do it will give them the power up.
–Client Sided
button.MouseButton1Click:Connect(function()
if PlayingAnim.Value == false then
PlayingAnim.Value = true
print("Bought")
SubCoins:FireServer(price, power)
end
end)
Once the event fires the server checks if the player has the coins server sided. I checked if it still prints after it is supposed to fire and it does so I think for some reason the server isn’t receiving it.
Talking about the money check, you should pass the name of the product (which is “Power” i guess) instead and check the value of It from the server, then check the player currency, cuz if someone (cheater) fires the event with 0 as the price… that guy will get the item for free
You should put a print before the connection, to see if the server script is even getting to that code. That is the only possible reason this code isn’t working.