I have a problem with shop system?
So i made a buy script with remote event here the script:
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | if script.Parent.Parent.Parent.WhichTier = = 1 |
4 | game.ReplicatedStorage.RemoveClicks:FireServer( 4 ) |
5 | script.Parent.Text = "Equip" |
6 | script.Parent.Equip = true |
And heres the remove server script:
1 | game.ReplicatedStorage.RemoveClicks.OnServerEvent:Connect( function (Player,Remove) |
2 | Player.leaderstats.Clicks.Value = Player.leaderstats.Clicks.Value -Remove |
BUT WHEN I CLICK THEN NOTHING! (ALSO THERES NO ERROR IN THE OUTPUT)
(ALSO THIS IS A LOCAL SCRIPT)