Hey, Everyone! I have a problem on when I use this script on studio it works but it doesn't when I join a server.
The script is supposed to check if the target player joins the game with a game pass if so it will Tween a GUI away from them, and welcome them to a start screen.
GUI Location: Game.StarterGUI.pAID(ScreenGUI).Frame script location: Workspace.CheckifhasGamepass(Local Script) I have also tried this script with a server script as well...
local id = 987509977
game.Players.PlayerAdded:connect(function(player)
if game:GetService("GamePassService"):PlayerHasPass(player, id) then
local frame = player.PlayerGui:WaitForChild('pAID').Frame --Assuming script.Parent.Parent was just game.Players.LocalPlayer.PlayerGui
frame:TweenPosition(UDim2.new(0, 0, 5, 0), "In", 'Back', 10)
end
end)
Replying to a reply quickly would be great, Thanks!

1 comment
You need to tween this in a local script, the server cannot do this task.