I am trying to make an ATM, whenever I fire the server and put the variables in the server script, it just prints my values to my players name...
submit = script.Parent text_box = submit.Parent.Placeholder plr = game.Players.LocalPlayer ls = plr:WaitForChild("leaderstats") bank = ls.Bank RS = game:GetService("ReplicatedStorage"):WaitForChild("Server") withdraw = RS:WaitForChild("Withdraw") submit.MouseButton1Click:Connect(function() local text = text_box.Text if tonumber(text) then local amount = Instance.new("IntValue",script.Parent) amount.Name = "Amount" amount.Value = text local number = amount.Value if bank.Value >= amount.Value then print("Enough money!") withdraw:FireServer(text) elseif bank.Value < amount.Value then print("Not enough money") else plr:Kick("Error Code 1, please screenshot your debug and send it to a developer.") end end end)