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

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

Asked by 7 years ago

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)

0
bump RealRexTerm 21 — 7y
0
USE BLOCK CODE!!!!!!!!!!!!!!!!!!!!!! greatneil80 2647 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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
0
Does not solve anything. It only makes things more simple. hiimgoodpack 2009 — 7y
Ad

Answer this question