Hey all! Having a bit of trouble. I've checked the wiki, and I'm not sure what I'm doing wrong in this script. I've taken out parts, since they wouldn't be necessary for this question, and just put a print. Any tips? Thanks!
Server Side:
local success, result = pcall(function() return game.Workspace.BailScript.MoneyEvent:InvokeClient(script.Parent.Parent.Parent, script.Parent.Amount.Value, script.Parent.Parent.Parent.Name) end)
if success then
if result == "Transaction Completed." and on == false then
print('Success')
else
print('Error')
end
end)
Client Side:
FE = script:WaitForChild("MoneyEvent")
function FE.OnClientInvoke(Amount, Player)
local Response = game.ReplicatedStorage:WaitForChild("Events").rFunction:InvokeServer("Subtract",Amount,Player)
return Response
end
