of     1   

Coutuex
#140970494Sunday, July 20, 2014 7:00 PM GMT

This script is supposed to check to see if the u and p in game.ServerStorage.Accounts is the same in the field on the gui. If it is the same then it'd supposed to display an error message and if it's not what is in the field it is supposed to add the new info into the database. The problem is that even if it does have the same or not it makes tons of the same account.. Can anyone help? function thisclicked() a = game.ServerStorage.Accounts:GetChildren() for i = 1, #a do if (a[i].U.Value ~= script.Parent.Parent.U.Text) and (a[i].P.Value ~= script.Parent.Parent.P.Text) then script.Parent.Parent.RegT.TextTransparency = 0 wait(.4) script.Parent.Parent.RegT.TextTransparency = 1 wait(.4) script.Parent.Parent.RegT.TextTransparency = 0 wait(.4) script.Parent.Parent.RegT.TextTransparency = 1 while true do b = game.ServerStorage.Accounts c = Instance.new ("BoolValue", b) c.Name = script.Parent.Parent.U.Text c.Value = true e = Instance.new ("StringValue", c) e.Name = "U" e.Value = script.Parent.Parent.U.Text h = Instance.new ("StringValue", c) h.Name = "P" h.Value = script.Parent.Parent.P.Text end script.Parent.Parent.Parent:Remove() else if (a[i].U.Value == script.Parent.Parent.U.Text) and (a[i].P.Value == script.Parent.Parent.P.Text) then framedude = script.Parent.Parent framedude.RegF.TextTransparency = 0 wait(.4) framedude.RegF.TextTransparency = 1 wait(.4) framedude.RegF.TextTransparency = 0 wait(.4) framedude.RegF.TextTransparency = 1 end end end end script.Parent.MouseButton1Click:connect(thisclicked) U and P stand for things I can't say on forum..

    of     1