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

Can someone help with an error with my credits gui showing a different gui?

Asked by
Txeer 46
6 years ago

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

local credg = script.Parent.Credg
local credits = script.Parent.Credits
local devs = {"Txeer", "gwbrewer"}

for i, c in pairs(devs) do
            if game.Players.LocalPlayer.Name == c then
            credg.Position = UDim2.new(0,0,0,0)
            wait(3)
            credg.Position = UDim2.new(-1,0,0,0)
            credits.Position = UDim2.new(0,0,0,0)
            wait(4)
            credits.continue.Position = UDim2.new(0.253, 0, 0.822, 0)
            else
            script.Parent.Screen.Position = UDim2.new(0,0,0,0)
        end
end

credits.continue.MouseButton1Click:Connect(function()
    credits.Position = UDim2.new(-1,0,0,0)
    end)

any help?

0
What's the problem/error? Pojoto 329 — 6y
0
I'm sorry I didn't see that I didn't put in the error I feel really stupid right now but the problem was that even though I'm a dev it still shows up with the screen that says im not Txeer 46 — 6y

Answer this question