I would like the text to be different on all players that have the VIP gamepass. I am using a Remote Event to tell if the player has the gamepass. LocalScript:
local text = script.Parent.Text.Description
local event = game.ReplicatedStorage.hasVipGamepass
event.OnClientEvent:Connect(function (plr)
text.Text = "Complete the obby to earn 10 coins!"
end)
And here is my server script:
local MPS = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local event = game.ReplicatedStorage.hasVipGamepass
Players.PlayerAdded:Connect(function (plr)
if MPS:UserOwnsGamePassAsync(plr.UserId,10871775) then
event:FireClient(plr)
end
end)

1 comment
you don't have to use multiple scripts, it will only change for the player gui not for the starter gui