Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a game pass give you custom gear/model?

How to make a game pass give you custom gear/model because I want to make a first person shooter game 3:

1 comment

0

what section like does it go under characterscripts or something else

1 answer

Add the gun/model you want to give the player somewhere, I suggest serverstorage And use this code, ofc you have to edit it and such

local id = 000000--Edit this to your gamepass ID
local item = game.ServerStorage.Item--Edit this
 
game.Players.PlayerAdded:connect(function(player)
    if Game:GetService("GamePassService"):PlayerHasPass(player, id) then 
        local a = item:Clone()
	a.Parent = player.Backpack
    else
        print(player.Name .. " doesn't have the game pass...")
    end
end)

Hope this helped! If it did, don't forget to accept the answer, it gives us both rep

3 comments

0

What do you mean by 'Edit this'?

0

You have to change the id and the item, the item I defined is in serverstorage, but it may not be and it may be called something else

0

Hey Xuefei123 Everytime the player with the weapon die, the weapon stop spawn with him.

This discussion is preserved as it was. New answers, comments, and votes are closed.