Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- remotes:WaitForChild("UseCode").OnServerInvoke = function(player,code)
- if codes[tostring(code)] then
- if player.Codes then
- if type(codes) == "table" then
- if player.Codes:FindFirstChild(tostring(code)) then
- return "Already"
- else
- if codes[tostring(code)][2] == true then
- return "Expired"
- else
- codes[tostring(code)][1](player)
- local usedCode = Instance.new("StringValue", player.Codes)
- usedCode.Name = tostring(code)
- return "Successfully"
- end
- end
- else
- return "Unknown"
- end
- else
- return "Unknown"
- end
- else
- return "Invalid"
- end
- end
Add Comment
Please, Sign In to add comment