In my game, I need a game pass animation GUI like the one in the game “Vibe NYC”. I tried looking for a tutorial all over google and YouTube and couldn’t find one I am wondering if someone could either help me make one or see if they could find a video on what I am looking for.
What do you mean gampass animation gui? a gui for animations? a simple tween?
Do you want to animate the gamepass UI provided by ROBLOX or create one before prompting the buy window?
You may develop a bit more your idea please :x
I just went to Vibe NYC, are you talking about prompting a purchace?
I need one like the one in NYC Vibe, when you click the animation button you and buy it then click the animation button again another frame pops up with animations
local MarketPlaceService = game:GetService("MarketPlaceService")
local GamepassId = --Gamepassid here
button.MouseButton1Click:Connect(function()
local hasPass = MarketPlaceService:UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId, GamepassId)
if haspass then
--Do stuff
else
MarketPlaceService:PromptGamePassPurchase(game.Players.LocalPlayer, GamepassId)
end
end)
you mean like that?
idk what that means i dont know how to script
if you have gampass do stuff, if you dont then prompt the purchase
yes but the do stuff would be open a gui, if you dont own gamepass then it just prompts purchase
I gave you the prompt purchace, you do the openGui on your own… But I will give you a head start… If you want it to be flashy use GuiObject:TweenPosition()
if haspass then
if Gui.Enabled then
Gui.Enabled = false
else
Gui.Enabled = true
end
else
MarketPlaceService:PromptGamePassPurchase(game.Players.LocalPlayer, GamepassId)
end
Where do I put the script in my game?