How do a make a gui when buying a game pass?
Hey, I am kinda a noob at making Lua Scripts on ROBLOX. I have tried to make a local script find if a player has a game pass and if it does the GUI tweens out. Unfortunately,
the game keeps coming up with errors for the script. I might be doing something wrong...
Here it is
02 | local frame = script.parent.Parent:WaitForChild( 'pAID' ).Frame |
03 | game.Players.PlayerAdded:connect( function (player) |
04 | if HasPass = Game:GetService( "GamePassService" ):PlayerHasPass(player, id) then |
06 | frame:TweenPosition(UDim 2. new( 0 , 0 , 5 , 0 , 'in' , 'Back' , 10 ) |
Responding to a solution would be grateful :D