My folowing script is a local script which checks if a player pressed a button and sends a remote event. For some reason its not firing the remote event. I have printed and it is printing whne the button is pressed any help will be appreaciated.
for _, buttons in pairs(frame.ScrollingFrame:GetChildren()) do
if buttons:IsA(“TextButton”) then
buttons.MouseButton1Click:Connect(function()if buttons.Donated.Value == 100 then if game.Players.LocalPlayer.Stands.Donated100 == true then frame.Visible = false game.ReplicatedStorage.D100DonatedToServer:FireServer(game.Players.LocalPlayer, buttons.Donated.Value) end end if buttons.Donated.Value == 1000 then if game.Players.LocalPlayer.Stands.Donated1000 == true then game.ReplicatedStorage.D100DonatedToServer:FireServer(game.Players.LocalPlayer, buttons.Donated.Value) end end if buttons.Donated.Value == 10000 then if game.Players.LocalPlayer.Stands.Donated10000 == true then game.ReplicatedStorage.D100DonatedToServer:FireServer(game.Players.LocalPlayer, buttons.Donated.Value) end end if buttons.Donated.Value == 100000 then if game.Players.LocalPlayer.Stands.Donated100K == true then game.ReplicatedStorage.D100DonatedToServer:FireServer(game.Players.LocalPlayer, buttons.Donated.Value) end end if buttons.Donated.Value == 1000000 then if game.Players.LocalPlayer.Stands.Donated1M == true then game.ReplicatedStorage.D100DonatedToServer:FireServer(game.Players.LocalPlayer, buttons.Donated.Value) end end end)
end
end