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

GamePass id doesn't authenticate properly in a server?

Asked by
Stravan 18
6 years ago
local id = 102974509
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    if game:GetService("GamePassService"):PlayerHasPass(player,id) then
        script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-1417.952, 91.83, -13395.761)
    else
        script.Parent.Text = "You don't have the GamePass!"
        wait(3)
        script.Parent.Text = "Teleport to morphs [GamePass only]"
    end
end)

This works in PlaySolo, and this is a localscript in a textbutton in StarterGui.

0
Did you add a ClickDetector? ZAZC_Noob 7 — 6y

Answer this question