Roblox Scripting Tutorial: Promotional Codes (HttpService)

Опубликовано: 19 Январь 2017
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Roblox Scripting Tutorial: Promotional Codes (HttpService) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь RyGuyGaming 19 Январь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,912 раз и оно понравилось 35 зрителям. Приятного просмотра!