Roblox Scripting Tutorial: Promotional Codes (HttpService)

Published: 19 January 2017
on channel: RyGuyGaming
1,912
35

Go here and create an account to store your codes: pastebin.com (#NotSponsored)

My Script (MAKE SURE!!! that the HttpEnabled property on the HttpService is Enabled (the box is checked)):
local debounce = true

script.Parent.MouseButton1Down:connect(function()
if debounce == true then
debounce = false
script.Parent.BackgroundColor3 = Color3.new(170, 170, 127)
local player = script.Parent.Parent.Parent.Parent
local http = game:GetService("HttpService")
local code = http:GetAsync("http://pastebin.com/raw/Lqu7VFUS", true)
print(code)
if script.Parent.Parent.TextBox.Text == code then
local ls = player:findFirstChild("leaderstats")
if ls then
ls.Money.Value = ls.Money.Value + 1000000
end
end
wait(10)
debounce = true
script.Parent.BackgroundColor3 = Color3.new(170, 0, 255)
end
end)

Be sure to follow me on Twitter after rating, commenting, and subscribing!
  / rrrrry123  

Also, follow me on Twitch for some live streams!
  / rrrrry123  

You can add me on Roblox here!
http://ow.ly/7MWs305jb3B

Want to help make this channel better? You can donate to me via Roblox Robux!
http://ow.ly/En9x30hdeWy


On this page of the site you can watch the video online Roblox Scripting Tutorial: Promotional Codes (HttpService) with a duration of hours minute second in good quality, which was uploaded by the user RyGuyGaming 19 January 2017, share the link with friends and acquaintances, this video has already been watched 1,912 times on youtube and it was liked by 35 viewers. Enjoy your viewing!