Can someone help with an error with my credits gui showing a different gui?
I am currently working on a game with others and I've made a script so that if you are a developer it shows you a credits GUI if not it comes up with screen that says you are not dev here is the code
01 | local credg = script.Parent.Credg |
02 | local credits = script.Parent.Credits |
03 | local devs = { "Txeer" , "gwbrewer" } |
05 | for i, c in pairs (devs) do |
06 | if game.Players.LocalPlayer.Name = = c then |
07 | credg.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
09 | credg.Position = UDim 2. new(- 1 , 0 , 0 , 0 ) |
10 | credits.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
12 | credits.continue.Position = UDim 2. new( 0.253 , 0 , 0.822 , 0 ) |
14 | script.Parent.Screen.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
18 | credits.continue.MouseButton 1 Click:Connect( function () |
19 | credits.Position = UDim 2. new(- 1 , 0 , 0 , 0 ) |
any help?