Gamepass script help please?
The wiki said I needed it in a script but I made it in a local script because the surface gui will not work to find the player then... I just need help figuring out what to do.
01 | plr = game.Players.LocalPlayer |
03 | script.Parent.MouseButton 1 Click:connect( function () |
04 | if Game:GetService( "GamePassService" ):PlayerHasPass(plr, pass) then |
05 | if script.Parent.BackgroundColor 3 = = Color 3. new( 0 , 80 / 255 , 0 ) then |
06 | for i,v in pairs (game.ReplicatedStorage.Sporks:GetChildren()) do |
07 | if v:IsA( "BasePart" ) then |
09 | clone.Parent = Workspace |
12 | script.Parent.BackgroundColor 3 = Color 3. new( 225 / 255 , 0 , 0 ) |
14 | script.Parent.BackgroundColor 3 = Color 3. new( 0 , 80 / 255 , 0 ) |