Script is simple, however it won’t work.
How can I fix it?
Credit to @Limited_Unique for the script
local players = game:GetService("Players")
local mpService = game:GetService("MarketplaceService")
local gamepassId = 24064532 --change to gamepass id
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local player = players:GetPlayerFromCharacter(character)
local gamepassCheck = mpService:UserOwnsGamePassAsync(player.userId, gamepassId)
if gamepassCheck then --user has gamepass
script.Parent.RightEye.Transparency = 0 -- This part I did
script.Parent.LeftEye.Transparency = 0 -- This part I did
end
end)
end)
If you have a StarterCharacter rig which contains LeftEye and RightEye parts then parent the script to that rig. As it stands “script.Parent” if the script is directly parented to the StarterPlayerScripts folder will fetch that folder. Whereas if you parent the script to the custom StarterCharacter model “script.Parent” will fetch the model & then “.LeftEye”, “.RightEye” will match the parts with those names.