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

Gamepass so that it automatically gives player hat(dominus)?

i want to make a gamepass give a hat (dominus)when they have it. heres what i got:

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, 1067433517) then game.workspace.player.hat = 48545806 end end)

2 comments

0

bump

0

USE BLOCK CODE!!!!!!!!!!!!!!!!!!!!!!

1 answer

You can just put the hat model in replicatedstorage and clone it into the player if the player has the gamepass.

local Hat = game.ReplicatedStorage:WaitForChild("Dominus")
local HatClone = Hat:Clone()
HatClone.Parent = Player.Character

1 comment

0

Does not solve anything. It only makes things more simple.

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