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

How do i change this script? (Read question desc) [closed]

Asked by 8 years ago
local GamePassService = Game:GetService('GamePassService')
local GamePassId = --INSERT GAMEPASS ID HERE--


game.Players.PlayerAdded:connect(function(player)
        stats = Instance.new(''IntValue'', player)
        stats.Name = ''leaderstats''

        points = Instance.new(''IntValue'', stats)
        points.Name = ''Points''

        if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
                points.Value = 50
        end
end)

What do i need to change to make the script to do what i want? what i want: I want that the script detects when a player have a certain gamepass, it will give the player 200 cash everytime they join if they have the gamepass, i have the following leaderboards : KO | WO | Cash I want the script to change the ''Cash'' from 0 to 200, but i don't know what changes i need to do!

0
post the code here in a code block 1waffle1 2908 — 8y
0
thanks for the tip, i just added the code wesleyleal0798 5 — 8y

Closed as Not Constructive by 1waffle1 and Shawnyg

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?