Roblox Scripting Tutorial: Promotional Codes (HttpService)
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!
https://twitter.com/Rrrrry123
Also, follow me on Twitch for some live streams!
http://www.twitch.tv/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
Other Videos By RyGuyGaming
Other Statistics
Roblox Statistics For RyGuyGaming
At present, RyGuyGaming has 459,946 views spread across 106 videos for Roblox, and roughly a days worth of Roblox videos were uploaded to his channel. This makes up 17.76% of the content that RyGuyGaming has uploaded to YouTube.