Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Has anyone figured out Video Ads yet?

Asked by 9 years ago

Hey, has anyone figured them out yet? I mean, this is the Default Roblox one that they released for us that never worked.

Game:GetService("AdService").VideoAdClosed:connect(function()
    Game:GetService("UserInputService").ModalEnabled = false
    script.Parent.Text = "Ad was closed, this text will reset in 5 secs"
    wait(5)
    script.Parent.Text = "Tap Here to Play Ad"
end)
script.Parent.MouseButton1Click:connect(function()
    Game:GetService("UserInputService").ModalEnabled = true
    Game:GetService("AdService"):ShowVideoAd()
end)

So I'd assume that when you watch one for Free Cash in a game, this is what it would be like.

Game:GetService("AdService").VideoAdClosed:connect(function()
    Game:GetService("UserInputService").ModalEnabled = false
    script.Parent.Text = "Ad was closed, this text will reset in 5 secs"
    wait(5)
    script.Parent.Text = "Tap Here to Play Ad"
end)
script.Parent.MouseButton1Click:connect(function()
    Game:GetService("UserInputService").ModalEnabled = true
    Game:GetService("AdService"):ShowVideoAd()
    Player[i].leaderstats:Cash.Value = Player[i].leaderstats:Cash.Value + 25
end)

But this also never worked...

Has anyone actually figured it out yet?!?! It'll be a great help if someone did!

1 answer

Log in to vote
0
Answered by 9 years ago

Video ads only work on mobile, currently. Make sure to test this with an iPhone, iPad, or Android device. If you don't have any of those, ask someone you know to test it for you.

0
I do have android, but does anyone know how to actually implement it yet? Michael007800 144 — 9y
Ad

Answer this question