I don't know why it's not working. In the output, I get no problems though.
function onTouch(plr)
player = game.Players:GetPlayerFromCharacter(plr.Parent)
if player.PlayerGui.End.Value.Value == 0 then -- this doesn't execute
player.PlayerGui.End.Value.Value = player.PlayerGui.End.Value.Value + 1
player.PlayerGui.ScreenGui.Script.Disabled = false
player.PlayerGui.ScreenGui.Frame.Visible = true
player.PlayerGui.ScreenGui.ImageLabel.Visible = true
player.PlayerGui.End:Play()
end
end
script.Parent.Touched:connect(onTouch)
-- Don't look at lines (4 to 8) there's nothing wrong with them. Just look at line 3, (the 'if' statement).
