So I was scripting and I test my game and it worked. Then I tried testing with someone else and it just played the function twice which broke the game due to the fact it removes something that isnt there.
Is it doing this because of there being 2 players? Im pretty sure but I dont know why. Anyone know?
function FadeIn()
local Players = game.Players:GetChildren()
for i,v in pairs(game.Players:GetChildren()) do
if v.Backpack.PlayerValues.InCustody.Value == false then
Pre_()
wait(0.1)
-- FadeIn --
for e = 1,10 do
wait(0.1)
v.PlayerGui.Pre_.Main_.BackgroundTransparency = v.PlayerGui.Pre_.Main_.BackgroundTransparency -0.1
end
RemoveInform()
String = "Alright, let's hope that you guys wont foul this one up. I'll try to inform you guys if there is anyone noticing something or if someones calling. Let's just try to keep this nice and quite, ok?"
Length = string.len(String)
for e = 1,Length do
wait(0.001)
v.PlayerGui.Pre_.Main_.Talk.Text = (string.sub(String,1,e))
end
for e = 1,10 do
wait(0.1)
local dif = v.PlayerGui.Pre_.Main_.Difficulty
dif.TextTransparency = dif.TextTransparency -0.1
end
end
end
end

3 comments
What's the full script, I need more info to help.
The full script is really big.
Well, I just remember. This will do this Twice since there are 2 players. In other words forget about it. I figured out what I need to do to go around this problem.